Add translations to the main site (+markdown transition) [DON'T MERGE] #621
Closed
ghost wants to merge 22 commits from
i18n
into master
pull from: i18n
merge into: privacyguides:master
privacyguides:master
privacyguides:dependabot/bundler/nokogiri-1.13.6
privacyguides:dependabot/bundler/addressable-2.8.0
privacyguides:freddy-m-patch-3
privacyguides:pr-add_RemoveMyPhone_sponsor
privacyguides:pr-browser_cleanup_1257_1328_1430
privacyguides:freddy-m-patch-2
privacyguides:freddy-m-patch-1
privacyguides:pr-vpn_hated_one_video
privacyguides:cdn
privacyguides:update-nitrohorse-image
privacyguides:promote-metager-to-card
privacyguides:hardware
privacyguides:pr-add_azirevpn
privacyguides:pr-add_mailfence
privacyguides:shop
privacyguides:1673
privacyguides:pr/1658
privacyguides:i18n-simple
privacyguides:sponsorship-edits-nov2019
privacyguides:ipfs
privacyguides:blacklight447-ptio-patch-3
privacyguides:blog
privacyguides:remove-windows-icons
privacyguides:pr/1147
privacyguides:i18n-testing
privacyguides:add-beautify
No Reviewers
Labels
Clear labels
🔍🤖 Search Engines
approved
approved, waiting for a PR
dependencies
Pull requests that update a dependency file
duplicate
feedback wanted
high priority
I2P
The Invisible Internet Project (I2P)
iOS
low priority
OS
Operating Systems
Self-contained networks
Social media
stale
A label for stalebot if it gets added
streaming
Anything related to media streaming.
todo
Tor
Anything covering the Tor network
WIP
active work in progress, do not merge or PR (yet)!
wontfix
Issues or bugs that will not be fixed and/or do not have significant impact on the project.
XMPP
Extensible Messaging and Presence Protocol
[m]
Matrix protocol
₿ cryptocurrency
ℹ️ help wanted
↔️ file sharing
⚙️ web extensions
Browser Extension related issues
✨ enhancement
❌ software removal
💬 discussion
🤖 Android
🐛 bug
💢 conflicting
📝 correction
Correction of content on the website
🆘 critical
📧 email
🔒 file encryption
📁 file storage
🦊 Firefox
Firefox & forks, about:config etc.
💻 hardware
🌐 hosting
🏠 housekeeping
Anything primarily related to site cleanup.
🔐 password managers
🧰 productivity tools
🔎 research required
🌐 Social News Aggregators
🆕 software suggestion
👥 team chat
🔒 VPN
Virtual Private Network
🌐 website issue
*Technical* issues with the website.
🚫 Windows
👁️ browsers
🖊️ digital notebooks
🗄️ DNS
Domain Name System
🗨️ instant messaging (im)
🇦🇶 translations
Anything covering a translated version of the site
Milestone
No items
No Milestone
Localization, split content into multiple files
No due date set.
Dependencies
No dependencies set.
Reference: privacyguides/privacytools.io#621
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "i18n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We will slowly transition from HTML to Markdown, wherever practical. This will result in much more readable and newbie-friendly files.
The first commit in this branch shows how we will implement localization. The main site will be multilingual -- this doesn't mean that the forks can't have their own repos and domains. It will be much easier for them to keep up, due to the utilization of
JSONYAML language files.instead of JSON to avoid painful escaping of"
.---
key: value
index.html
, you use localized strings like this:index.html
would override the variables.index.html
is now in_includes
languages/
includeindex.html
and set the language for it._includes/langs/
look like this: This allows for using {{ title }} instead of {{ lang.title | default: en.title }} in the md files (or the index.html file, depending on how we decide. See below.).I am not sure about this, but likely we'll do it this way:
_include/content
<<filename>>
being the name of the file without the extensionindex.html will be full of content includes, but the advantage is that we'll have far less conflicts.
I haven't yet decided what all will be converted into markdown.
It would be cool if we could convert
# headings
into headings with an anchor link and a FA link icon.
I guess moving the VPN comparison table to a separate file will be great, as index.html will be far less bloated.
The navigation thing on the right shows how big the VPN comparison table is.
Things like
Can be converted into markdown easily and it will be a great thing.
I guess this could be converted nicely into markdown, though I'm not sure about
img-fluid float-right
.It's important to keep in mind that we can freely use HTML in MD. At least on GitHub. Seems to be that way for most MD compilers. So this will likely be true in Jekyll/Liquid as well.
Will we move these sections to separate files too?
@Vincevrp
38954bc363
Activist:
The created file in
content/
starts with@Shifterovich what do you think of adding icons to the header template as they are now present at https://privacytools.ru? Also, I've made some re-ordering of the sections (and actually added a couple, which are only relevant to RU - so probably we should consider "floating sections"), so if you believe it makes sense, I can help with both things on the main template.
Good idea, that might for now solve the issue with the messy navbar. It will be easier to navigate in it.
BTW, after discussing this with @Vincevrp we came across two things:
So we will simply split index.html into markdown files by sections.
Closing in favour of #730.