NEW [WIP] Add localization support with jekyll-simple-i18n #1509

Open
jonah wants to merge 76 commits from i18n-simple into master

76 Commits

Author SHA1 Message Date
djoate
e5cfd44980 Surround href in quotations (#1526) 2019-11-30 02:11:30 -06:00
Joan Montané
e14bcae99c Translated using Weblate (Catalan)
Currently translated at 0.8% (15 of 1876 strings)

Translation: PrivacyTools/Website
Translate-URL: https://weblate.nablahost.com/projects/privacytoolsio/website/ca/
2019-11-26 23:48:57 +00:00
Ecron
56a127463d Translated using Weblate (Catalan)
Currently translated at 0.8% (15 of 1876 strings)

Translation: PrivacyTools/Website
Translate-URL: https://weblate.nablahost.com/projects/privacytoolsio/website/ca/
2019-11-26 23:48:57 +00:00
cdb5b39a44 Added translation using Weblate (Serbian) 2019-11-26 23:48:57 +00:00
9c0fcec330 Update weblate-source-file.yml 2019-11-26 17:19:38 -06:00
djoate
b22948bb34 i18n: key some missed strings and pages (#1527)
* Key classic page

* Key missed strings

* Update source file
2019-11-26 17:04:52 -06:00
djoate
4ab759a52b Strip newlines from Weblate source 2019-11-26 04:57:07 -05:00
1c67783cd1 Added translation using Weblate (Catalan) 2019-11-26 08:04:20 +00:00
cb52cbca2b Added translation using Weblate (Finnish) 2019-11-26 07:28:14 +00:00
c0daa20765 Added translation using Weblate (Italian) 2019-11-26 06:57:27 +00:00
Weblate
1a1b125357 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: PrivacyTools/Website
Translate-URL: https://weblate.nablahost.com/projects/privacytoolsio/website/
2019-11-26 04:26:16 +00:00
86182a4703 Added translation using Weblate (German) 2019-11-26 04:26:16 +00:00
djoate
e53f3f5f9c Key the privacy statement (#1525) 2019-11-25 20:54:53 -06:00
djoate
e6ff8f3d7a Encode length and punctuation in key IDs (#1524)
This is to ensure we don't end up using the same string for two
strings using the same words but different length and punctuation.
2019-11-25 20:52:31 -06:00
ab689944d6 Added translation using Weblate (Greek) 2019-11-26 01:35:13 +00:00
a96428e2c1 Add French Language 2019-11-25 18:24:46 -06:00
12c2ac8cc8 Added translation using Weblate (Serbian) 2019-11-25 23:34:24 +00:00
4bc3d7f556 Remove automatic hreflang
This is cool functionality, but I don't think we want to add hreflang meta tags until translations are mostly complete *and* we add them to the navbar. Since that's a manual process, this can be too.
2019-11-25 17:26:06 -06:00
7896e49700 Add disclaimer to footer 2019-11-25 17:23:14 -06:00
89d0f94e27 Merge branch 'master' into i18n-simple 2019-11-25 17:15:42 -06:00
cb89e6a92e Add translation widgets to website 2019-11-25 17:03:41 -06:00
e9510ed7dc Translated using Weblate (Polish)
Currently translated at 0.0% (0 of 1851 strings)

Translation: privacytoolsIO/website
Translate-URL: http://weblate.nablahost.com/projects/privacytoolsio/website/pl/
2019-11-25 22:13:26 +00:00
e7ab0813f5 Translated using Weblate (Spanish)
Currently translated at 0.1% (1 of 1851 strings)

Translation: privacytoolsIO/website
Translate-URL: http://weblate.nablahost.com/projects/privacytoolsio/website/es/
2019-11-25 22:13:25 +00:00
cc12ef3c2e Remove untranslated keys 2019-11-25 16:08:02 -06:00
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
4507e5517b Update weblate-source-file.yml 2019-11-25 14:28:29 -06:00
djoate
669e3412df Update source file YAMLs 2019-11-24 19:48:07 -05:00
djoate
e94c915c7a Key OS section 2019-11-24 19:47:55 -05:00
djoate
3cff73fd46 Update translation source files 2019-11-24 19:20:33 -05:00
djoate
155a8166ce Key Real-Time Communication
This covers real-time communication. Aware of
https://github.com/privacytoolsIO/privacytools.io/pull/1500, but
that will be handled later.
2019-11-24 19:20:33 -05:00
djoate
271c705ad3 Key some software pages
This covers
* Calendar/Contacts Sync Tools
* Digital Notebook
* Email Alternatives and Clients
* File Encrpytion, Sharing, and Sync
* Metadata Removal Toosl
* Password Manager
* Productivity Tools
* Self-contained Networks
* Self-hosted Cloud Server
2019-11-24 19:20:11 -05:00
djoate
13b5827a79 Parse for translate filter 2019-11-24 18:22:51 -05:00
djoate
27faa55c01 Key all browser content 2019-11-24 18:22:33 -05:00
djoate
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
djoate
4bc6e4397a Use correct language, locale, and use hreflang tags 2019-11-24 18:22:06 -05:00
djoate
8add822670 team page: enable keying for role and bios 2019-11-24 18:22:06 -05:00
djoate
c37764f7d6 Use /en/ as a dummy translation
In /en/, every keyed string is "ZZ" so as to make it obvious what
is and isn't keyed.
2019-11-24 18:22:06 -05:00
djoate
4940b2b439 Key donate page 2019-11-24 18:22:06 -05:00
djoate
77288d7f5d Key about page and fix index.html spacing 2019-11-24 18:22:06 -05:00
djoate
939c7479c3 Bump max key length to 150 characters 2019-11-24 18:22:06 -05:00
djoate
857287ca1d Key DNS page 2019-11-24 18:22:06 -05:00
djoate
70f0db537d Key email providers and rekey VPN 2019-11-24 18:22:06 -05:00
djoate
fbb227f67f Key VPN page 2019-11-24 18:22:06 -05:00
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
8800be73ae Key some pages in Providers category
Key the following pages under "Providers" in navbar:
* cloud-storage
* hosting providers
* pastebin
* search engines
* social networks
* social news aggregators
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
45ab5135f3 Key 'Website' and 'Forum' for cardv2 2019-11-24 18:22:06 -05:00
djoate
085bb990d1 Key /providers/
This covers
* Global Mass Surveillance - The Fourteen Eyes
* Key Disclosure Law
* What is a warrant canary?
2019-11-24 18:22:05 -05:00
djoate
128871e550 Fix missing spaces 2019-11-24 18:22:05 -05:00
djoate
d59672b784 Key sponsors.html 2019-11-24 18:22:05 -05:00
djoate
eaecf7a5b9 Key services.html 2019-11-24 18:22:05 -05:00
djoate
6f052cc462 Key all of index.html 2019-11-24 18:22:05 -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
2688f16fbb Key the nav bar 2019-11-24 18:22:05 -05:00
djoate
2f76b467e3 Automatically key external links in card and cardv2 2019-11-24 18:22:05 -05:00
djoate
13728d2e39 Fix newline in description 2019-11-24 18:22:05 -05:00
djoate
394b22fe92 Enable auto keying for cardv2 contents 2019-11-24 18:22:05 -05:00
djoate
ad335fe640 Cleanup
Translate tooltips in card.html if available
Clean up old captures
2019-11-24 18:22:05 -05:00
djoate
fe8d4810d4 Use capture tags for capturing button text 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
b4cc2cf5e0 Stop using capture tags for card.html includes 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
9817613736 Partially translate providers/cloud-storage/ 2019-11-18 23:34:40 -05:00
djoate
2ace1bfe6c Fix permalinks in page generator 2019-11-18 23:29:43 -05:00
djoate
3abed603b5 Translate a part of providers page 2019-11-18 23:10:33 -05:00
djoate
cab6bd18b8 Add support for translating page.description 2019-11-18 23:09:39 -05:00
djoate
8f216deec5 Key 'Privacy Tools', and get rid of en.yml 2019-11-18 01:45:28 +00: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