jekyll-multiple-languages-plugin icon indicating copy to clipboard operation
jekyll-multiple-languages-plugin copied to clipboard

I don't get Jekyll Multiple Languages Plugin to work at Github Pages Server

Open sslHello opened this issue 5 years ago • 4 comments

Thank you for your nice plugin.

I am sorry, but I do have the same issue as 'The blog posts are not built in GitHub Pages Server (#120)'. Locally it works all OK (I've installed it according '3.1 Using the gem'; Even using the safe option in 'bundle exec jekyll serve --safe' works locally.

I am sorry, on the Github Pages Server does not work here neither installing it according

  • '3.3. As a Git Submodule': "The submodule registered for ./_plugins/multiple-languages could not be cloned. Make sure it's using https:// and that it's a public repo. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#invalid-submodule." Replacing 'git:' by 'https:' did not help.
  • nor '3.1 3.2. Manually': "The tag translate on line 21 in _includes/myinclude.html is not a recognized Liquid tag. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#unknown-tag-error."

Any help is kindly appreciated Cheers Torsten

sslHello avatar Apr 19 '20 15:04 sslHello

I'm facing the same problem. Have you solved this issue?

GilmarCorreia avatar Jul 26 '20 14:07 GilmarCorreia

Hi Gilmar, yes. I've found a work-around writing an include replacing the plugin: https://github.com/OWASP/www-project-top-ten/blob/master/_includes/i18n.html

  • config-file: https://github.com/OWASP/www-project-top-ten/blob/master/_config.yml
  • yaml-file: https://github.com/OWASP/www-project-top-ten/tree/master/_data/i18n

I've used it e.g. in some includes of this page (defining 'lang: en' in the header): https://raw.githubusercontent.com/OWASP/www-project-top-ten/master/OWASP_Top_Ten_2017/Top_10-2017_A1-Injection.md e.g. in include 'https://github.com/OWASP/www-project-top-ten/blob/master/_includes/t10_subsection.html': {%- if {{include.token}} -%} {%- include i18n.html token=include.token -%}

I hope, this helps you, too. Cheers Torsten

sslHello avatar Jul 30 '20 21:07 sslHello

Thank you, I will try. I've found another solution for the minimal-mistakes theme using the lang: en

GilmarCorreia avatar Aug 05 '20 22:08 GilmarCorreia

fyi there is an ongoing discussion to add multi-language support to Github Pages and I'm trying to get an overview of what it would need to whitelist the jekyll-multiple-languages-plugin there

https://github.com/github/pages-gem/issues/401

intlr avatar Feb 07 '21 13:02 intlr