Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

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

Draft
wants to merge 76 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
c36002d
Add jekyll-simple-i18n plugin with example
djoate Nov 18, 2019
95f87e2
Translate more of the index.html
djoate Nov 18, 2019
8f216de
Key 'Privacy Tools', and get rid of en.yml
djoate Nov 18, 2019
cab6bd1
Add support for translating page.description
djoate Nov 19, 2019
3abed60
Translate a part of providers page
djoate Nov 19, 2019
2ace1bf
Fix permalinks in page generator
djoate Nov 19, 2019
9817613
Partially translate providers/cloud-storage/
djoate Nov 19, 2019
52da0f3
Use 't' instead of 'translate'
djoate Nov 19, 2019
1472c27
Code style cleanup
djoate Nov 19, 2019
ac0a288
Fix permalink generation (#1515)
djoate Nov 24, 2019
7ac8f97
Add translate filter
djoate Nov 23, 2019
718a52b
Add in translate page filter
djoate Nov 23, 2019
b4cc2cf
Stop using capture tags for card.html includes
djoate Nov 23, 2019
9924c83
Don't add empty strings into source file
djoate Nov 23, 2019
fe8d481
Use capture tags for capturing button text
djoate Nov 23, 2019
ad335fe
Cleanup
djoate Nov 23, 2019
394b22f
Enable auto keying for cardv2 contents
djoate Nov 23, 2019
13728d2
Fix newline in description
djoate Nov 23, 2019
2f76b46
Automatically key external links in card and cardv2
djoate Nov 23, 2019
2688f16
Key the nav bar
djoate Nov 24, 2019
bbb63d3
Parse translated and nontranslated strings
djoate Nov 24, 2019
2117475
Key footer.html
djoate Nov 24, 2019
6f052cc
Key all of index.html
djoate Nov 24, 2019
eaecf7a
Key services.html
djoate Nov 24, 2019
d59672b
Key sponsors.html
djoate Nov 24, 2019
128871e
Fix missing spaces
djoate Nov 24, 2019
085bb99
Key /providers/
djoate Nov 24, 2019
45ab513
Key 'Website' and 'Forum' for cardv2
djoate Nov 24, 2019
1a2996e
Code cleanup: Remove unused variable
djoate Nov 24, 2019
8b5226d
Append _KEY to keys and strip newlines from ID
djoate Nov 24, 2019
8800be7
Key some pages in Providers category
djoate Nov 24, 2019
2a82bc5
Add support for translation notes
djoate Nov 24, 2019
fbb227f
Key VPN page
djoate Nov 24, 2019
70f0db5
Key email providers and rekey VPN
djoate Nov 24, 2019
857287c
Key DNS page
djoate Nov 24, 2019
939c747
Bump max key length to 150 characters
djoate Nov 24, 2019
77288d7
Key about page and fix index.html spacing
djoate Nov 24, 2019
4940b2b
Key donate page
djoate Nov 24, 2019
c37764f
Use /en/ as a dummy translation
djoate Nov 24, 2019
8add822
team page: enable keying for role and bios
djoate Nov 24, 2019
4bc6e43
Use correct language, locale, and use hreflang tags
djoate Nov 24, 2019
158ee60
Correct canonical href and hreflang
djoate Nov 24, 2019
27faa55
Key all browser content
djoate Nov 24, 2019
13b5827
Parse for translate filter
djoate Nov 24, 2019
271c705
Key some software pages
djoate Nov 24, 2019
155a816
Key Real-Time Communication
djoate Nov 25, 2019
3cff73f
Update translation source files
djoate Nov 25, 2019
e94c915
Key OS section
djoate Nov 25, 2019
669e341
Update source file YAMLs
djoate Nov 25, 2019
4507e55
Update weblate-source-file.yml
jonaharagon Nov 25, 2019
7b11a7b
Fix meta tags for translated pages
jonaharagon Nov 25, 2019
46ba805
Remove '?' and '.' characters from source key names
jonaharagon Nov 25, 2019
cc12ef3
Remove untranslated keys
jonaharagon Nov 25, 2019
e7ab081
Translated using Weblate (Spanish)
jonaharagon Nov 25, 2019
e9510ed
Translated using Weblate (Polish)
jonaharagon Nov 25, 2019
cb89e6a
Add translation widgets to website
jonaharagon Nov 25, 2019
89d0f94
Merge branch 'master' into i18n-simple
jonaharagon Nov 25, 2019
7896e49
Add disclaimer to footer
jonaharagon Nov 25, 2019
4bc3d7f
Remove automatic hreflang
jonaharagon Nov 25, 2019
12c2ac8
Added translation using Weblate (Serbian)
jonaharagon Nov 25, 2019
a96428e
Add French Language
jonaharagon Nov 26, 2019
ab68994
Added translation using Weblate (Greek)
jonaharagon Nov 26, 2019
e6ff8f3
Encode length and punctuation in key IDs (#1524)
djoate Nov 26, 2019
e53f3f5
Key the privacy statement (#1525)
djoate Nov 26, 2019
86182a4
Added translation using Weblate (German)
jonaharagon Nov 26, 2019
1a1b125
Update translation files
weblate Nov 26, 2019
c0daa20
Added translation using Weblate (Italian)
jonaharagon Nov 26, 2019
cb52cbc
Added translation using Weblate (Finnish)
jonaharagon Nov 26, 2019
1c67783
Added translation using Weblate (Catalan)
jonaharagon Nov 26, 2019
4ab759a
Strip newlines from Weblate source
djoate Nov 26, 2019
b22948b
i18n: key some missed strings and pages (#1527)
djoate Nov 26, 2019
9c0fcec
Update weblate-source-file.yml
jonaharagon Nov 26, 2019
cdb5b39
Added translation using Weblate (Serbian)
jonaharagon Nov 26, 2019
56a1274
Translated using Weblate (Catalan)
Ecron Nov 26, 2019
e14bcae
Translated using Weblate (Catalan)
jmontane Nov 26, 2019
e5cfd44
Surround href in quotations (#1526)
djoate Nov 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ font/assets/
font/_sass/
font/.fontcustom-manifest.json
assets/webfonts/ptio-font-preview.html
# weblate-source-file.yml
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
source "https://rubygems.org"

# Install github-pages gem (https://jekyllrb.com/docs/github-pages/)
gem "github-pages", group: :jekyll_plugins
gem "jekyll", group: :jekyll_plugins

# Plugins
group :jekyll_plugins do
# example: gem "jekyll-feed", "~> 0.6"
gem "jekyll-sitemap"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
194 changes: 6 additions & 188 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,89 +1,16 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.11.1)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.5)
dnsruby (1.61.3)
addressable (~> 2.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.12.0)
ffi (>= 1.3.0)
eventmachine (1.2.7)
execjs (2.7.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
ffi (1.11.1)
ffi (1.11.2)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (198)
activesupport (= 4.2.11.1)
github-pages-health-check (= 1.16.1)
jekyll (= 3.8.5)
jekyll-avatar (= 0.6.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.1.5)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.11.0)
jekyll-gist (= 1.5.0)
jekyll-github-metadata (= 2.12.1)
jekyll-mentions (= 1.4.1)
jekyll-optional-front-matter (= 0.3.0)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.2.0)
jekyll-redirect-from (= 0.14.0)
jekyll-relative-links (= 0.6.0)
jekyll-remote-theme (= 0.3.1)
jekyll-sass-converter (= 1.5.2)
jekyll-seo-tag (= 2.5.0)
jekyll-sitemap (= 1.2.0)
jekyll-swiss (= 0.4.0)
jekyll-theme-architect (= 0.1.1)
jekyll-theme-cayman (= 0.1.1)
jekyll-theme-dinky (= 0.1.1)
jekyll-theme-hacker (= 0.1.1)
jekyll-theme-leap-day (= 0.1.1)
jekyll-theme-merlot (= 0.1.1)
jekyll-theme-midnight (= 0.1.1)
jekyll-theme-minimal (= 0.1.1)
jekyll-theme-modernist (= 0.1.1)
jekyll-theme-primer (= 0.5.3)
jekyll-theme-slate (= 0.1.1)
jekyll-theme-tactile (= 0.1.1)
jekyll-theme-time-machine (= 0.1.1)
jekyll-titles-from-headings (= 0.5.1)
jemoji (= 0.10.2)
kramdown (= 1.17.0)
liquid (= 4.0.0)
listen (= 3.1.5)
mercenary (~> 0.3)
minima (= 2.5.0)
nokogiri (>= 1.8.5, < 2.0)
rouge (= 2.2.1)
terminal-table (~> 1.4)
github-pages-health-check (1.16.1)
addressable (~> 2.3)
dnsruby (~> 1.60)
octokit (~> 4.0)
public_suffix (~> 3.0)
typhoeus (~> 1.3)
html-pipeline (2.12.0)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
Expand All @@ -100,149 +27,40 @@ GEM
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-avatar (0.6.0)
jekyll (~> 3.0)
jekyll-coffeescript (1.1.1)
coffee-script (~> 2.2)
coffee-script-source (~> 1.11.1)
jekyll-commonmark (1.3.1)
commonmarker (~> 0.14)
jekyll (>= 3.7, < 5.0)
jekyll-commonmark-ghpages (0.1.5)
commonmarker (~> 0.17.6)
jekyll-commonmark (~> 1)
rouge (~> 2)
jekyll-default-layout (0.1.4)
jekyll (~> 3.0)
jekyll-feed (0.11.0)
jekyll (~> 3.3)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-github-metadata (2.12.1)
jekyll (~> 3.4)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.4.1)
html-pipeline (~> 2.3)
jekyll (~> 3.0)
jekyll-optional-front-matter (0.3.0)
jekyll (~> 3.0)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.2.0)
jekyll (~> 3.0)
jekyll-redirect-from (0.14.0)
jekyll (~> 3.3)
jekyll-relative-links (0.6.0)
jekyll (~> 3.3)
jekyll-remote-theme (0.3.1)
jekyll (~> 3.5)
rubyzip (>= 1.2.1, < 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.5.0)
jekyll (~> 3.3)
jekyll-sitemap (1.2.0)
jekyll (~> 3.3)
jekyll-swiss (0.4.0)
jekyll-theme-architect (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-cayman (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-dinky (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-hacker (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-leap-day (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-merlot (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-midnight (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-minimal (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-modernist (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.5.3)
jekyll (~> 3.5)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.0)
jekyll-theme-slate (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-tactile (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.5.1)
jekyll (~> 3.3)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.10.2)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (~> 3.0)
kramdown (1.17.0)
liquid (4.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
mini_portile2 (2.4.0)
minima (2.5.0)
jekyll (~> 3.5)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.11.3)
multipart-post (2.1.1)
nokogiri (1.10.4)
mini_portile2 (~> 2.4.0)
octokit (4.14.0)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.1.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
rouge (2.2.1)
ruby-enum (0.7.2)
i18n
rouge (3.11.0)
ruby_dep (1.5.0)
rubyzip (1.2.3)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (1.3.1)
ethon (>= 0.9.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unicode-display_width (1.6.0)

PLATFORMS
ruby

DEPENDENCIES
github-pages
jekyll
jekyll-sitemap
tzinfo-data

BUNDLED WITH
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
_Encryption Against Global Mass Surveillance._

[![Build Status](https://travis-ci.com/privacytoolsIO/privacytools.io.svg?branch=master)](https://travis-ci.com/privacytoolsIO/privacytools.io)
[![Translation status](https://weblate.nablahost.com/widgets/privacytoolsio/-/website/svg-badge.svg)](https://weblate.nablahost.com/engage/privacytoolsio/?utm_source=widget)

# Contributing

Expand Down
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ sass:
style: compressed
plugins:
- jekyll-sitemap
plugins_dir: "./_plugins"
sitemap:
file: "/sitemap.xml"
include: [".well-known"]
exclude: ["font", "vendor"]
exclude: ["font", "vendor","weblate-source-file.yml"]
47 changes: 47 additions & 0 deletions _data/language_map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
af: "Afrikaans"
az: "Azərbaycanca"
bg: "Български"
ca: "Català"
cs: "Česky"
da: "Dansk"
de: "Deutsch"
el: "Ελληνικά"
en: "English"
es: "Español"
et: "esti"
fa: "فارسی"
fi: "suomi"
fil: "Pilipino"
fr: "Français"
ga: "Gaeilge"
hr: "Hrvatski"
hu: "Magyar"
id: "Bahasa Indonesia"
it: "Italiano"
ja: "日本語"
kk: "Қазақ"
ko: "한국어"
lt: "Lietuviškai"
lv: "Latviešu"
mk: "Македонски"
ms: "Bahasa Melayu"
nb: "Norsk"
nl: "Nederlands"
pl: "Polski"
pt_BR: "Português (br)"
pt_PT: "Português (pt)"
ro: "Română"
ru: "Pусский"
sk: "Slovenčina"
sl: "Slovenščina"
sr: "српски"
sv: "svensk"
sw: "Kiswahili"
th: "ภาษาไทย"
tr: "Türkçe"
uk: "Українська"
uz: "O'zbekcha"
vi: "Tiếng Việt"
zh_CN: "简体中文"
zh_TW: "繁體中文"
25 changes: 25 additions & 0 deletions _data/languages/ca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
About_PrivacyTools_18_KEY: Quant a PrivacyTools
Web_Browsers_12_KEY: Navegadors web
About_the_PrivacyTools_organization_and_contributors_to_the_PrivacyTools_website_communities_and_servicesP_109_KEY: Quant
a l'organització PrivacyTools, i els col·laboradors del lloc web, comunitats i serveis
de PrivacyTools.
Self_Hosted_Cloud_19_KEY: "«Núvol» autohostatjat\n"
Notebooks_9_KEY: "Blocs de notes\n"
File_Sync_9_KEY: "Sincronització de fitxers\n"
File_Sharing_12_KEY: "Compartició de fitxers\n"
Encryption_Tools_16_KEY: "Eines de xifratge\n"
Email_Clients_13_KEY: "Clients de correu electrònic\n"
Dont_let_Google_see_all_your_DNS_trafficP_Discover_privacycentric_alternatives_to_the_traditional_DNS_providersP_114_KEY: " No\
\ permeteu que Google vegi el vostre trànsit DNS. Descobriu alternatives als proveïdors\
\ de DNS tradicionals centrades en la privadesa.\n"
Encrypted_DNS_Resolvers_23_KEY: " Sistemes xifrats de resolució de DNS\n"
Discover_how_to_securely_and_privately_selfhost_your_cloud_with_opensource_softwareP_86_KEY: "Descobriu\
\ com hostatjar el vostre núvol de manera segura i privada amb programari de codi\
\ lliure.\n"
Discover_free_opensource_and_secure_ways_to_sync_your_contacts_and_calendars_across_your_devicesP_100_KEY: " Descobriu\
\ maneres lliures, de codi obert i segures de sincronitzar els contactes i calendaris\
\ amb tots els dispositius.\n"
CalendarContacts_Sync_Tools_28_KEY: " Eines de sincronització de calendari i contactes\n"
These_are_our_current_web_browser_recommendations_and_some_tweaks_you_can_use_to_preserve_your_privacyP_103_KEY: "Aquestes\
\ són les nostres recomanacions actuals i alguns trucs que podeu utilitzar per a\
\ preservar la privadesa.\n"
1 change: 1 addition & 0 deletions _data/languages/de.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions _data/languages/el.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions _data/languages/es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions _data/languages/fi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions _data/languages/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions _data/languages/it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions _data/languages/pl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions _data/languages/sr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading