Bug 545698 - Publican creates unnecessary POT files
Summary: Publican creates unnecessary POT files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Michael Hideo
QA Contact: Joshua Wulf
URL:
Whiteboard:
Depends On:
Blocks: 1219316
TreeView+ depends on / blocked
 
Reported: 2009-12-09 05:59 UTC by Manuel Ospina
Modified: 2015-11-10 00:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1219316 (view as bug list)
Environment:
Last Closed: 2010-01-20 03:14:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Manuel Ospina 2009-12-09 05:59:03 UTC
Description of problem:
When creating POT/PO files, publican takes all the XML files from en-US/ directory, even those that are not included in the book/article. Those files that are not included in the book (drafts, excluded chapters, etc.) should not produce POT files as they don't need translation.

Version-Release number of selected component (if applicable): 1.3


How reproducible: Always


Steps to Reproduce:
1. Create a draft XML file in en-US
2. publican update_pot
3.
  
Actual results: 
A POT file of the draft XML file is created in the pot directory 


Expected results:
The draft XML file should be ignored when creating the POT files as it doesn't need translation.
Only POT files of those XML files included in a book should be created.


Additional info:

Comment 1 Jeff Fearn 🐞 2009-12-09 06:23:01 UTC
IMHO this highlights a flaw in the translation work flow and isn't a bug in publican.

You should only be translating files marked for translation. Files that _are_ included in the book may not be ready for translation yet, so relying on whether or not they are currently included in the book is, at best, unreliable.

Furthermore since writers are responsible, or would be in any sane system, for checking in POT files that are ready for translation, they should not be checking in POT files they don't want translated.

Cheers, Jeff.


Note You need to log in before you can comment on or make changes to this bug.