Questions tagged [xgettext]

104 questions
0
votes
1 answer

Mono internationalization

I am following this basic tutorial for C# console app internationalization. I am at the final step for displaying translated text which requires to input this command in mono console: LANGUAGE=es mono i18n.exe But the LANGUAGE command isn't…
Jānis
  • 1,773
  • 1
  • 21
  • 30
0
votes
3 answers

Regular expression to extract xgettext function names and params from cli args

I'm working on a CLI app, which allows the user to specify an argument with function names along with arguments. It's actually using the same syntax as xgettext, such as: --keywords=__,dgettext:2,dcgettext:2,ngettext:1,2,dpgettext2:2c,3 I need to…
ragulka
  • 4,312
  • 7
  • 48
  • 73
0
votes
1 answer

POedit/xgettext: create context-specific .po file / string import

POedit/xgettext: create context-specific .po file / string import Using POedit I'd like to work with 2 separate language files, so translators need only edit one client-specific language file, while the system-specific language file stays…
Marc Owens
  • 121
  • 2
  • 11
0
votes
2 answers

How do I get strings from a JSON file?

I'm writing a internationalized desktop program written in Vala where a use an extern JSON file to store a list of languages. I'm using gettext for l10n so if I get the string from the json file and I do something like _(string_var) I could get the…
chavaone
  • 183
  • 3
  • 9
0
votes
0 answers

How to traverse all subdirectories with sed and feed xgettext

I have this console command to make substitute in all PHP files in the directory. Then it feeds the xgettext program. sed "s/\/\/_/_/g" *.php | xgettext -o output.pot --language=PHP - --from-code=UTF-8 How to change it so that sed traverse all PHP…
IH2
  • 21
  • 1
0
votes
1 answer

modify gettext .pot file output to exclude empty strings or strings containing only spaces

I have a .pot file produced by xgettext on my c++ source code in format: #: file1.cpp:line #: file2.cpp:line msgid "" - empty string #: file1.cpp:line #: file2.cpp:line msgid " \t\n\r" - string contains only spaces #: file1.cpp:line #:…
0
votes
1 answer

Zend framework 2 translation using getttext in jquery

I have a web page made with ZF2 and have translated all strings of my controllers, views and fieldsets using the translate method offered by the framework in the php code. But what about the jquery code (or javascript)? How it translates the…
josepmra
  • 617
  • 9
  • 25
0
votes
2 answers

zend framework 2 gettext translation using others comments

I want know if is possible use comments already created for build other comment which contain the used commend in addition to other text. e.g. //EN file msgid "User no logged" msgstr "" msgid "#previous commend# as participant" msgstr…
josepmra
  • 617
  • 9
  • 25
0
votes
1 answer

xgettext from a csv file

I have a csv with all the values to be translated...I want to read the csv file and produce a .pot file but when i load and try calling print _(value) no .pot is produced. Not sure why you can't produce a .pot file with dynamic content from a…
deecodameeko
  • 505
  • 7
  • 18
0
votes
1 answer

How do you run the initial .pot file create from PHP?

I am busy writing an app that needs to be localized properly but the act of manually creating the portable object templates all the time is tedious. Can anyone tell me why this piece of code:
Etienne Marais
  • 1,660
  • 1
  • 22
  • 40
0
votes
2 answers

Generating a POT file

PoEdit causes problems because it scans also the Python sources in subdirectories where no scan is desired. So I want PoEdit to get new information about strings from a POT file. Here it is said that xgettext enables me to create a POT file from the…
rynd
  • 1,865
  • 5
  • 22
  • 24
0
votes
1 answer

bug in "django-admin.py makemessages" or xgettext call? -> "warning: unterminated string"

django-admin.py makemessages dies with errors "warning: unterminated string" on cases where really long strings are wrapped: string = "some text \ more text\ and even more" These strings don't even need to be translated - e.g.…
Evgeny
  • 10,698
  • 9
  • 60
  • 70
-1
votes
1 answer

Xgettext on php file in French issue with accented chars

I am using xgettext on a php file with source text in French, hence with accented chars. Such chars are not correctly interpreted, and in the .po file produced: them all appear as little square. As a result, these are not matched anymore by…
Janko
  • 51
  • 1
  • 8
-1
votes
2 answers

Error in sending data using curl in GET method

I have to send my data in json format via a curl to create a new merchant application.I got mail from my support team. curl -D- -X GET -H "Authorization: Basic Y2NhcGlAY2FyZGNvR05hOQ==" -H 'Accept: application/json' -H 'Content-type:…
Ritesh
  • 81
  • 12
1 2 3 4 5 6
7