15 Commits

Author SHA1 Message Date
djoate
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
djoate
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
djoate
1a2996e80c
Code cleanup: Remove unused variable 2019-11-24 18:22:06 -05:00
djoate
211747580d
Key footer.html 2019-11-24 18:22:05 -05:00
djoate
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
djoate
9924c83b85
Don't add empty strings into source file 2019-11-24 18:22:05 -05:00
djoate
718a52be07
Add in translate page filter 2019-11-24 18:22:05 -05:00
djoate
7ac8f97e96
Add translate filter 2019-11-24 18:22:04 -05:00
djoate
ac0a28837f Fix permalink generation (#1515) 2019-11-23 23:21:15 -06:00
djoate
1472c2760c
Code style cleanup 2019-11-19 00:14:04 -05:00
djoate
52da0f33bc
Use 't' instead of 'translate' 2019-11-18 23:55:46 -05:00
djoate
2ace1bfe6c
Fix permalinks in page generator 2019-11-18 23:29:43 -05:00
djoate
cab6bd18b8
Add support for translating page.description 2019-11-18 23:09:39 -05:00
djoate
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
djoate
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