summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicky Zhou <ricky@fedoraproject.org>2008-03-15 19:03:21 (GMT)
committerRicky Zhou <ricky@fedoraproject.org>2008-03-15 19:03:21 (GMT)
commit7b20841fb6f5178aa2a87586768ae60749d50c50 (patch)
tree40bc001a0a9914179ec857159510dbf5ff0ceb38
parente07f4d8f01153d70214aa3ddd94b3f94911ffdbb (diff)
downloadfedora-infrastructure-7b20841fb6f5178aa2a87586768ae60749d50c50.zip
fedora-infrastructure-7b20841fb6f5178aa2a87586768ae60749d50c50.tar.gz
fedora-infrastructure-7b20841fb6f5178aa2a87586768ae60749d50c50.tar.xz
Testing some initial l10n changes.
-rw-r--r--fas/MANIFEST.in6
-rw-r--r--fas/fas/config/app.cfg1
-rw-r--r--fas/fas/controllers.py1
-rw-r--r--fas/fas/release.py2
l---------fas/locales/fas.pot1
l---------fas/locales/pl/LC_MESSAGES/fas.po1
-rw-r--r--fas/po/pl.po (renamed from fas/po/pl/LC_MESSAGES/fas.po)0
-rw-r--r--fas/setup.py2
8 files changed, 9 insertions, 5 deletions
diff --git a/fas/MANIFEST.in b/fas/MANIFEST.in
index e8c967c..a6d94df 100644
--- a/fas/MANIFEST.in
+++ b/fas/MANIFEST.in
@@ -15,9 +15,11 @@ include fas/templates/group/*.html
include fas/templates/group/*.txt
include fas/templates/openid/*.html
include fas/templates/openid/*.txt
-include fas/templates/user/email/*.html
-include fas/templates/user/email/*.txt
include fas/templates/user/*.html
include fas/templates/user/*.txt
include fas/templates/*.html
include fas/templates/*.txt
+include po/*.pot
+include po/*.po
+include locales/*.pot
+include locales/*/*/*.po
diff --git a/fas/fas/config/app.cfg b/fas/fas/config/app.cfg
index 0f2e71a..e1d0a0a 100644
--- a/fas/fas/config/app.cfg
+++ b/fas/fas/config/app.cfg
@@ -61,7 +61,6 @@ genshi.encoding="utf-8"
session_filter.on = True
i18n.run_template_filter = True
i18n.domain = 'fas'
-i18n.locale_dir = 'po'
# VISIT TRACKING
# Each visit to your application will be assigned a unique visit ID tracked via
diff --git a/fas/fas/controllers.py b/fas/fas/controllers.py
index 9176c7b..b092bf5 100644
--- a/fas/fas/controllers.py
+++ b/fas/fas/controllers.py
@@ -29,7 +29,6 @@ turbogears.view.variable_providers.append(add_custom_stdvars)
def get_locale(locale=None):
if locale:
return locale
-
try:
return turbogears.identity.current.user.locale
except AttributeError:
diff --git a/fas/fas/release.py b/fas/fas/release.py
index 5ebac71..35e271d 100644
--- a/fas/fas/release.py
+++ b/fas/fas/release.py
@@ -2,7 +2,7 @@
Release information about the Fedora Accounts System
'''
-VERSION = '0.5'
+VERSION = '0.8.1'
NAME = 'fas'
DESCRIPTION = 'The Fedora Account System'
LONG_DESCRIPTION = '''
diff --git a/fas/locales/fas.pot b/fas/locales/fas.pot
new file mode 120000
index 0000000..b42572d
--- /dev/null
+++ b/fas/locales/fas.pot
@@ -0,0 +1 @@
+../po/fas.pot \ No newline at end of file
diff --git a/fas/locales/pl/LC_MESSAGES/fas.po b/fas/locales/pl/LC_MESSAGES/fas.po
new file mode 120000
index 0000000..b9070e6
--- /dev/null
+++ b/fas/locales/pl/LC_MESSAGES/fas.po
@@ -0,0 +1 @@
+../../../po/pl.po \ No newline at end of file
diff --git a/fas/po/pl/LC_MESSAGES/fas.po b/fas/po/pl.po
index 3c6f617..3c6f617 100644
--- a/fas/po/pl/LC_MESSAGES/fas.po
+++ b/fas/po/pl.po
diff --git a/fas/setup.py b/fas/setup.py
index 9834e0c..6ddf5c2 100644
--- a/fas/setup.py
+++ b/fas/setup.py
@@ -136,6 +136,8 @@ setup(
('static/images/balloons',
[f for f in glob.glob('fas/static/images/balloons/*') if os.path.isfile(f)]),
('static/js', [f for f in glob.glob('fas/static/js/*') if os.path.isfile(f)]),
+ ('locales', [f for f in glob.glob('locales/*') if os.path.isfile(f)]),
+ ('locales/xx/LC_MESSAGES', [f for f in glob.glob('locales/*/*/*') if os.path.isfile(f)]),
),
package_data = find_package_data(where='fas',
package='fas',