Unfortunately, I still have issues trying to make serge work. This time I'm not quite sure what the workflow for translation .po files could be. Can you please help me to connect the dots.
Repository layout
We have a repository with the following structure:
en/LC_MESSAGES/messages.pot
...
ar/LC_MESSAGES/messages.po
bg/LC_MESSAGES/messages.po
ru/LC_MESSAGES/messages.po
...
The en
lang plays the role of a source language. Files in lang/LC_MESSAGES/messages.po
are mostly translated.
Serge configuration
Serge config file looks like this: my_project.serge. I put my repository inside repos/my_project
, and translation files which Pootle operates with, live in translations/my_project
.
What I expect to have
At first sight, it looks a bit silly that we make Serge to parse .po files and store it in a different directory with the same format. But my initial goal was to make Serge apply changes from en/.../messages.pot
to lng/.../messages.po
for every language. Previously we did this job with pootle update_against_templates
, but according to new documentation, it's up to third-party tools to do this. I expected Serge to help me with that :)
What I tried to do
Simple serge pull
and serge localize
didn't help. Quite the opposite, it replaced all translations in all files with msgids. The diff excerpt (result of the serge localize
work).
@@ -38,7 +36,7 @@ msgstr ""
#: tmpl/user/reset_password.mako:24
#: tmpl/user/welcome.mako:53
msgid "Best regards,"
-msgstr "С наилучшими пожеланиями,"
+msgstr "Best regards,"
I rolled back everything to initial state and removed the SQLite "translation memory" database. My next step was to try to import strings first. Results of the serge import
weren't very satisfactory either.
Looks like Serge populates database with original strings for every language. The result of serge localize
was the same as in previous case.
What should I do?
I tried to make Serge work according to my expectations based on my best understanding of the Serge workflow. Can you please help me and tell me where I failed. Shouldn't I use Serge for that kind of work in the first place, or my workflow is wrong, or maybe there is a bug in Serge itself?
Grateful for any help. Ready to provide all sorts of extra information. Thanks!