Modify ↓
Opened 4 years ago
Closed 4 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: |
Description
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.
-
setup.py
14 14 extra = {} 15 15 16 16 try: 17 import babel17 from trac.util.dist import get_l10n_cmdclass 18 18 except ImportError: 19 babel= None19 cmdclass = None 20 20 else: 21 cmdclass = get_l10n_cmdclass() 22 23 if cmdclass: 24 extra['cmdclass'] = cmdclass 21 25 extractors = [ 22 26 ('**.py', 'python', None), 23 27 ('**/templates/**.html', 'genshi', None),
Attachments (0)
Change History (2)
comment:1 Changed 4 years ago by
Owner: | changed from Ryan J Ollos to Jun Omae |
---|---|
Status: | new → assigned |
Note: See
TracTickets for help on using
tickets.
Thanks, I will keep an eye out for this pattern with other plugins. Please go ahead with the change.