Questions tagged [gettext]
Gettext is a package for Ubuntu that contains internationalization and localization utilities so that programs can be compiled with native language support and so are able to output messages in the user's desired language.
19
questions
3
votes
1
answer
618
views
How to convert .qm and .ts files to .mo or .po?
I'm working with several language files and sometimes the sources are in .qm/.ts format. I'm using Qt Linguist/Gtranslator/POEdit but AFAIK none of these can convert these files to .mo/.po. Are there ...
1
vote
1
answer
4k
views
Python doesn't use decimal point separator in 'Region and language'
If I open the 'Region and language' dialog, I have 'Formats' set to 'Germany'. If I click that setting, the 'Numbers' preview is '123.456.789,00' (comma as a decimal separator).
But if I run python3 -...
1
vote
1
answer
3k
views
Gettext in PHP not working anymore after server upgrade 16.04 to 18.04
as in subject, after upgrading Ubuntu Server from 16.04 LTS to 18.04 LTS my PHP websites no longer adapt to browser locale as it used to work before the upgrade.
My wanted locale files (it_IT.UTF-8) ...
2
votes
3
answers
2k
views
Outdated package version error even though manually updated it
I am building a GNOME project. When I run autogen.sh it gives me error about outdated gettext.
nidhi@nidhi:~/gnome-calendar$ ./autogen.sh
autoreconf: Entering directory .
autoreconf: running: ...
0
votes
1
answer
109
views
Do patching an installed PHP package have side-effects?
I used this recipe from DigitalOcean to install phpMyAdmin on a web server running Ubuntu 16.04 LTS.
However, the version of php-gettext that you get for Ubuntu 16.4 LTS by doing:
apt install php-...
0
votes
2
answers
1k
views
Upgrading gettext in Ubuntu 16.04 to version of 17.04
I'm running Ubuntu 16.04
I'd like to install gettext version 0.19.8.1-1ubuntu2 on my computer?
Can I easily install it on Ubuntu 16.04?
Should I install it after upgrading to Ubuntu 17.04?
0
votes
1
answer
3k
views
How to install gettext from source if msgfmt doesn't have the option --desktop?
I need to upgrade gettext on the travis-ci.org CI service which is based on Ubuntu 14.04 because of The AM_GNU_GETTEXT_VERSION declaration in your configure.ac file requires the infrastructure from ...
7
votes
2
answers
1k
views
How to translate a program installed by snap package?
I installed VLC by snap packages in Ubuntu 16.10 Yakkety Yak. But the installation was done in English (my version of Ubuntu is in Spanish)
Basically the same question has been asked at Snap (...
0
votes
1
answer
5k
views
installing php-gettext using --with-gettext
At the moment I'm figuring out how to install php gettext on Ubuntu 14.04,
the documentation tells me I should use --with-gettext http://php.net/manual/en/gettext.installation.php#119139
and I ...
4
votes
1
answer
9k
views
How to fix broken `msgfmt` installation?
Several projects that I am trying to build from scratch appear to need msgfmt in order to build. They all fail.
However, when I try to run it directly on the command line I get:
$ msgfmt
msgfmt: ...
1
vote
2
answers
6k
views
How to upgrade gettext / autopoint on Ubuntu 15.04
I'm trying to compile a project that has a dependancy on gettext 0.19.3. I currently have 0.19.2 installed.
I've tried:
sudo apt-get install gettext
sudo apt-get install autopoint
sudo apt-get ...
3
votes
1
answer
882
views
How to translate ListElement property with Ubuntu SDK
I have my fist Ubuntu Touch QML app running, and I am willing to translate it.
Whenever I use a UI string in the qml files, I was careful to use i18n.tr("my text").
So now I need to generate the pot, ...
5
votes
1
answer
2k
views
xgettext output to specific folder
I am new using xgettext command. So I don't know what am I doing wrong.
I put the command:
xgettext -n *.php -o --output='/home/public/sample'
in my script, but I get an error:
xgettext: cannot ...
7
votes
1
answer
10k
views
Installing glib gives "You must have either have gettext support"
I'm trying to install glib-2.37.6 (also same problem with glib-2.32.1) and getting this error during configuration:
You must have either have gettext support in your C library, or use the
GNU ...
1
vote
2
answers
133
views
Translating quickly application
I created an application using quickly create ubuntu-application myapp.
Then I created translations and created deb package quickly package to install and test it. When I run myapp all strings from ...
1
vote
1
answer
379
views
What's the naming convention for ngettext short name?
gettext.gettext is imported as _:
from gettext import gettext as _
It's some naming convention, right? What's the equivalent for gettext.ngettext? __?
0
votes
1
answer
1k
views
Path to gettext locales directory
I want add locales support to my python app, but I have problem with path to directory with translates. Defualt is /usr/share/locale, but what is recommended method to define it?
Writing path in ...
10
votes
2
answers
2k
views
How to use gettext to make QML files translatable
I'd like to write a QtQuick app based on Python (PySide) and QML.
I know Qt apps have got their own translation technology, but I would like to stick to gettext for this one. I'd like to know if it's ...
9
votes
1
answer
1k
views
How to make Glade load translations from /opt
I've created an application that I'd like to submit through the Ubuntu app developer process. One of the requirements for the process is that when installed, all files go into the /opt/extras.ubuntu....