Version: 1.0 (KDE 4.3) (using KDE 4.5.0) OS: Linux Wish of automatic inclussion of "Language" header in .po files by Lokalize. The presence of the language header would be useful for tools, like pology, that manage .po file. I include some fragments of an email interchange between me and Chusslove Illich: Language: is since recently a standard PO header field, and therefore current and future parts of Pology and other tools are going to take note of it. Language: header field should indeed be added to the catalog by the PO editor, based on project configuration. Also, when merging with templates, msgmerge since 0.18 will try to guess the language code from Language-Team: header field (which usually contains human-readable language name in English), and add Language: header field if it succeeds. Reproducible: Didn't try Actual Results: # translation of kontact.po to Spanish # Translation of kontact to Spanish # translation of kontact.po to # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010 Free Software Foundation, Inc. # # Juan Manuel Garcia Molina <juanma@superiodico.net>, 2003, 2004, 2005. # Pablo de Vicente <p.devicente@wanadoo.es>, 2005. # Juan Manuel García Molina <juanma@superiodico.net>, 2006. # Enrique Matias Sanchez (aka Quique) <cronopios@gmail.com>, 2007. # Franco Mariluis <fmariluis@gmail.com>, 2008. # Eloy Cuadra <ecuadra@eloihr.net>, 2008, 2009. # Dario Andres Rodriguez <andresbajotierra@gmail.com>, 2009. # Dario Andres Rodriguez <andrebajotierra@gmail.com>, 2009. # Javier Vinal <fjvinal@gmail.com>, 2009, 2010. # Javier Viñal <fjvinal@gmail.com>, 2010. Expected Results: # translation of kontact.po to Spanish # Translation of kontact to Spanish # translation of kontact.po to # Language:es # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010 Free Software Foundation, Inc. # # Juan Manuel Garcia Molina <juanma@superiodico.net>, 2003, 2004, 2005. # Pablo de Vicente <p.devicente@wanadoo.es>, 2005. # Juan Manuel García Molina <juanma@superiodico.net>, 2006. # Enrique Matias Sanchez (aka Quique) <cronopios@gmail.com>, 2007. # Franco Mariluis <fmariluis@gmail.com>, 2008. # Eloy Cuadra <ecuadra@eloihr.net>, 2008, 2009. # Dario Andres Rodriguez <andresbajotierra@gmail.com>, 2009. # Dario Andres Rodriguez <andrebajotierra@gmail.com>, 2009. # Javier Vinal <fjvinal@gmail.com>, 2009, 2010. # Javier Viñal <fjvinal@gmail.com>, 2010.
i'll implement this for KDE 4.6. in the meantime, could you post a link to the new standard?
Added to the Gettext manual: http://www.gnu.org/software/gettext/manual/html_node/Header-Entry.html#Header-Entry
well from that link i need to modify your expected results: not # Language:es but "Language: eh\n" which goes in the first msgid/msgstr entry, usually called header entry.
SVN commit 1202398 by shaforo: add support for Language: gettext header field BUG: 247946 please reopen the bug if lokalize in kde 4.6 works not as expected for you M +14 -2 gettextheader.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1202398