469,625 Members | 1,099 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

Wanted: po file extract-merge script

Hello Python- Ng,

I'm looking for a special script

(I don't want to reinvent the wheel; have anyone written such a thing?
I've looked in google (and groups), but I didn't find anything

it such one doesn't exist yet,
I will write it myself, or someone is so good to support me:))
I would call it pomerge.py
pomerge.py it_collection.po my.po

I made a collection of strings, (i merged poedit po files and
wxwindows distribution po files into on)
BTW: Does there anyone exist a big collection file of all possible

(I would extract msgid as keys and msgstr as values into a

example (collection.pot)
msgid " Preview"
msgstr " Anteprima"

msgid "Envelope"
msgstr " busta"

msgid "&Close"
msgstr "&Chiudi"

(filter out msgid's)

msgid "Exit"
msgstr ""

msgid "Envelope"
msgstr ""

msgid "Next"
msgstr ""

output should be:

msgid "Exit"
msgstr ""

msgid "Envelope"
msgstr " busta"

msgid "Next"
msgstr ""
Great would be to ignore the '&' and the '\tctrl' characters, so a
translation is easier to find, and append then again in the output
Also I think for multiline string, there is a special procedure

Or do you have better suggestions?
Many thanks in advance for your answer!


Franz St.
Jul 18 '05 #1
0 1280

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Phong Ho | last post: by
9 posts views Thread by Sharon | last post: by
6 posts views Thread by Mohammad-Reza | last post: by
6 posts views Thread by Nadav | last post: by
5 posts views Thread by IcingDeath via DotNetMonster.com | last post: by
13 posts views Thread by Řrjan Langbakk | last post: by
7 posts views Thread by erikcw | last post: by
4 posts views Thread by Sutharsan Nagasun | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.