Return translated string The name has an underscore to avoid conflicting with gettext module.
(str)
| 412 | |
| 413 | |
| 414 | def get_text(str): |
| 415 | """Return translated string |
| 416 | |
| 417 | The name has an underscore to avoid conflicting with gettext module. |
| 418 | """ |
| 419 | global attempted_setup_translation, t |
| 420 | if not attempted_setup_translation: |
| 421 | setup_translation() |
| 422 | if not t: |
| 423 | return str |
| 424 | return t.gettext(str) |
| 425 | |
| 426 | |
| 427 | def nget_text(singular, plural, n): |