1

Okay, this should be simple, but I can't find the information I need.

Let's say I created .po file from some text file (which is not a source code). I translated needed strings.

How do I apply this .po file? In other words what software should I use to replace strings in a given text file based on the existing .po file?

I expect this to be a commandline utility or gui-based that can do this in a batch for hundreds of files.

Edit: oh, forgot one important thing. This is for Windows!

user2333940
  • 113
  • 8
  • Did you solve this? I asked a similar question. https://stackoverflow.com/questions/61246851/how-to-make-translations-of-full-articles-from-po-files-in-sphinx-or-gettext – Yaroslav Nikitenko Apr 16 '20 at 09:32

1 Answers1

1

polib can, with a bit of glue code, be used to manipulate .po files in batch mode.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
  • Could you please expand on the *glue code*? In polib API I can't see functions that could help with the question's author problem. (https://polib.readthedocs.io/en/latest/api.html) – Yaroslav Nikitenko Apr 16 '20 at 09:32