olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.79k stars 236 forks source link

Implement localized webpage #1134

Open milotype opened 1 year ago

milotype commented 1 year ago

Issue the webpage http://www.theologeek.ch/manuskript/ is only in english.

Feature request: enable automatic tanslations of the website depending upon the user's language browser or system settings, or provide an option/button to change the language.

Proposed solution: add a translatable "component" at https://hosted.weblate.org/projects/manuskript/ for the strings used for the website http://www.theologeek.ch/manuskript/ … for Croatian for instance https://hosted.weblate.org/languages/hr/webpage/

TheJackiMonster commented 1 year ago

The website does not share any resources with this repository. So I can't simply add translation to it. I'm also not sure whether I can even install plugins (regarding permissions) to the website allowing translation.

milotype commented 1 year ago

@TheJackiMonster As long as you can't decide how to implement localizing the website, maybe you can at least add content about translations in the "Features" section.

Something like:


        <div class="col-lg-3 col-sm-3 focus-box" data-scrollreveal="enter left after 0.15s over 1s" data-sr-init="true" data-sr-complete="true">

                        <div class="service-icon">

                    <i class="pixeden" style="background:url(language.png) no-repeat center;width:100%; height:100%;"></i> <!-- FOCUS ICON-->

            </div>

            <h3 class="red-border-bottom">Multilingual</h3>
            <!-- FOCUS HEADING -->

            <p>Use the app in your native language. You can help improving existing translations at <a href="https://hosted.weblate.org/engage/manuskript/" target="_blank">Hosted Weblate</a> or file an issue at <a href="https://github.com/olivierkes/manuskript/issues" target="_blank">GitHub</a> asking for new languages.</p>   

        </div>

Note: You would need to adapt the style="background:url according to the other "Feature" instances. Something like: <i class="pixeden" style="background:url(http://www.theologeek.ch/manuskript/wp-content/uploads/2016/02/language.png) using the icon size of 64x64 px. You can download it at https://www.shareicon.net/language-852292

This is just a suggestion …

TheJackiMonster commented 1 year ago

Mhmm.. I kind of like the suggestion but there's a problem. I don't think I can even change the main page. I have only limited access to create new posts, moderate comments and some linked pages. But at least under "Contribute" it's mentioned to use Weblate for improving translations and I added a badge to the ReadMe in the repository here, showing the progress of translations on the main page from the Github repository.

milotype commented 1 year ago

Too bad :-(