Questions tagged [xgettext]

104 questions
16
votes
3 answers

Gettext : How to update po and pot files after the source is modified

I've got a python project with internationalized strings. I've modified the source codes and the lines of the strings are changed, i.e. in pot and po files lines of he strings are not pointing to correct lines. So how to update the po and pot files…
deimus
  • 9,565
  • 12
  • 63
  • 107
16
votes
3 answers

What does #, fuzzy mean at the top of a xgettext-generated .pot file?

When using xgettext to generate a .pot file, at the top of the generated file I get this: # SOME DESCRIPTIVE TITLE. ... #, fuzzy ... What does the #, fuzzy mean? I know what it means if a translation is fuzzy (it is poor quality), but what does it…
user1318194
12
votes
1 answer

Django MakeMessages missing xgettext in Windows

Running Django on Windows 7. I'm currently trying to translate a couple of Django templates using the instructions found in the django book chapter 19. I've added a translation tag to the template, loaded I18N, and modified django settings. Then I…
Steinin
  • 541
  • 7
  • 20
12
votes
4 answers

xgettext vs gettext

I have a few questions: I know what gettext is. I've read a few posts where they mentioned xgettext and was curious as to what is the difference between the two. How can I install xgettext on Windows? And finally, does anybody have a tutorial on…
Kentor
  • 657
  • 1
  • 10
  • 27
11
votes
7 answers

How to generate a new .pot template from a translated .po file

Having started off with an incomplete gettext .pot file, the resulting .po translations file now includes a large number of translation strings that were not originally in the .pot file. How can I backwards generate a .pot file for other languages…
richhallstoke
  • 1,519
  • 2
  • 16
  • 29
11
votes
3 answers

CMake module for gettext support?

Is there a good, open-source, documented CMake module for gettext support? I mean: Extracting messages from sources Merging messages to existing translations Compilation of mo-files Installation of mo-files. Because plain macros that CMake…
Artyom
  • 31,019
  • 21
  • 127
  • 215
11
votes
5 answers

Recursive xgettext?

How can I compile a .po file using xgettext with PHP files with a single command recursively? My PHP files exist in a hierarchy, and the straight xgettext command doesn't seem to dig down recursively.
neezer
  • 19,720
  • 33
  • 121
  • 220
11
votes
1 answer

Recursive scan for files with xgettext

I need to recursively scan all folders from a project for xgettext strings. How can this be done using xgettext on linux? My current parameters are: --default-domain=project -k_
ChrJantz
  • 919
  • 1
  • 11
  • 23
8
votes
2 answers

PoEdit keywords - plurals

I incorporated a gettext-like localization system in my app, but my translation function looks like this: t($category, $string, [$plural_string, $number, $vprintf_arguments]) My PoEdit keywords: t:2 t:2,3 t:2 tells PoEdit to parse $string, and…
Alex
  • 66,732
  • 177
  • 439
  • 641
8
votes
3 answers

Django makemessages javascript (xgettext)

I want to use django i18n support to translate my javascript files. I have the following javascript file: var test_text = gettext('example'); @withStyles(styles) export default class HomePage { static contextTypes = { i18n: PropTypes.object …
ilse2005
  • 11,189
  • 5
  • 51
  • 75
8
votes
2 answers

How to automatically remove unused gettext strings?

I have a web application where I have several translations using gettext. But now I have done a major rewrite of the application and while most of the strings are the same, there are also quite a few that were changed significantly or removed. I…
getSurreal
  • 347
  • 5
  • 10
6
votes
0 answers

How to merge two .po files?

I have 2 problems to merge 2 .po files. I have 1 .po file(trans.po) for my applications localization, and another one (transNew.po) I produced recently. I need to merge them. But I when I run the following command, I will always get the same…
cHiWa
  • 383
  • 1
  • 3
  • 14
6
votes
2 answers

Extract translator comments with xgettext from JavaScript (in Python mode)

I have a pretty well-working command that extracts strings from all my .js and .html files (which are just Underscore templates). However, it doesn't seem to work for Translator comments. For example, I have this in one of my .js files: ///…
ragulka
  • 4,312
  • 7
  • 48
  • 73
5
votes
1 answer

How to use xgettext iteratively to update .po files for translation

I'm looking at using xgettext to aid translation of large codebase, and I have two questions: if I have one .po file per-language, is there an easy way to update them all using a single xgettext scan of the codebase, or must I run xgettext once for…
Paul Dixon
  • 295,876
  • 54
  • 310
  • 348
5
votes
3 answers

Impossible to install gettext for windows 10

I have followed all the steps shared in all stackoverflow and other questions out there to install gettext for windows (10), but still, I get the error: "Can't find msguniq, make sure you have gettext tools installed" when using internationalization…
Elchinas
  • 139
  • 2
  • 8
1
2 3 4 5 6 7