Archived
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: :master
:master
:dependabot/bundler/nokogiri-1.13.6
:dependabot/bundler/addressable-2.8.0
:freddy-m-patch-3
:pr-add_RemoveMyPhone_sponsor
:pr-browser_cleanup_1257_1328_1430
:freddy-m-patch-2
:freddy-m-patch-1
:pr-vpn_hated_one_video
:cdn
:update-nitrohorse-image
:promote-metager-to-card
:hardware
:pr-add_azirevpn
:pr-add_mailfence
:shop
:1673
:pr/1658
:i18n-simple
:sponsorship-edits-nov2019
:i18n
:ipfs
:blacklight447-ptio-patch-3
:blog
:remove-windows-icons
:pr/1147
:i18n-testing
:add-beautify
Labels
Clear labels
:mag:🤖 Search Engines
I2P
OS
Self-contained networks
Social media
Tor
WIP
XMPP
[m]
approved
dependencies
duplicate
feedback wanted
high priority
iOS
low priority
stale
streaming
todo
wontfix
₿ cryptocurrency
ℹ️ help wanted
↔️ file sharing
⚙️ web extensions
✨ enhancement
❌ software removal
🆕 software suggestion
🆘 critical
🇦🇶 translations
🌐 Social News Aggregators
🌐 hosting
🌐 website issue
🏠 housekeeping
🐛 bug
👁️ browsers
👥 team chat
💢 conflicting
💬 discussion
💻 hardware
📁 file storage
📝 correction
📧 email
🔎 research required
🔐 password managers
🔒 VPN
🔒 file encryption
🖊️ digital notebooks
🗄️ DNS
🗨️ instant messaging (im)
🚫 Windows
🤖 Android
🦊 Firefox
🧰 productivity tools
The Invisible Internet Project (I2P)
Operating Systems
Anything covering the Tor network
active work in progress, do not merge or PR (yet)!
Extensible Messaging and Presence Protocol
Matrix protocol
approved, waiting for a PR
Pull requests that update a dependency file
A label for stalebot if it gets added
Anything related to media streaming.
Issues or bugs that will not be fixed and/or do not have significant impact on the project.
Browser Extension related issues
Anything covering a translated version of the site
*Technical* issues with the website.
Anything primarily related to site cleanup.
Correction of content on the website
Virtual Private Network
Domain Name System
Firefox & forks, about:config etc.
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.
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: valueindex.html, you use localized strings like this:index.htmlwould override the variables.index.htmlis now in_includeslanguages/includeindex.htmland set the language for it._includes/langs/look like this: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
# headingsinto 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
https://github.com/privacytoolsIO/privacytools.io/pull/621/commits/38954bc3631f66eab1cd1d9c42359ea8f499b8b7
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.