From 0b86e84b1397bbbfb4d1a70cf073ba30b2a5a644 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 20 Oct 2010 17:46:18 +0200 Subject: [PATCH] Add the locale managment (edit setup.py and create locale/ directory) for the core --- locale/__init__.py | 0 setup.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 locale/__init__.py diff --git a/locale/__init__.py b/locale/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/setup.py b/setup.py index 24a5bd7b8..e26afc829 100644 --- a/setup.py +++ b/setup.py @@ -84,6 +84,7 @@ if clean: sys.exit(-1) packages = ['supybot', + 'supybot.locale', 'supybot.utils', 'supybot.drivers', 'supybot.plugins',] + \ @@ -102,6 +103,7 @@ package_dir = {'supybot': 'src', 'supybot.utils': 'src/utils', 'supybot.plugins': 'plugins', 'supybot.drivers': 'src/drivers', + 'supybot.locale': 'locale', 'supybot.plugins.Google.local': 'plugins/Google/local', 'supybot.plugins.Google.local.simplejson': 'plugins/Google/local/simplejson', @@ -113,7 +115,7 @@ package_dir = {'supybot': 'src', 'plugins/Time/local/dateutil', } -package_data = {} +package_data = {'supybot.locale': [s for s in os.listdir('locale/')]} for plugin in plugins: package_dir['supybot.plugins.' + plugin] = 'plugins/' + plugin