Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization #1

Closed
StefanBrand opened this issue Nov 21, 2017 · 7 comments
Closed

Localization #1

StefanBrand opened this issue Nov 21, 2017 · 7 comments

Comments

@StefanBrand
Copy link
Contributor

How to deal with different languages?

@duke1102
Copy link
Contributor

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.

@Ryuno-Ki
Copy link
Collaborator

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?

@Ryuno-Ki
Copy link
Collaborator

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).

@StefanBrand
Copy link
Contributor Author

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?

Ryuno-Ki added a commit that referenced this issue Nov 22, 2017
@Ryuno-Ki
Copy link
Collaborator

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.

@Ryuno-Ki
Copy link
Collaborator

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

@Ryuno-Ki
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants