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…
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