Commit Graph

4 Commits (master)

Author SHA1 Message Date
Akihiro Motoki da64b10a7f translation: drop babel extractor definitions
babel extractors are now registered via python entry points,
so there is no need to declare babel extractors in babel configs.

This change is important to make translation work in Django 2.2.
django-babel does not work with Django 2.2 and looks unmaintained
for over two years. The horizon team is thinking to switch the extractor
to enmerkar (a fork of django-babel) to make extraction of translation
string work again near future. It is important to drop the extractor
definition to make the transition smooth.

Change-Id: I3ad5d99ec9341dc17463391ace04701efed6fa5a
2019-12-27 02:02:58 +09:00
Akihiro Motoki 53ab2c9c4c Correct django template pattern in babel-django.cfg
Currently strings in Django templates cannot be translated
because the current recommended file pattern "templates/**.html"
does not match Django templates in subdirectories.
This needs to be "**/templates/**.html".

Change-Id: I877e0a3703fa13b52e1df79f20c580b2604e7d1c
Closes-Bug: #1747453
2018-02-06 01:15:07 +09:00
kaz_shinohara 153f16987d Deleted locale dir & Updated babel-django.cfg
To enable translate job correctly, deleted heat-dashboard/locale
directory and updated babel-django.cfg accordingly.
Also fixed tox.ini which included wrong commands for docs build.

Change-Id: Idb7996ded645a8bc8bcb3b7eb08c8754a8492873
2017-12-04 03:02:49 +00:00
Keiichi Hikita e63ec107c5 add initial files. 2017-10-06 14:46:17 +09:00