Commit Graph

4 Commits

Author SHA1 Message Date
Akihiro Motoki 155bf22788 Drop babel extractor definitions from babel config
Babel allows us to register babel extractors via entry points.
This means we no longer need to have extractor definitions in
each babel config files. All horizon plugins have copies of
babel-django.cfg and babel-djangojs.cfg now. By dropping the
extractor defintiions from babel config files, we can make
a potential migration from django-babel to enmerkar (and
we can also avoid more modifications of babel config files
even if more transition is required).

django-babel and enmerkar both define 'django' extractor
in the entry point, so we can drop it from babel-django.cfg.
This commit also registers 'angular' extractor, so we can drop
the extractor for AngularJS from babel-djangojs.cfg.

Change-Id: Icf93d4551bd3db1baa84c110f06dcc1c36e18b7e
2019-12-23 17:25:38 +09:00
Tony Dunbar 114da86135 Added a django extract for .csv files
The CSV files from the overview panels were mostly not 
translated when using the pseudo translation tool. We 
inspected the django.pot files and the messages from the CSV 
files were not present.

This patch updates the babel-django config file to ensure that 
*.csv files are included for translation extraction.

We tried to update the babel-django config file with one 
django extraction line which included both the html file 
descriptor and the csv file descriptor separated by a comma 
but testing showed this did not work properly.  We could only 
get this to work with two separate extraction lines.

Change-Id: I04b3a1f49c7c680a4f3dfdc336183749404973ec
Closes-Bug: #1496080
2015-09-15 21:57:42 +00:00
Thai Tran 28394578c3 Fixed translation in python modal templates
In several dialogs there is untranslatable text. These dialogs were
translatable in kilo. The path added in the configuration was not adequate.

Change-Id: Ib2b5592d8e01084fcfd91c6d7912fc91766585d2
Closes-Bug: #1481045
2015-08-13 15:36:22 -07:00
Neill Cox 4e0b09a357 Replace makemessages with babel
Replace django's makemessages with babel and babel-django.

This changes the makemessages command to use babel rather than
Django's builtin makemessages.

There is a follow on patch to add support for angular-gettext.

Change-Id: If4352aba01ce0ca6337f590c0689d8fe9f0867c8
Depends-On: Iaa835b03af3929b7314b174210079c34de976755
2015-06-22 09:44:12 -07:00