[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - metaConfigure.py:1.2
Barry Warsaw
barry@wooz.org
Wed, 12 Jun 2002 15:11:50 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv2705
Modified Files:
metaConfigure.py
Log Message:
registerTranslations(): Do the path calculation a little differently
so we don't try to os.listdir() a directory like CVS/LC_MESSAGES. ;)
=== Zope3/lib/python/Zope/I18n/metaConfigure.py 1.1 => 1.2 ===
for language in os.listdir(path):
- lang_path = os.path.join(path, language)
- if os.path.isdir(lang_path):
- lc_messages_path = os.path.join(lang_path, 'LC_MESSAGES')
+ lc_messages_path = os.path.join(path, language, 'LC_MESSAGES')
+ if os.path.isdir(lc_messages_path):
for domain_file in os.listdir(lc_messages_path):
if domain_file.endswith('.mo'):
domain_path = os.path.join(lc_messages_path, domain_file)