aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
diff options
context:
space:
mode:
authorAleksej <deletesoftware@example.com>2012-08-13 16:07:58 +0400
committerAleksej <deletesoftware@example.com>2012-08-13 16:07:58 +0400
commit9d3e56d500544b8886e3768a30b85e30cbd70e1f (patch)
treeda1b2f1c00b124857751487f2420ad453a10edd8 /mediagoblin/tools
parent5257f5f554247e607439230acc36e1fac48b0ede (diff)
downloadmediagoblin-9d3e56d500544b8886e3768a30b85e30cbd70e1f.tar.lz
mediagoblin-9d3e56d500544b8886e3768a30b85e30cbd70e1f.tar.xz
mediagoblin-9d3e56d500544b8886e3768a30b85e30cbd70e1f.zip
replaced os.path.split()[0] with os.path.dirname() and corrected a couple of comments
Diffstat (limited to 'mediagoblin/tools')
-rw-r--r--mediagoblin/tools/translate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tools/translate.py b/mediagoblin/tools/translate.py
index 65f636bb..5ab62a07 100644
--- a/mediagoblin/tools/translate.py
+++ b/mediagoblin/tools/translate.py
@@ -32,7 +32,7 @@ TRANSLATIONS_PATH = pkg_resources.resource_filename(
def locale_to_lower_upper(locale):
"""
- Take a locale, regardless of style, and format it like "en-us"
+ Take a locale, regardless of style, and format it like "en-US"
"""
if '-' in locale:
lang, country = locale.split('-', 1)
@@ -46,7 +46,7 @@ def locale_to_lower_upper(locale):
def locale_to_lower_lower(locale):
"""
- Take a locale, regardless of style, and format it like "en_US"
+ Take a locale, regardless of style, and format it like "en_us"
"""
if '_' in locale:
lang, country = locale.split('_', 1)