On 17/11/11 15:31 -0300, Luis Falcon wrote: > On Thu, Nov 17, 2011 at 1:53 PM, Cédric Krier <[email protected]> wrote: > > On 17/11/11 12:40 -0300, Luis Falcon wrote: > >> By the way, we need to create a header for each .po file. Probably we > >> should include it in Tryton translation. Otherwise, just open the .po > >> file with "poEdit" and save it, it will create the header > >> automaticallly for you. > > > > Which headers? > > I think our format is correct as it is generated by polib. > > You need per .po file the header, something like this > > msgid "" > msgstr "" > "Content-Type: text/plain; charset=utf-8\n"
I personnaly find all this informations under pointless > "Project-Id-Version: \n" Already in the project code. > "POT-Creation-Date: \n" > "PO-Revision-Date: \n" Tracked in the VCS. > "Last-Translator: meanmicio <[email protected]>\n" Also in VCS > "Language-Team: \n" Don't know what it is. > "MIME-Version: 1.0\n" We have no MIME. > "Content-Transfer-Encoding: 8bit\n" What does it mean? I think it will be better to check for fixing Transifex. For info, it is managed here: http://code.indifex.com/transifex/src/tip/transifex/resources/formats/pofile.py Indeed most of those headers are required by msgfmt which is the tools that convert po file into binary. (transformation that we don't need). Transifex seems just to really check for 'Content-Type' and 'Content-Transfer-Encoding', but even it doesn't seem to use 'Content-Transfer-Encoding'. Also when looking at [1], the pofile format doesn't specify requirements for those headers. So it seems that Transifex try to simply be closed to gettext. [1] https://www.gnu.org/s/hello/manual/gettext/PO-Files.html#PO-Files -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpmchVJclH1P.pgp
Description: PGP signature
