Questions tagged [xgettext]
104 questions
0
votes
1 answer
xgettext dry run to avoid unnecessary commits in Github workflow
Is there any way to do a dry run of xgettext on source files, in order to simply check if there are any differences compared to the current .pot file?
I have set up a Github workflow that will run xgettext on source files any time a change to a…

JohnRDOrazio
- 1,358
- 2
- 15
- 28
0
votes
1 answer
xgettext fails to extract tag attributes
I'm stuck with xgettext missing tag attributes in HTML templates, e.g.:
xgettext --keyword=_ --language=Python -o - - <
% msg = _('A translatable string')
{{ _('Page title') }}
…

neurino
- 11,500
- 2
- 40
- 63
0
votes
1 answer
Xgettext is not working on Debian 10 with apache2 and gettext installed
Given: debian10 + apache2 + gettext package installed. Having a .php file with some php+html code. I try ot use xgettext to grab the strings for translation from this .php file and save them into .pot file. From the instruction…

Natalya GNS
- 11
- 4
0
votes
1 answer
msgfmt error when generating .po file with xgettext and msginit
When using the following commands to generate a .po file:
xgettext test.js -o test.pot -L JavaScript --from-code=UTF-8
msginit -i test.pot -o de.po --locale=de
I get the following header:
# Copyright (C) 2021 THE PACKAGE'S COPYRIGHT HOLDER
# This…

Florat
- 119
- 1
- 7
0
votes
1 answer
Translating strings that are outside of the range of gettext
I'm implementing get text on my Discord bot and I have a few strings that come from configuration files for example: Regions where the game is from (Global server, Korean server, Japanese server, Asia server, etc.) that I want to also be translated…

Dimbreath
- 70
- 1
- 8
0
votes
1 answer
Using xgettext to extract translatable strings from VueJS file
I am trying to use xgettext to extract strings to be translated from a VueJS file. I am not able to get xgettext to recognize JS that is in a VueJS computed property though.
For example, I have an element in my like so:

Andrew
- 3
- 2
0
votes
1 answer
How do I use xgettext to scan JS file
How do I use xgettext by invoking the xgettext program in Window 10?
I tried the following, and it didn't work.
xgettext --language=JavaScript --from-code=utf-8 --keyword=gettext --sort-output --join-existing --no-wrap -f videobanner.js -d snapmaker…

user9455403
- 13
- 2
0
votes
2 answers
ITS rule to translate a XML attribute using namespace
I'm trying to use itstool to translate some attributes from a XML file like this one:

Emilio Conte
- 1,105
- 10
- 29
0
votes
0 answers
xgettext with a custom input format
xgettext is capable of extracting strings for translation from a variety of source languages.
-L, --language=NAME
recognise the specified language (C, C++, ObjectiveC, PO,
Shell, Python, Lisp, EmacsLisp, librep, Scheme,…

Marcus Downing
- 10,054
- 10
- 63
- 85
0
votes
1 answer
xgettext not picking up string from a specific directory only
I have python 3.5 application using tornado. I had separated my application in 4 directories:
app/
--- admin
--- server
--- admin_static
--- server_static
and collecting string for the .po file is strange because never is going inside the app/admin…

aaa
- 446
- 2
- 8
- 29
0
votes
1 answer
Poedit without location comments
I'd like to have .po-file without path-comments (location). Our team has because of them a lot of trouble during git-merge.
I can get the file without comment using command:
$ xgettext --no-location -o input.po output.po
BUT! It removes headlines…

Juljan
- 2,391
- 1
- 17
- 20
0
votes
1 answer
Handle textDomains with zend-framework3 and gettext
We're using ZF3 for a large app with internationalization.
i18n is done with zend-i18n, zend-mvc-i18n, and xgettext cli for extraction / compilation of pot / po / mo files.
For some words like Contact which could be a verb or a noun, we've…

hostalerye
- 1
- 4
0
votes
1 answer
Webpack TypeScript and xgettext translations
I have a Django app and am using Django's i18n module to help translating my strings. For translating JavaScript, I run
python manage.py makemessages -d djangojs
which adds all marked strings to a .po file. This works quite well for all my boring…

Eldamir
- 9,888
- 6
- 52
- 73
0
votes
1 answer
i18n localization On Windows Forms
I have seen the localization package
I18N (https://github.com/turquoiseowl/i18n)
and I am trying to find something simliar for Windows Forms.
is there anythink like it for Windows forms?

Mike Kolikidis
- 21
- 5
0
votes
0 answers
Mono.Posix PInvoke has unbalanced the stack
Only headaches from this Mono library...
I created simple C# console app from this internationalization tutorial
It works when building it with mono, but I want to build/run it using Visual Studio. I added Mono.Posix nuget to project.
Program looks…

Jānis
- 1,773
- 1
- 21
- 30