Add the locale managment (edit setup.py and create locale/ directory) for the core

This commit is contained in:
Valentin Lorentz 2010-10-20 17:46:18 +02:00
parent f1d5d9d832
commit 0b86e84b13
2 changed files with 3 additions and 1 deletions

0
locale/__init__.py Normal file
View File

View File

@ -84,6 +84,7 @@ if clean:
sys.exit(-1) sys.exit(-1)
packages = ['supybot', packages = ['supybot',
'supybot.locale',
'supybot.utils', 'supybot.utils',
'supybot.drivers', 'supybot.drivers',
'supybot.plugins',] + \ 'supybot.plugins',] + \
@ -102,6 +103,7 @@ package_dir = {'supybot': 'src',
'supybot.utils': 'src/utils', 'supybot.utils': 'src/utils',
'supybot.plugins': 'plugins', 'supybot.plugins': 'plugins',
'supybot.drivers': 'src/drivers', 'supybot.drivers': 'src/drivers',
'supybot.locale': 'locale',
'supybot.plugins.Google.local': 'plugins/Google/local', 'supybot.plugins.Google.local': 'plugins/Google/local',
'supybot.plugins.Google.local.simplejson': 'supybot.plugins.Google.local.simplejson':
'plugins/Google/local/simplejson', 'plugins/Google/local/simplejson',
@ -113,7 +115,7 @@ package_dir = {'supybot': 'src',
'plugins/Time/local/dateutil', 'plugins/Time/local/dateutil',
} }
package_data = {} package_data = {'supybot.locale': [s for s in os.listdir('locale/')]}
for plugin in plugins: for plugin in plugins:
package_dir['supybot.plugins.' + plugin] = 'plugins/' + plugin package_dir['supybot.plugins.' + plugin] = 'plugins/' + plugin