PDA

View Full Version : Glade Interface Translation Output Input



Malac
September 21st, 2006, 02:23 PM
I have a python application which extracts the "translatable" labels from a Glade file.
Let's you enter translations.
Then rebuilds the Glade file with the translations inserted instead.
I thought I'd post it here as I don't know where else to put it.
It's written in Python and it's called GITOI - Glade Interface Translation Output Input
Run the program, load <gladefilename> hit the extract button, save gitoi file
It creates translation files with a .gitoi extension with the text in as follows:

#DO NOT REMOVE THESE LINES
#TRANSLATION TEXT TO BE PLACED AFTER THE |><| SYMBOLS
#DO NOT TRANSLATE [crlf] THESE ARE FOR MULTI-LINE LABELS
#
Original GLADE File|><|
Load Original GLADE file|><|
GITOI File|><|
Extract To GITOI|><|
Save GITOI File|><|
Load GITOI File|><|
Translate to GLADE|><|
Translated GLADE File|><|
Save Translated GLADE File|><|These can be sent off to translators or put with Glade projects for people to translate.
Just place the translations after the |><| symbol and save the file.
Then the file can be loaded and the translation inserted into a new file called <gladefilename>_gitoi.glade.
The "_gitoi" part can then be changed to _fr, _de, etc. depending on the translation.

Here is a screenshot:
16067
I hope this is the right place to put this and that it proves useful to someone.

Malac
September 27th, 2006, 02:58 PM
New Version 1.0 uploaded 27th September 2006.

Malac
December 12th, 2006, 11:21 PM
Added a .deb file, Tuesday, 12 December 2006.
Hopefully making it easier to install, remove or upgrade.

ivlivs
January 21st, 2008, 10:13 PM
Would be interesting, but does nothing for me. Could you please post the dependencies?

ivlivs
January 22nd, 2008, 08:08 PM
Needs these three packages to run on Fluxbuntu:

python-gconf
python-gnome2
python-gmenu