diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-01-14 13:30:48 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-04-07 16:23:11 +0100 |
commit | a90aa29c63280edb95a468a748f0ba13db3534b7 (patch) | |
tree | 6782d759aef54b9b8205979522070e693c7dfc03 /docs/installing/script.md | |
parent | 944b90c0f579bff6d80f361b6d8c33e89397f0c5 (diff) |
Add a script to import translation files
Usage:
$ script/import-translated-page \
--lang=es \
path/to/es/page.md > es/page.md
- Prefixes layouts with the lang (e.g. layout: es/page) unless the lang
is “en”
- Replaces {{ site.baseurl }} with {{ page.baseurl }} for internal page
links
- Keeps {{ site.baseurl }} for asset links
- Removes single line redirects from non EN pages
- Warns if the page front matter contains a list of redirects as the
script can’t currently replace them
Diffstat (limited to 'docs/installing/script.md')
0 files changed, 0 insertions, 0 deletions