Edgewall Software

Changes between Version 3 and Version 4 of CookBook/PluginL10N


Ignore:
Timestamp:
May 7, 2010, 1:53:04 PM (14 years ago)
Author:
hasienda <hoff.st@…>
Comment:

added some more hints

Legend:

Unmodified
Added
Removed
Modified
  • CookBook/PluginL10N

    v3 v4  
    2424        add_domain(self.env.path, locale_dir)
    2525}}}
    26 assuming that folder `locale` will reside in `./foo/locale/` within the directory structure (of the Python egg).
     26assuming 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'.
    2727
    2828[FIXME: explain what _version and ui are used for or leave them out, if unnecessary here]