Commit Graph

20 Commits

Author SHA1 Message Date
46ba805cdd Remove '?' and '.' characters from source key names 2019-11-25 16:01:29 -06:00
7b11a7bb01 Fix meta tags for translated pages 2019-11-25 14:58:21 -06:00
13b5827a79 Parse for translate filter 2019-11-24 18:22:51 -05:00
158ee60161 Correct canonical href and hreflang
* Change canonical href to use the source file
* Update hreflang to use production_url
2019-11-24 18:22:06 -05:00
939c7479c3 Bump max key length to 150 characters 2019-11-24 18:22:06 -05:00
2a82bc59fa Add support for translation notes
To add a translation note, use it as a filter. For example,
consider
   {% Free %}
If we want to say that this means free as in no monetary value,
wrap it around in {{ }} and apply the tl_note filter:
   {% {{ "Free" | tl_note: Free as in no monetary value }} %}
The tl_note parameter will be ignored when this Liquid filter is
parsed, but the entirety will be used as the keyed string. Just
make sure that translators don't remove the quotes around "Free".
2019-11-24 18:22:06 -05:00
8b5226d388 Append _KEY to keys and strip newlines from ID
Some strings such as "Yes" and "No" refuse to be translated, so
we need to pad the IDs somehow.
2019-11-24 18:22:06 -05:00
1a2996e80c Code cleanup: Remove unused variable 2019-11-24 18:22:06 -05:00
211747580d Key footer.html 2019-11-24 18:22:05 -05:00
bbb63d3698 Parse translated and nontranslated strings
This updates translate-tag.rb to parse all strings. This means that
we can add items such as {{ site.name }} into the source strings
and the plugin will do the rest. We no longer need hacky a
hacky workaround.
2019-11-24 18:22:05 -05:00
9924c83b85 Don't add empty strings into source file 2019-11-24 18:22:05 -05:00
718a52be07 Add in translate page filter 2019-11-24 18:22:05 -05:00
7ac8f97e96 Add translate filter 2019-11-24 18:22:04 -05:00
ac0a28837f Fix permalink generation (#1515) 2019-11-23 23:21:15 -06:00
1472c2760c Code style cleanup 2019-11-19 00:14:04 -05:00
52da0f33bc Use 't' instead of 'translate' 2019-11-18 23:55:46 -05:00
2ace1bfe6c Fix permalinks in page generator 2019-11-18 23:29:43 -05:00
cab6bd18b8 Add support for translating page.description 2019-11-18 23:09:39 -05:00
95f87e234c Translate more of the index.html
* Translate more of index.html, with translations sourced from
deepl.com

* Relax the plugin to allow capitalization, periods, exclamation 
marks, and question marks in the Weblate ID for YAML src. 
This helps differentiate between similar but different strings.
2019-11-18 01:18:12 +00:00
c36002d851 Add jekyll-simple-i18n plugin with example
Adds in support for https://github.com/signalapp/jekyll-simple-i18n.

The plugin did not work with the github-pages gem, so github-pages was
switched with jekyll (which is what the current i18n branch does anyway).
2019-11-18 00:09:19 +00:00