fossilet/4digits — pull request #1 by SBasalaev (2011-12-08 23:53:14+00:00)
Title: Internationalization

Hello, I've added international support to your program using gettext and translated it into Russian. Both C/text and Python/glade programs are translated. I've also added *translators* section to about dialog and rules in `Makefile` to handle translations.

Makefile rules:

update-po

Will extract all translatable strings from sources and update translations. This should be called when you add/remove/change translatable strings in sources.

compile-po

Compiles translation catalogs in binary gettext format. I've appended this rule to `all`. These binaries are removed in `make clean`.

install-po

Installs binary gettext catalogs in proper places. It uses PREFIX variable as installation root (`/usr/local` by default).

Note that I've made the path to translation catalogs hardcoded to `/usr/local/share/locale` (see [4digits:39](https://github.com/SBasalaev/4digits/blob/master/4digits#L39) and [4digits-text.c:45](https://github.com/SBasalaev/4digits/blob/master/4digits-text.c#L45)). You probably might want to change these and/or make them configurable.