class documentation
class MultiLanguageManager(object): (source)
Manage content languages and custom language-dictionary entries.
| Method | del |
Delete one language entry from the language metadata mapping. |
| Method | get |
Return merged language dictionary from master, custom config, and metaobj providers. |
| Method | get |
Return preferred manage-language for the current management request. |
| Method | get |
Return the list of available ZMI manage languages. |
| Method | get |
Map HTTP accept-language header to one configured language id if enabled. |
| Method | get |
Return language metadata for one language id. |
| Method | get |
Return language-dictionary entries as ordered list including their key field. |
| Method | get |
Return configured language ids, optionally sorted by display label. |
| Method | get |
Return the configured language metadata mapping. |
| Method | get |
Public wrapper returning translated string for the given key and language. |
| Method | get |
Return depth-first language tree as (id, metadata) tuples. |
| Method | get |
Resolve request language from parameter, URL suffix, accept-language, or primary. |
| Method | get |
Extract language suffix from a filename and return matching language id. |
| Method | get |
Return the configured display label for the given language id. |
| Method | get |
Return the parent language id for the given language id. |
| Method | get |
Return all parent language ids up to the root language. |
| Method | get |
Return the id of the configured primary content language. |
| Method | get |
Return translated ZMI label text for the current manage-language. |
| Method | manage_change |
Handle ZMI language-dictionary actions (save/delete/import/export). |
| Method | manage_change |
Handle ZMI language management actions (save/delete) and redirect with message. |
| Method | set |
Persist custom language dictionary and clear request buffer cache. |
| Method | set |
Persist the complete language metadata mapping. |
| Method | set |
Create or update one language entry and update primary/parent links if needed. |
| Method | set |
Set the id of the primary content language. |
| Instance Variable | attr |
Undocumented |
| Instance Variable | language |
Undocumented |
| Method | _get |
Resolve one translation value from custom dictionary first, then system fallback. |