-
Notifications
You must be signed in to change notification settings - Fork 15
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
unable to use language dictionaries #16
Comments
With a
and a
If you wrote the following:
in pages and posts with the yaml front
and in pages and posts with the yaml front
Could you test if these work for you? |
Hi @sburke56 have you tested the the language dictionary features as I've suggested? It's one of the few things of this plugin that works as documented. |
I haven't got to it yet. I will pin this and try to get to it. The site is
|
Hi @sburke56 I've just deployed my octopress multilingual site at https://taringamberini.github.io and you can find my octopress site sources on the
If you have any questions I'll be happy to help you, |
I tested it again. Still no dice. When I set up my language files like the documentation my layouts don't have access to the global var "lang". Possibly it's user error but I'm not sure. source/_data/lang_en.yml lang_en.yml lang_cn.yml When I put the following in my layout file the lang.title doesn't show up. The site.data.lang_en.title shows up but that doesn't allow me to write only one set of code for the layout.
|
Hi @sburke56, To exclude problems with your ruby and gems installations would you like to generate my site?
Hi, |
I was unable to use the language dictionary features and therefore abandoned using the plugin.
I specified lang:en in the _config.yml Ultimately what I did was have one languages.yml file that has both my languages and accessed the title in my layout file. This worked so I'm not sure why something like the octopress-multilingual plugin didn't work when trying to split up the languages to their own separate files. Accessing the language title like in the docs with "{{ lang.title }} => English title" didn't generate anything.
languages.yml
en:
gde-quickstart:
title: 'GDE Quick Start Guide v2.1'
cn:
gde-quickstart:
title: 'GDE快速入门指南v2.1'
layout file accessed the page title
{{ site.data.languages[page.lang].gde-quickstart.title }}
The text was updated successfully, but these errors were encountered: