diff options
| author | bwarsaw | 2001-02-28 16:37:26 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-02-28 16:37:26 +0000 |
| commit | cecd3a1c5fbc6ed9ae8079c2ba7fbb9fd7dc86f1 (patch) | |
| tree | 26cf26fc2a1e71b8b7fc52a53f857f38498c2564 /Mailman/Cgi/edithtml.py | |
| parent | bb22baf79283b1f11aeead8e65ef1bf5ef95c6b9 (diff) | |
| download | mailman-cecd3a1c5fbc6ed9ae8079c2ba7fbb9fd7dc86f1.tar.gz mailman-cecd3a1c5fbc6ed9ae8079c2ba7fbb9fd7dc86f1.tar.zst mailman-cecd3a1c5fbc6ed9ae8079c2ba7fbb9fd7dc86f1.zip | |
Big i18n changes.
CATEGORIES: Move back to module scope, and mark as translatable, but
fake out the translator so the strings don't get translated at import
time (they will be passed through _() later).
At global scope, set the language to the server's default, at least
until we know which list the request is being made on.
main(): Significant cleanups and code re-org. Don't lock the list
until absolutely necessary. Use the new preferred route for setting
the language (don't use os.environ['LANG'], instead use
i18n.set_language()). Move as much out of the locking try/finally as
possible, including the checks for authorization, logout, and
varhelp. Also, set the language on the document (so the resulting
html has the proper charset).
FormatAdminOverview() -> admin_overview()
admin_overview(): Code re-org. Set the document's language to the
server's default (since the overview isn't list specific). Don't set
os.environ['LANG'] anymore.
FormatOptionHelp() -> option_help()
option_help(): Similar changes as above. Also, allow
get_item_characteristics() to do the unpacking of the item records.
FormatConfiguration() -> show_results()
show_results(): Be sure to send the category values through _() for
translating. Mark a few more strings as translatable.
FormatOptionsSection() -> show_variables()
ColHeader() -> column_header()
AddOptionsTableItem() -> add_options_table_item()
GetItemCharacteristics() -> get_item_characteristics()
GetItemGuiValue() -> get_item_gui_value()
GetItemGuiDescr() -> get_item_gui_description()
FormatMembershipOptions() -> membership_options()
FormatSubmit() -> submit_button()
GetValidValue() -> get_valid_value()
ChangeOptions() -> change_options()
AddErrorMessage() -> add_error_message()
change_options(): Watch specifically for changes to
`preferred_language' attribute, and do the appropriate
i18n.set_language() call if found.
Diffstat (limited to 'Mailman/Cgi/edithtml.py')
0 files changed, 0 insertions, 0 deletions
