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.

learn more… | top users | synonyms

1
vote
1answer
128 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: ...
0
votes
0answers
11 views

intltool-extract type param for a JSON file

Is there any value for intltool-extract --type param that can be used to extract strings from a JSON file?. Also, how could I set a value to mark it as "extractable" in the file? In ...
0
votes
0answers
421 views

How to upgrade gettext / autopoint on Ubuntu 15.04

I'm trying to compile a project that has a dependancy for 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
1answer
362 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, ...
3
votes
1answer
489 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 ...
3
votes
2answers
4k 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
2answers
123 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
1answer
271 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
1answer
373 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
2answers
831 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 ...
7
votes
1answer
689 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 ...