Files
064378b4b76d0b8cbe127e64ca44aabfd932ceae
networking-bgpvpn /babel-djangojs.cfg
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

15 lines
577 B
INI

[extractors]
# We use a custom extractor to find translatable strings in AngularJS
# templates. The extractor is included in horizon.utils for now.
# See http://babel.pocoo.org/docs/messages/#referencing-extraction-methods for
# details on how this works.
angular = horizon.utils.babel_extract_angular:extract_angular
[javascript: **.js]
# We need to look into all static folders for HTML files.
# The **/static ensures that we also search within
# /openstack_dashboard/dashboards/XYZ/static which will ensure
# that plugins are also translated.
[angular: **/static/**.html]