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

-- 
You received this bug notification because you are a member of
Translators Packages, which is subscribed to translate-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1121264

Title:
  po2moz command does not work anymore

Status in translate-toolkit package in Ubuntu:
  Invalid

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/translate-toolkit/+bug/1121264/+subscriptions

-- 
Mailing list: https://launchpad.net/~translators-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~translators-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to