comparison setup.py @ 2249:e572482f6cbd

core (tools/common/template): i18n support - babel has been added as a new dependencies, and should replace gettext in core in the future - added i18n support in template rendered - current locale is available as babel Locale in templates through "locale" variable - locales can be changed before rendering using setLocale - for now, all locales translations are loaded on init, and stay in cache. A more complex cache system may be needed in the future (e.g. keeping only most used and load others from files when needed).
author Goffi <goffi@goffi.org>
date Sun, 21 May 2017 15:59:47 +0200
parents e0f91efa404a
children 70399d1acb47
comparison
equal deleted inserted replaced
2248:a81261cee29b 2249:e572482f6cbd
302 ('share/doc/%s' % NAME, ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']), 302 ('share/doc/%s' % NAME, ['CHANGELOG', 'COPYING', 'INSTALL', 'README', 'README4TRANSLATORS']),
303 (os.path.join('share', DBUS_DIR), (DBUS_FILE,)), 303 (os.path.join('share', DBUS_DIR), (DBUS_FILE,)),
304 ], 304 ],
305 scripts=['frontends/src/jp/jp', 'frontends/src/primitivus/primitivus', ], 305 scripts=['frontends/src/jp/jp', 'frontends/src/primitivus/primitivus', ],
306 zip_safe=False, 306 zip_safe=False,
307 install_requires=['twisted >= 15.2.0', 'wokkel >= 0.7.1', 'progressbar', 'urwid >= 1.2.0', 'urwid-satext >= 0.6.1', 'mutagen', 'pillow', 'lxml >= 3.1.0', 'pyxdg', 'markdown', 'html2text', 'pycrypto >= 2.6.1', 'python-potr', 'PyOpenSSL', 'service_identity', 'shortuuid'], 307 install_requires=['twisted >= 15.2.0', 'wokkel >= 0.7.1', 'progressbar', 'urwid >= 1.2.0', 'urwid-satext >= 0.6.1', 'mutagen', 'pillow', 'lxml >= 3.1.0', 'pyxdg', 'markdown', 'html2text', 'pycrypto >= 2.6.1', 'python-potr', 'PyOpenSSL', 'service_identity', 'shortuuid', 'babel'],
308 cmdclass={'install': CustomInstall}, 308 cmdclass={'install': CustomInstall},
309 ) 309 )