Skip to content
This repository was archived by the owner on Jan 2, 2020. It is now read-only.

i18n support#45

Open
muelli wants to merge 16 commits intomuelli:masterfrom
andreimacavei:internationalization_support
Open

i18n support#45
muelli wants to merge 16 commits intomuelli:masterfrom
andreimacavei:internationalization_support

Conversation

@muelli
Copy link
Owner

@muelli muelli commented Aug 7, 2015

Look at that: http://askubuntu.com/a/144139/207933

Or at the coala people...

…__master-muelli

Conflicts:
	keysign/Keyserver.py
	keysign/MainWindow.py
	keysign/Sections.py
At the moment I will go with gettext and not GNOME intltool since it will require some changes in program install.
Using  Glib wrapper for gettext which is _().
Each file that contains translatable string will import from i18n module and will define '_' as ugettext(gettext with unicode) wrapper.
The setup.py file was updated with classes that can build the translation files using msgfmt.py script (from i18n directory).
…app.

It seems that the app deployment isn't copying the necessary .mo files into the installation path or I don't know which is that path.
…ith Py3.

It still doesn't work with Python 3 because of the 'ugettext' from files that import i18n.
A solution is to install  '_()' function globally into the built-in namespace , usually in the main driver file. (i.e: 'gnome-keysign.py') , but somehow I can't make it work.
Added the actual misc.i18n file this time and now it should install the
translation files correctly , in the same place where gettext is looking
(<sys.prefix>/share/locale)
@andreimacavei andreimacavei force-pushed the internationalization_support branch from f72572c to 6cf48ad Compare August 18, 2015 16:33
@andreimacavei
Copy link

This works now as it should.
I've also merged this with current develop branch into a new branch here: https://github.com/andreimacavei/geysigning/tree/merge_i18n_develop

@muelli
Copy link
Owner Author

muelli commented Aug 20, 2015

Looks good! Where does keysign/misc/i18n.py come from and what is the license?
Also: Does that file work with Python 3? I think there is one print statement that doesn't work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants