1,780 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
72
views
git-bash gettext wrong encoding
I'm trying to translate my bash scripts using the gettext tools but I have a problem where the encoding seems to be wrong.
Let's say I have the following file called fr.po:
# French translations for ...
3
votes
1
answer
105
views
Cannot get gettext to work in php:fpm-8.2 Docker Container
I've checked on the questions regarding this issue, they did not help (see what I tried below).
I setup a multi-container app on docker with a httpd:2.4 (apache) container acting as reverse-proxy ...
1
vote
1
answer
43
views
xgettext detects false positives due to java.sql.ResultSet::getString
If I run find src -iname "*.java" | xargs xgettext -ktrc -ktr -kmarktr -ktrn:1,2 -o po/keys.pot --from-code=utf-8 to create the keys.pot file, then this contains all strings given to i18n::...
0
votes
0
answers
51
views
Sphinx: How do I protect individual table cells of an external CSV file from translation?
I use Sphinx (Python 3.13.3) and use the 'gettext' builder to create '.pot'/'.po' files.
Certain cells in a . csv-table:: should not be translated (e.g. registry keys, enum values), but they may occur ...
0
votes
2
answers
49
views
Import translations from a different Gettext file
I have a C software translated through Gexttext and already-translated .po files.
I have the HTML documentation of that software, similarly-translated.
Both translations share some strings, namely the ...
0
votes
0
answers
23
views
Handling ISO 639-2/3 codes in Phoenix's Gettext implementation?
I need help understanding the information found on Phoenix's Gettext documentation and Phoenix's Plural documentation. I understand the default is the two-letter ISO 369 language codes, but it doesn't ...
2
votes
2
answers
161
views
Unescape C-like strings from GetText with perl
I'm trying to interpolate the double-quoted strings as defined in the PO file format format.
After some testing I could determine that the only recognized escape sequences are \a, \b, \f, \n, \r, \t, \...
0
votes
1
answer
100
views
Django gettext translation doesnt work on dynamic translations
Question
I am working on a Django application that supports multiple languages. I am using token-based authentication and trying to change the language for authenticated users based on their ...
0
votes
0
answers
76
views
Django's makemessages generates corrupt po file
Django 4.2.16
My code contains this line (beside lots more i18n texts):
filter_text = _('Filter')
I generate the "de" locale po file:
django-admin makemessages --locale de -i venv
The ...
0
votes
0
answers
61
views
Internationalization on the server side (changing languages dynaimcally mutliple times per second with gettext)
I am working on a websocket server in python (FastAPI) which will work with multiple connected clients over websockets. The server is exchanging JSON messages with the clients. Some of the JSONs ...
-1
votes
1
answer
40
views
how to print a specific text from an alert when there are multiple text in popup using selenium-JAVA?
how to print a specific text from an alert when there are multiple text in popup using selenium webdriver-JAVA?
i tried with get text from alert after switching to alert. but there is an way to do it ...
0
votes
0
answers
66
views
Internationalization with gettext
I use gettext for internationalization. I define a static and a non-static string. The string only gets translated the second time I wrap it with __(). In my understanding, the string should already ...
0
votes
0
answers
173
views
How to switch gettext language live in PyQt6
I am currently working on a Linux-native GUI for 7-zip and have already completed the menu and toolbar. In them are of course a lot of text snippets that I translate using gettext. It is possible to ...
-2
votes
1
answer
51
views
Unable to locate element - Exception
URL - https://www.saucedemo.com/inventory-item.html?id=4
How to access the $ mark on this Xpath?
//*[@id="inventory_item_container"]/div/div/div[2]/div[3]/text()[1]
I'm getting an error on ...
0
votes
1
answer
40
views
What dependency do I need to get GettextResourceManager?
Here is the C# manual for gettext. It claims:
Prerequisite
—
It also shows usage of a class GNU.Gettext.GettextResourceManager.
In a Mono 6.12.0.200 project on Debian Buster there is no ...