| 1 |
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
| 2 |
# Copyright 2013 Canonical Ltd. |
| 3 |
# |
| 4 |
# This program is free software: you can redistribute it and/or modify it |
| 5 |
# under the terms of the GNU General Public License version 3, as published |
| 6 |
# by the Free Software Foundation. |
| 7 |
|
| 8 |
import locale |
| 9 |
import gettext |
| 10 |
|
| 11 |
APP_NAME = 'lomiri-system-settings' |
| 12 |
LOCALE_DIR = '/usr/share/locale/' |
| 13 |
|
| 14 |
lc, encoding = locale.getdefaultlocale() |
| 15 |
|
| 16 |
if not lc: |
| 17 |
lc = 'C' |
| 18 |
|
| 19 |
language = gettext.translation( |
| 20 |
APP_NAME, LOCALE_DIR, languages=[lc], fallback=True |
| 21 |
) |
| 22 |
|
| 23 |
# UTF-8 |
| 24 |
ugettext = language.gettext |