po2moz command does not work anymore

Bug #1121264 reported by DeeKey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
translate-toolkit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Steps to reproduce:
1) Download pencil.dtd english source file:
http://evoluspencil.googlecode.com/svn/branches/pencil-2.0/app/locale/en-US/pencil.dtd
2) convert dtd to po file using:
moz2po pencil.dtd -o pencil.po
3) try to convert back to dtd file
po2moz -i pencil.po -t pencil.dtd -o backpencil.dtd
OR
po2moz -i pencil.po -o backpencil.dtd

Expected behavior
2) conversion successful
3) will get valid dtd file

Actual behavior
2) conversion successful
3) no valid dtd file generated! Get just a copy of po file!
no errors reported.

Revision history for this message
Stuart Prescott (themill) wrote :

The DTD file can now be found at https://github.com/cajun-code/evoluspencil/blob/master/Build/XULRunner/chrome/locale/en-US/pencil.dtd (or one of the other 190 dumps of this project from google code to github)

Revision history for this message
Stuart Prescott (themill) wrote :

moz2po and po2moz require the correct filenames to operate. In particular, the filename must include an indication of the origin of the data (so, foo.dtd.po not foo.po). From the documentation:

«The file extension of the original Mozilla file is required to tell the Toolkit how to do the conversion. Therefore, a file like foo.dtd must be named foo.dtd.po in order to po2moz to recognise it as a DTD file.»

The following seems to work just fine:

$ moz2po pencil.dtd pencil.dtd.po
$ sid po2moz -t pencil.dtd pencil.dtd.po backpencil.XX.dtd

Changed in translate-toolkit (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.