# HG changeset patch
# User Peer Sommerlund <p...@users.sourceforge.net>
# Date 1254141684 -7200
# Node ID b9cb3bb3472803d9df25695a4096dc3782a822ad
# Parent  9f55c428f3b4175f0ef02e07e964edfc60484f06
i18n: Rename .po files to match Launchpad conventions

diff --git a/i18n/tortoisehg-ca.po b/i18n/tortoisehg/ca.po
rename from i18n/tortoisehg-ca.po
rename to i18n/tortoisehg/ca.po
diff --git a/i18n/tortoisehg-cs.po b/i18n/tortoisehg/cs.po
rename from i18n/tortoisehg-cs.po
rename to i18n/tortoisehg/cs.po
diff --git a/i18n/tortoisehg-da.po b/i18n/tortoisehg/da.po
rename from i18n/tortoisehg-da.po
rename to i18n/tortoisehg/da.po
diff --git a/i18n/tortoisehg-de.po b/i18n/tortoisehg/de.po
rename from i18n/tortoisehg-de.po
rename to i18n/tortoisehg/de.po
diff --git a/i18n/tortoisehg-es.po b/i18n/tortoisehg/es.po
rename from i18n/tortoisehg-es.po
rename to i18n/tortoisehg/es.po
diff --git a/i18n/tortoisehg-fr.po b/i18n/tortoisehg/fr.po
rename from i18n/tortoisehg-fr.po
rename to i18n/tortoisehg/fr.po
diff --git a/i18n/tortoisehg-it.po b/i18n/tortoisehg/it.po
rename from i18n/tortoisehg-it.po
rename to i18n/tortoisehg/it.po
diff --git a/i18n/tortoisehg-ja.po b/i18n/tortoisehg/ja.po
rename from i18n/tortoisehg-ja.po
rename to i18n/tortoisehg/ja.po
diff --git a/i18n/tortoisehg-nl.po b/i18n/tortoisehg/nl.po
rename from i18n/tortoisehg-nl.po
rename to i18n/tortoisehg/nl.po
diff --git a/i18n/tortoisehg-pl.po b/i18n/tortoisehg/pl.po
rename from i18n/tortoisehg-pl.po
rename to i18n/tortoisehg/pl.po
diff --git a/i18n/tortoisehg-pt.po b/i18n/tortoisehg/pt.po
rename from i18n/tortoisehg-pt.po
rename to i18n/tortoisehg/pt.po
diff --git a/i18n/tortoisehg-pt_BR.po b/i18n/tortoisehg/pt_BR.po
rename from i18n/tortoisehg-pt_BR.po
rename to i18n/tortoisehg/pt_BR.po
diff --git a/i18n/tortoisehg-ru.po b/i18n/tortoisehg/ru.po
rename from i18n/tortoisehg-ru.po
rename to i18n/tortoisehg/ru.po
diff --git a/i18n/tortoisehg-zh_CN.po b/i18n/tortoisehg/zh_CN.po
rename from i18n/tortoisehg-zh_CN.po
rename to i18n/tortoisehg/zh_CN.po
diff --git a/i18n/tortoisehg-zh_TW.po b/i18n/tortoisehg/zh_TW.po
rename from i18n/tortoisehg-zh_TW.po
rename to i18n/tortoisehg/zh_TW.po
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@
                      "will be built")
             return
 
-        podir = 'i18n'
+        podir = 'i18n/tortoisehg'
         if not os.path.isdir(podir):
             self.warn("could not find %s/ directory" % podir)
             return
@@ -34,11 +34,8 @@
         for po in os.listdir(podir):
             if not po.endswith('.po'):
                 continue
-            if not (po.find('tortoisehg-') == 0):
-                self.warn("Found file '%s' that was not tortoisehg .po" % po)
-                continue
             pofile = join(podir, po)
-            modir = join('locale', po[11:-3], 'LC_MESSAGES')
+            modir = join('locale', po[:-3], 'LC_MESSAGES')
             mofile = join(modir, 'tortoisehg.mo')
             cmd = ['msgfmt', '-v', '-o', mofile, pofile]
             if sys.platform != 'sunos5':

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to