Changes between Version 3 and Version 4 of CookBook/PluginL10N
- Timestamp:
- May 7, 2010, 1:53:04 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook/PluginL10N
v3 v4 24 24 add_domain(self.env.path, locale_dir) 25 25 }}} 26 assuming that folder `locale` will reside in `./foo/locale/` within the directory structure (of the Python egg). 26 assuming that folder `locale` will reside in `./foo/locale/` within the directory structure (of the Python egg). If you didn't have it, add a `import pkg_resources` to the beginning of the plugin script as well or the line `locale_dir = ...` will throw an '!ImportError'. 27 27 28 28 [FIXME: explain what _version and ui are used for or leave them out, if unnecessary here]