Changeset 4561 for Serveur


Ignore:
Timestamp:
12/03/10 16:02:27 (8 years ago)
Author:
kent1
Message:

Un peu mieux

Location:
Serveur/trac/Piwik4Trac
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Serveur/trac/Piwik4Trac/setup.py

    r4560 r4561  
    1616    import babel   
    1717    extra['message_extractors'] = {
    18                                    'HudsonTrac': [
     18                                   'tracext/piwik': [
    1919                                                  ('*.py', 'python', None),
    2020                                                  ],
  • Serveur/trac/Piwik4Trac/tracext/piwik/__init__.py

    r4560 r4561  
    2323from trac.util.translation import domain_functions
    2424
    25 add_domain, _, tag_ = domain_functions('hudsontrac', 'add_domain', '_', 'tag_')
     25add_domain, _, tag_ = domain_functions('piwik4trac', 'add_domain', '_', 'tag_')
    2626
    2727def __init__(self):
  • Serveur/trac/Piwik4Trac/tracext/piwik/admin.py

    r4005 r4561  
    77# ==============================================================================
    88
     9import pkg_resources
    910from trac.admin import IAdminPanelProvider
    1011from trac.config import Option, _TRUE_VALUES
    1112from trac.core import Component, implements
    1213from trac.web.chrome import add_stylesheet
     14from trac.util.translation import domain_functions
    1315
     16add_domain, _, tag_ = domain_functions('piwik4trac', 'add_domain', '_', 'tag_')
     17
     18def __init__(self):
     19        import pkg_resources # here or with the other imports
     20        # bind the 'foo' catalog to the specified locale directory
     21        locale_dir = pkg_resources.resource_filename(__name__, 'locale')
     22        add_domain(self.env.path, locale_dir)
     23       
    1424class PiwikAdmin(Component):
    1525    config = env = log = None
     
    2030    def get_admin_panels(self, req):
    2131        if req.perm.has_permission('TRAC_ADMIN'):
    22             yield ('piwik', 'Piwik', 'analytics', 'Analytics')
     32            yield ('piwik', 'Piwik', 'analytics', _('Title analytics'))
    2333
    2434    def render_admin_panel(self, req, cat, page, path_info):
  • Serveur/trac/Piwik4Trac/tracext/piwik/locale/fr/LC_MESSAGES/piwik4trac.po

    r4560 r4561  
    77msgstr ""
    88
    9 msgid "Build finished successfully"
     9msgid "Option tracking_server"
    1010msgstr "Adresse du server Piwik. Sans \"http://\" ni \"https://\" ni slash final."
    1111
     12msgid "Title analytics"
     13msgstr "Analytics"
  • Serveur/trac/Piwik4Trac/tracext/piwik/locale/messages.pot

    r4560 r4561  
    77msgstr ""
    88
    9 msgid "Build finished successfully"
     9msgid "Option tracking_server"
    1010msgstr "Piwik's tracking server address. Without the \"http://\" or \"https://\" and without trailing slash"
    1111
     12msgid "Title analytics"
     13msgstr "Analytics"
Note: See TracChangeset for help on using the changeset viewer.