probs merging .po and .pot

Hi all,

Probs with merging and uncertain how to continue..

Merging the <lang>.po and .pot from
   http://cgit.freedesktop.org/libreoffice/build/tree/po
according to info here
http://www.freedesktop.org/wiki/Software/LibreOffice/i18n/translating_3.3

$ msgmerge -U --previous lo-build-nl.po lo-build.pot
   results in many unknown keywords
$ msgmerge: 22214 fatal errors found

the other method:
$ pot2po -t lo-build-nl.po -i lo-build.pot -o new.tmp
processing 1 files...
[###########################################] 100%
in a millisecond ..

opening in Poedit shows an empty workspace.
Opening in GTranslator gives one error message at the start (unknown keyword 'html') but does show old translated and new untranslated content.

Is it safe to work in Gtranslator with this file ??

Thanks,
Cor

Are you sure you have download the plain texte file and not the html version?

Kind regards
Sophie

Hi Sophie,

Sophie Gautier wrote (26-10-10 14:37)

Are you sure you have download the plain texte file and not the html version?

What the bieb :slight_smile:
Rightclick - save as > html ?#$#$@

OK, should the pot-file start with
#. extracted from (input file name not known)

and the po-file with
# translation of ooo-build.nl.po to Dutch

Than I'll copypaste from my browser

Cor

see this link :
http://cgit.freedesktop.org/libreoffice/build/tree/po/lo-build-nl.po
right click on the (plain) link at the top to save the file in plain text.
Same for the pot, click on this link
http://cgit.freedesktop.org/libreoffice/build/tree/po/lo-build.pot
then right click on the (plain) link.

Kind regards
Sophie

Cor Nouws wrote (26-10-10 14:45)

OK, should the pot-file start with
#. extracted from (input file name not known)

and the po-file with
# translation of ooo-build.nl.po to Dutch

Then I'll copypaste from my browser

$ msgmerge -U --previous lo-build-nl.po lo-build.pot

lo-build-nl.po:546:1: syntax error
lo-build-nl.po:559:1: syntax error
lo-build-nl.po:727:1: syntax error

using $ pot2po -t lo-build-nl.po -i lo-build.pot -o new.tmp
processing 1 files...
[###########################################] 100%

and opening in Gtranslator shows file with only 334 lines. Not what I would expect.

Any hints, or someone able to merge and mail to me?

thnx - Cor

Cor Nouws wrote (26-10-10 14:45)

OK, should the pot-file start with
#. extracted from (input file name not known)

and the po-file with
# translation of ooo-build.nl.po to Dutch

Then I'll copypaste from my browser

$ msgmerge -U --previous lo-build-nl.po lo-build.pot

lo-build-nl.po:546:1: syntax error
lo-build-nl.po:559:1: syntax error
lo-build-nl.po:727:1: syntax error

using $ pot2po -t lo-build-nl.po -i lo-build.pot -o new.tmp
processing 1 files...
[###########################################] 100%

and opening in Gtranslator shows file with only 334 lines. Not what I would
expect.

Any hints, or someone able to merge and mail to me?

Wait, I'll give it a try
Sophie

For download lo-build.pot use this:
wget http://cgit.freedesktop.org/libreoffice/build/plain/po/lo-build.pot

Sophie Gautier wrote (26-10-10 14:55)

http://cgit.freedesktop.org/libreoffice/build/tree/po/lo-build.pot
then right click on the (plain) link.

Thanks, thats easier. But still the same fatal errors and only 334 lines :-\

Cor

I get the same error as yours, seems the file is corrupted. At least,
strange lines are commented like :

#| msgid "Create perfect documents within seconds with document templates."
#: scp2/source/accessories/module_templates_accessories.ulf#STR_DESC_MODULE_OPTIONAL_ACCESSORIES_TEMPLATES_TEMPLATES_COMMON.LngText.text
msgid ""
"Create perfect documents within seconds with document templates. Common "
"templates contain language intependent templates."
msgstr ""
"Maak in enkele seconden perfecte documenten aan met documentsjablonen. "
"Gewone sjablonen bevatten taalonafhankelijke sjablonen"

I'll try to convert the .sdf to po then merge again and keep you update
Sophie

Thanks, thats easier. But still the same fatal errors and only 334 lines :-\

The latest POT file has 334 messages (1420 words) for translation.

Hi Cor,

I'll try to convert the .sdf to po then merge again and keep you update

The new generated and corrected file has been pushed in the source by
Cedric, you can retrieved in from there now :slight_smile:

Kind regards
Sophie

Hi all,

Sophie Gautier wrote (26-10-10 16:08)

The new generated and corrected file has been pushed in the source by
Cedric, you can retrieved in from there now :slight_smile:

Thanks for the help. I got contact with Freek de Kruijf who did previous translations for openSuse and he was so kind to translate these strings as well.

I forwarded the .po to kami for integration.

Regards,
Cor