Opened 3 years ago

Closed 3 years ago

#13969 closed defect (fixed)

bdist_* commands should automatically compile catalogs

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Component: TracTicketChangelogPlugin
Severity: normal Keywords:
Cc: Trac Release:


Currently, compile_catalog must be invoked before bdist_* commands if localization is needed. We could use get_l18n_cmdclass() to automatically compile catalogs on bdist_* commands.


    1414extra = {}
    17     import babel
     17    from trac.util.dist import get_l10n_cmdclass
    1818except ImportError:
    19     babel = None
     19    cmdclass = None
     21    cmdclass = get_l10n_cmdclass()
     23if cmdclass:
     24    extra['cmdclass'] = cmdclass
    2125    extractors = [
    2226        ('**.py', 'python', None),
    2327        ('**/templates/**.html', 'genshi', None),

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by Ryan J Ollos

Owner: changed from Ryan J Ollos to Jun Omae
Status: newassigned

Thanks, I will keep an eye out for this pattern with other plugins. Please go ahead with the change.

comment:2 Changed 3 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

In 18070:

TracTicketChangelogPlugin Extract messages on bdist_* command

Patch by Jun Omae.

Fixes #13969.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.