Hi, I am new in the list, and my english isn't very good. I'm sorry and I
expect you understand me.
I'd like to see trac showing messages in other languages...
I'm from Spain and I could translate it to spanish, but trac isn't prepared.
Python have GNU gettext support: you only need to wrap the messages with the
gettext function. Here's an example of typical usage for this API:
# I think this must go in trac.cgi:
import gettext
gettext.bindtextdomain('myapplication', '/path/to/my/language/directory')
gettext.textdomain('myapplication')
_ = gettext.gettext
# Everytime you put a translatable string, you use:
print _('This is a translatable string.')
By other way, i don't know if ClearSilver have localization support, but I
could have different sets of .cs templates. And I think that's all you need to
have trac prepared to other languages!! What do you think?
Greetings,
Mario Palomo
expect you understand me.
I'd like to see trac showing messages in other languages...
I'm from Spain and I could translate it to spanish, but trac isn't prepared.
Python have GNU gettext support: you only need to wrap the messages with the
gettext function. Here's an example of typical usage for this API:
# I think this must go in trac.cgi:
import gettext
gettext.bindtextdomain('myapplication', '/path/to/my/language/directory')
gettext.textdomain('myapplication')
_ = gettext.gettext
# Everytime you put a translatable string, you use:
print _('This is a translatable string.')
By other way, i don't know if ClearSilver have localization support, but I
could have different sets of .cs templates. And I think that's all you need to
have trac prepared to other languages!! What do you think?
Greetings,
Mario Palomo