Giter Site home page Giter Site logo

Localization about community-portal HOT 7 CLOSED

wearefairphone avatar wearefairphone commented on July 25, 2024
Localization

from community-portal.

Comments (7)

Ryuno-Ki avatar Ryuno-Ki commented on July 25, 2024 1

Hi, thanks for the question.

Although I am not on the forum, I read it.

I would follow the same approach mozilla/activate.mozilla.community is going, i.e. would pull the translation in from a data file or include.
(Disclaimer: I am a Mozillian and contributed to that project.)

Do you have a preferation about how the URL should look like?

from community-portal.

Ryuno-Ki avatar Ryuno-Ki commented on July 25, 2024 1

I'll watch the other two issues and reopen if there is a way to render multilanguage sitemaps.

from community-portal.

duke1102 avatar duke1102 commented on July 25, 2024

Hey, not entirely sure about the complete features of Jekyll yet, but I'd assume you could probably create localized versions of markdown files and then maybe just implement a selection box on the website to easily change around the language.

from community-portal.

Ryuno-Ki avatar Ryuno-Ki commented on July 25, 2024

Speaking of the forum: https://forum.fairphone.com/t/online-portal-for-fairphone-community/28956/11
Which posts would there be? Because there is a ruby lib for talking to the Discourse API (which is one reason why I went for Jekyll instead of, say, Hugo).

from community-portal.

StefanBrand avatar StefanBrand commented on July 25, 2024

Do you have a preferation about how the URL should look like?

In general I was thinking about fairphone.community/angels (for example). Is it possible that we have fairphone.community/en/angels and that the language is automatically inserted?

from community-portal.

Ryuno-Ki avatar Ryuno-Ki commented on July 25, 2024

Done.

I'll have to add the language switcher later on (I'll update todo part of README next).
Note, that en is the default language at the moment.
I had to tweak jekyll-seo-tag to work with jekyll-multiple-languages-plugin a bit. That is, our default theme (minima) has jekyll-seo-tag already included, so I had to disable the <title> generation to make it translateable.

Browse http://localost:4000/de/angels/ for example.

from community-portal.

Ryuno-Ki avatar Ryuno-Ki commented on July 25, 2024

Looking into jekyll/jekyll-sitemap#88 and kurtsson/jekyll-multiple-languages-plugin#68 for multilang sitemap.xml.

from community-portal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.