Hugo-coder: Translate to french?

Created on 4 Apr 2020  路  14Comments  路  Source: luizdepra/hugo-coder

Anybody getting an error similar to described https://stackoverflow.com/questions/2467454/why-does-chrome-incorrectly-determine-page-is-in-a-different-language-and-offer ?

i.e., when I visit my site which is in English, not in any other language:
image

I can fix this and propose PR if anyone else is getting the same issue.

All 14 comments

Hi, how do you get multiple translation possibilities ?
image

lol, that's offtopic, but anyway...

offtopic @clement-pannetier

Explanation:

  • CTRL+L. In your chrome address, write the following: chrome://settings/languages.
  • In Languages > Language, upon being expanded, choose Add Languages, look for it, mark the checkbox, and press Add button.
  • Make sure it is saved and then you're done.

Glad to help. :)

lol, that's offtopic, but anyway...

offtopic @clement-pannetier

Explanation:

  • CTRL+L. In your chrome address, write the following: chrome://settings/languages.
  • In Languages > Language, upon being expanded, choose Add Languages, look for it, mark the checkbox, and press Add button.
  • Make sure it is saved and then you're done.

Glad to help. :)

Thanks but I've already made that and also checked the checkbox to be able to receive translations for this language...

Maybe check if you have latest chrome, it tends to be buggy sometimes. Oh by the way, do you mind if I steal/borrow the javascriptlet from your .dev site to change site mood/color?

Maybe check if you have latest chrome, it tends to be buggy sometimes. Oh by the way, do you mind if I steal/borrow the javascriptlet from your .dev site to change site mood/color?

Already checked 馃槃
Of course you can but it's not very good code... I need to refactor it.

@netrules, I'ts now working (different translations capabilities) since the last update (81.0.4044.92), I don't know why...

I saw your commit on your github repo.
I think that only this line <meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}"> is relevant because the others parameters like xml:lang or xmlns are used when the page is not served as text/html as you can see here.

Thanks clement (or should I say, merci?). Anyway, I refactored it a little and used for my project too. You can see it in the latest commits. Thanks again! Really practical imho.

Thanks clement (or should I say, merci?). Anyway, I refactored it a little and used for my project too. You can see it in the latest commits. Thanks again! Really practical imho.

馃槃, I can make a PR if you want ?

@luizdepra, is it a bug you want to be fixed or not ?

Oh regarding the site language? I still haven't found a way to fix it lol

Oh regarding the site language? I still haven't found a way to fix it lol

It doesn't work for you ? It seems to work on my side 馃え.

Not sure, do you see anything wrong with my landing page sources? Also, any way I can get in touch with you? I have some questions regarding your repo.

Of course, open an issue here if you have a GitLab account.

Sure, a PR would be nice, @clement-pannetier.

Sure, a PR would be nice, @clement-pannetier.

I'll do it tomorrow, it's getting late here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxdrohde picture maxdrohde  路  3Comments

davhin picture davhin  路  5Comments

mauricioabreu picture mauricioabreu  路  5Comments

SillyPilleus picture SillyPilleus  路  5Comments

paride picture paride  路  6Comments