Board Thread:Support Requests - Getting Technical/@comment-28741036-20190531182550

Hey everyone,

the staff team from the Mineplex Wiki have been working on a new project recently: We've planned to work on translations for our most relevant articles. We'd like to make a start by translating the rules of the Minecraft server we're documenting.

To get the job done, we will be supported by a team of 60+ volunteers for over 16 languages. This will be a big step towards helping the international readership of our wiki.

Overview
Unfortunately, we haven't decided on a practical approach yet, because there's several ideas with many advantages and drawbacks available. We currently have the following options:

Option 1
I think we can all agree that the first idea would not be ideal for our scenario. Too much work for what we're planning.

Option 2
We've already worked a bit with the second alternative, which makes it easier for me to showcase it. The "original" version of the page can be found here. This page contains a lot of special Translation templates, which are described in detail here. To put it simple, the templates are an easy way to allow the editors to enter a translation for every string. The language subpages would look like this. I'm personally fine with this, but the last idea would be much more preferable if it works.

Option 3
So what's the JS, you ask? It's really simple actually. Normally, the page would only show the English version. On the very top of the article, we'd allow the reader to choose their language, probably with buttons. Once clicked, the selected language pops up, and all other translations hide. I've also prepared a proof of concept. Don't be too harsh on me ;)

The only task left to do would be adding the translations. A template (to be done) would allow the editors to enter a translation in one of the language parameters (something like ). Every translation would be assigned to the TranslationsElement class and a class for their respective language (in this case Italian or French), which allows them to be hidden/shown using the JS code.

Conclusion
If you've made it here, thank you so much! I'm not too familiar with JS as I mentioned already, so I do appreciate any advice you have. Thanks for reading the walls of text (this turned out to be much more than expected, haha), and be sure to ask if you have any questions. So yeah, let me know what you think about our proposals, and if my code concept would work on our Wiki. Thanks :-) 