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
11
votes
2 answers

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 possible to: Mark strings for translation in QML…
9
votes
1 answer

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.com/ directory. Through changes in…
7
votes
2 answers

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 (snapcraft?) and translated apps and How it change…
7
votes
1 answer

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 gettext library.…
ajb
  • 247
5
votes
1 answer

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 create output file "--output=/home/public/sample": No…
John
  • 53
4
votes
1 answer

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: error while loading shared libraries:…
Peter K.
  • 145
3
votes
1 answer

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, po, and mo files. I found this question and a…
alci
  • 5,979
3
votes
1 answer

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 any program capable for this?
ViBE
  • 195
2
votes
3 answers

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: autopoint --force autopoint: *** The…
1
vote
2 answers

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 install --only-upgrade gettext sudo apt-get install…
Redshirt
  • 111
1
vote
2 answers

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 glade files were translated but all strings from…
1
vote
1 answer

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? __?
1
vote
1 answer

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 -c 'import locale;…
1
vote
1 answer

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) are still there, I still bind them…
neurino
  • 131
0
votes
1 answer

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-gettext is from 2010, and it uses some depreciated…
Free Radical
  • 449
  • 1
  • 7
  • 21
1
2