18c56364095a0daab3b9f88c6fbec604258bad05
Commit Graph

3 Commits

Author SHA1 Message Date
Akihiro Motoki
87cc7a3835 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: I997dc7d2f572a9be627f7aa5d463f20ee23895ff
2019年12月27日 02:20:55 +09:00
Akihiro Motoki
064378b4b7 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: I8d68d847edebce37e37e671a1ad3eadddd4354e8
Closes-Bug: #1747453 
2018年02月06日 01:13:43 +09:00
Akihiro Motoki
c3fc8ef1f7 Translation support
Files required to translation support are added by this commit.
For more detail, see Enabling Translation Infrastructure section in
the Project Creators' Guide [1] (especially, "More complex cases" section)
Also this commit changes the following:
* Add babel files for BGPVPN dashboard.
* Use underscore translation domain name in networking_bgpvpn/_i18n.py
 (underscore version is expected by the infra script.)
* Use an original translation domain name for networking_bgpvpn_heat.
* Add *.pot to .gitignore as we don't have POT files in our git repo.
[1] https://docs.openstack.org/infra/manual/creators.html#enabling-translation-infrastructure
Change-Id: I75060710748323bdfe74be1cbaa8fa5736feafc9
2017年07月22日 18:20:44 +00:00