The language object is set at the beginning of the main template, based on the request URL. This object can be changed using the set_language function. The language object has the following properties:
If you want to verify whether the current environment language is the same as the initial language, compare it to the default_language object. For example:
{{ if $gimme->language == $gimme->default_language }} ... {{ /if }}
If you want to display parts of your templates in a different language according to the language selected by the user, you can use something similar to the following code. This snippet was used for a bilingual publication.
{{ if $gimme->language->code == "en" }} archive {{ else }} [trans]archive {{ /if }}
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.