Ivo Hinkelmann wrote:

Hi Robert , David

David Fraser wrote:
[...]

If I run localize_sl like this:
localize_sl -e -l en-US,sl-SI -f /tmp/myfile
I get two lines (for en-US and sl-SI) but strings are in *both* cases either in english or in slovenian language.
...
helpcontent2 ... en-US ... String_in english
helpcontent2 ... sl-SI ... String_in english

The en-US / sl-SI mix result is caused by the help migrate script. The migrated xhp files contains both languages. I guess that if there is no corresponding sl-SL entry, because of the difference of OOo 1.x / OOo 2.0, the 2.0 en-US string is used . Please ask Frank Peters or take a look into that script and try to hack it.

helpcontent2 ... en-US ... String_in slovenian
helpcontent2 ... sl-SI ... String_in slovenian

The sl-SI / en-US mix result is caused by copying the "en-US / sl-SI" mix over the helpcontent2 tree and extract with -l en-US ;)

OK I didn't realise the above, thanks for pointing it out.

grep ^helpcontet2 to myfile-hc2.sdf

and oo2po -i myfile-hc2.sdf -o po_dir -l en-US,sl-SI
puts "String_in slovenian" in msgid and msgstr (which means that oo2po runs OK :-)


How can I get a SDF file in format:
...
helpcontent2 ... en-US ... String_in english
helpcontent2 ... sl-SI ... String_in slovenian
...
Thanks



This is a good question!

I have been making some changes to oo2po and po2oo recently, and this relates to them.

Basically I think the current model where localize includes the English for a language if the translation is not present is not ideal.
I think it would be better to enable localize to leave out the language in the output if the translation is not present.


This is exactly what localize does! If you don't called it with the fallback option ( -l xx=yy ), it writes only the present strings of that language.
I am not a help migrate expert, it's better if Frank Peters, Pavel or others also can share their experience on that topic.

Thanks for the explanation and sorry for the confusion!

David

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to