mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Add the locale managment (edit setup.py and create locale/ directory) for the core
This commit is contained in:
parent
f1d5d9d832
commit
0b86e84b13
0
locale/__init__.py
Normal file
0
locale/__init__.py
Normal file
4
setup.py
4
setup.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user