Questions tagged [po-file]

8 questions
39
votes
4 answers

Gettext .po files under version control

Currently using Gettext on a project and the .po files are nicely kept under version control. PO files of course contain translations, but in addition to that they also contain some metadata - information about the exact files and line numbers where…
Rene Saarsoo
  • 13,580
  • 8
  • 57
  • 85
3
votes
4 answers

php source code to PO file generator

I have to convert all my echo/print string from my php source code file to PO file(for the language translation), is there any batch convector available for the same.
coderex
  • 27,225
  • 45
  • 116
  • 170
2
votes
1 answer

Not apply .po files for module in Orchard CMS

I install Orchard CMS 1.10 and take russian translate from https://crowdin.com/project/orchard-cms and unpack to Orchard.Web. When i added and enabled ru-Ru localization all work good for razor views. But for module isn't. For example i try change…
Ievgen
  • 57
  • 5
2
votes
1 answer

ZF2 2.2.4 issue with translator

I have an issue since i passed from ZF 2.2.0 to ZF 2.2.4 on my website, change language doesn't work. This is my autoload/translator.global.php Without change the source code, just switch to 2.2.0 it works, 2.2.4 is not.
amdev
  • 3,010
  • 3
  • 35
  • 47
2
votes
1 answer

How to have no-break spaces in translatable strings

We have a Pyramid application which we must have in English, Spanish and French. We have completed our first pass of i18n, however we are troubled about how to introduce no-break spaces in our translate strings. For instance we have the…
manu
  • 3,544
  • 5
  • 28
  • 50
1
vote
0 answers

How to keep translations which were added or modified through the Odoo interface (by the final user) when I reload the po file?

When you export the translation template for a specific module, you export all the items in the module: literal string in python, labels and all the info you have manually introduced in the data folder: Imagine that you have installed your module…
ChesuCR
  • 9,352
  • 5
  • 51
  • 114
0
votes
1 answer

References in PO file - using cakephp: Have them any effect on the translation?

At present I am working with a cakephp solution (closed source unfortunatelly) and noticed sometimes that a string won't be translated even if it has msgid entry in the po file. I realized that this happens if the source reference is not in the…
sipiatti
  • 904
  • 1
  • 9
  • 21
-2
votes
2 answers

Regex for replace msgstr in PO file data using python

I have list content = ['x', 'y', 'z'] .po file content: msgid 'abc' msgstr '' msgid 'def' msgstr '' msgid 'ghi' msgstr '' I need output like below: msgid 'abc' msgstr 'x' msgid 'def' msgstr 'y' msgid 'ghi' msgstr 'z' Edit: with…
Neeraj Kumar
  • 3,851
  • 2
  • 19
  • 41