[tor-bugs] #1613 [BridgeDB]: i18n bridgedb
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Aug 27 17:09:55 UTC 2010
#1613: i18n bridgedb
----------------------+-----------------------------------------------------
Reporter: phobos | Owner: kaner
Type: task | Status: needs_review
Priority: normal | Milestone: BridgeDB Upgrades Phase 1
Component: BridgeDB | Version:
Keywords: | Parent:
----------------------+-----------------------------------------------------
Comment(by nickm):
Looking through the code for initial issues:
* Having to list all the languages explicitly in the configuration file
seems awkward. Can't we load a list by just seeing what languages are
available?
* This HTML_1...HTML_5 and EMAIL_1...EMAIL_6 business seems kinda
awkward. Is there a reason to split things up into 5 (or 6) numbered
pieces?
* I'm afraid I don't understand what's going on with gettext here. It
looks like you mess with global state somehow by calling the .install()
method on every language you're about to send before you generate any
messages. Using global state like this makes me twitchy; is there really
no way to make this more OO and ask the I18N module for some kind of
"Translation" object, then ask the translation object for an approprate
"_" method?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1613#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list