Drupal websites can be configured to use multiple languages, e.g. English and French, German, Spanish, Dutch, ... (there are dozens of supported languages). Use this tag for questions about using multiple languages in a single Drupal website.

learn more… | top users | synonyms (1)

1
vote
1answer
11 views

Multilingual Taxonomy Views - Entity Translation

I am trying to create a multilingual taxonomy view using Entity translation. So far, I am stuck displaying an English view even when using a language code. I'm looking for the steps needed for ...
1
vote
1answer
30 views

Manage 2 separate page cache for the same URI

We have a multilingual website build with Drupal 7. We have a IP detection for detect Chinese users. Chinese laws do not allow the use of certain JS librairies. In our case, for one page, we use ...
0
votes
3answers
22 views

How to call functions from another module in hook_language_negotiation_info()?

I am writing a new custom module which is dependent on geoip module. I'm trying to add another language negotiation in the language detection configurations which would trigger a callback function ...
0
votes
1answer
12 views

Adding 'lang' attribute to language links in template.php

I am not a Drupal developer, but still I would like to know how to make the links in a language switcher HTML5 valid. It seems these links lack an attribute 'lang' (with as value the abbrevation of ...
1
vote
0answers
16 views

Translating Javascript files with Drupal.t() fails

I've attached Leaflet draw js library to my site. I've modified that JavaScript file by wrapping UI texts in Drupal.t() It took a while before these texts were available in translation interface ...
0
votes
1answer
14 views

url() not providing links to correct language alias using i18n in D7

We have a site that features two languages, EN (primary/default) and JA. On one content page, we link to another node using it's nid: url('node/123'). In EN, this returns the alias and not the node ...
0
votes
1answer
17 views

Upload Sitemap.xml for specific country or language in drupal 7?

Our drupal site has multilingual support and i need to upload sitemap.xml for specific country or language. My current india site url is http://domain.com/in-en. And i need the sitemap.xml url should ...
6
votes
1answer
204 views

What is the difference between “Language: Not specified” & “Language: Not applicable” in Drupal 8 multilinguality?

What is the difference between "Language: Not specified" and "Language: Not applicable" in Drupal 8 In the context of multilinguality ? Maybe a code expert here already studied it? (I've yet to reach ...
2
votes
1answer
24 views

Retrieve translated taxonomy term in current language programatically

How do I retrieve a specified taxonomy term translated (if translation exists for this term) from the current language context programmatically with D8?
0
votes
0answers
6 views

static generator module in multilingual site is not working

I did Node translated into japanese(info.html) from english(info.html).when using static generator module for generating static html files for both language is not working .when its in english its ...
-1
votes
1answer
58 views

mulitilingual language for fields in node

I am trying to change language for fields using language switcher. But without fields, everything is changing according to language switch click. How to solve this? Basically I want to change ...
0
votes
0answers
8 views

Letting user select from ALL supported languages, even if not importing po

I want to only support English, Chinese (Simplified) and Japanese initially, but I'd still like to log the language choice of users so I can build a picture of what languages I should be supporting ...
0
votes
0answers
13 views

Multlingual site: changing language for bilio page not working

I've change the biblio path of my site to /publication. Now when i add a menu link with path "publication" on my multilingual site, i get this error: Keine Elemente gefunden Ändern oder entfernen Ihre ...
-1
votes
1answer
28 views

Is there any preprocess hook for date api?

As I asked in above, Is there any theme preprocess hook for date api in drupal? I want to Perform Some mathematical operations on Dates That show on any type of Contents, Is there a any way to a to ...
0
votes
1answer
29 views

Entity Translation and Taxonomy

I'm having hard time integrating Entity Translation module with tags (Taxonomy and TagClouds modules). I want the following: Cloud of tags to be showed on the site Tags must be translatable, i.e. ...
1
vote
1answer
23 views

Twitter Block translation

I've got a TwitterBlock on my website. It works fine but all texts are in english. Even if I change t('') function with my language (french) desired, it's still in english. ex:ln422 ...
0
votes
1answer
56 views

Custom language switcher block, returning urls problem

In Drupal 8, i am trying to create a custom language switcher block. So, I created a custom module, where I created a new class that extends the "LanguageBlock" class of the core language module. I ...
0
votes
1answer
131 views

How to use Traditional (National/Native) Date/Calender in Drupal?

How can use Traditional Calender in drupal? I already used "format_date" function in theme files, but this function not locale-aware which means that it Always outputs English language data, such as ...
0
votes
1answer
36 views

how to create a site with admin language english and backend language another

I would like to create a site to display the frontend of the site in one language and still keep the backend in English (or another language). Is there a module like "Administration Language" or any ...
0
votes
0answers
19 views

How to programmatically add multiple entity translations for a node at once

I have multiple nodes on a multilingual site. Now I've got only the default language for the nodes ('es' in my case). I'm writting a code to programmatically translate each node from an external ...
0
votes
0answers
27 views

Duplicate results of views exposed filter when searching multiple entity translation fields

I'm using brilliant "Global: Combine field filter" option for exposed filters in Views to allow users searching among multiple fields (as described here: ...
0
votes
1answer
31 views

Headless Drupal for managing multilanguage resources for Web/Android/IOS apps? [closed]

A company has content in 10 languages and 3 channels (web, ios, android). It creates a lot of overhead related to translation (external translation company has to be managed, translations sent etc.). ...
0
votes
1answer
15 views

How to turned off the translation on the node reference with entity translation?

I have a multilingual site and I am using the feed module to import content. My site has two languages: English and Arabic. During import the node from excel value all the fields value save except ...
3
votes
1answer
32 views

Feed import save empty value in multilingual site

I have a multilingual site and I am using the feed module to import content. My site has two languages: English and Arabic. When my excel files have English content, it imports properly. But if ...
1
vote
1answer
21 views

How to access current langcode in theme?

I use Integrity theme and want to make the slider images i18n aware. I want to get the current langcode in the function _integrity_get_home_block_contents Previously it worked like this: ...
1
vote
1answer
53 views

Can I have both Language and Country path prefixes in Drupal 8?

On our site, paths are all prefixed by language and country. For example: http://example.com/en/us/about In Drupal 7, a previous vendor implemented this by using the Persistent URL module, which ...
0
votes
1answer
29 views

How to translate the book pages content using the Book Translation module?

My requirement is that a user can see the complete book pages in the selected language (English, Hindi, Bengali, etc) as per the preference. That's why I installed the Book Translation ...
0
votes
0answers
33 views

Set one language for front page

In Drupal 8, how can I set the front page language to English? The front page is a panel, if I set front page to /en/frontpage I get 404. The site main language is Swedish but we want the front page ...
0
votes
2answers
20 views

how to setting drupal i18n translation module not to translate system menu I don't want?

In my site I am using drupal7 i18n module to translate to Burmese language. But my problem is I don't like drupal to translate system fields that does not need to translate because translation is ...
0
votes
0answers
15 views

What Drupal setting controls prepending language codes to internal links?

What Drupal setting controls the prepending of the language code when you hover over an internal link? For example I have a node with a link to another internal node on it, and the hover link is: ...
1
vote
1answer
45 views

How do I get Views content items in “my language” but fall back to “default” if the content isn't translated?

This is probably very easy but endless searching has proved fruitless - there's lots of UI changes between the D7 and D8 versions of these modules it seems. What I want to do is create a blog in two ...
3
votes
5answers
116 views

Why does the “admin/modules” page show up in the wrong language?

The error appears on a single language page with just one other language than English enabled (here: German) and set to default. All other admin pages show the the right language. Admin theme is ...
0
votes
1answer
65 views

Facebook scraper ignores default language

I have a Drupal 7 setup with an internationalized site. The default languages is English but the content is also available in German. However the site focuses on a German audience. As in Drupal you ...
1
vote
0answers
14 views

How to use a link in Main Menu to switch language of current page?

Now I have three links to switch language on Main Menu: http://www.example.com/en http://www.example.com/de http://www.example.com/it The problem is the above all links to the <front> page. ...
0
votes
0answers
15 views

Module configuration and language

I have created a configuration object which looks like: message: 'Here we go!' langcode: en And I've created a form which allows me to change that message. However, I am not entirely sure how to ...
0
votes
1answer
129 views

How to create an RTL CSS file (style-rtl.css) for Drupal modules

Say I have a "style.css" file for a module, and that file contains the following syntax: .myCalss1 { right: 10px; margin: 0 5px 0 0; } I then create an extra file, "style-rtl.css" with the ...
0
votes
1answer
33 views

Node language in views contextual filters

I have a multi-lingual site. On the article page has a block with other articles. How to bring in the article section with the same language as the current node? Interested in is the use of contextual ...
0
votes
1answer
47 views

How to programmatically create entity with certain language applied to fields?

I am programmatically creating some content during profile installation and since Drupal uses "en" langcode during this period I am getting the language from config and it is working fine. The issue ...
2
votes
1answer
90 views

How to translate the views page title?

Is there a way to translate a views page title in Drupal 8? If yes, please explain.
0
votes
1answer
42 views

How to get correct language code during installation?

I am programmatically creating some content during installation of my profile and I need to set the language for this content, otherwise it will be in English(which my site is not) and there will be ...
4
votes
3answers
127 views

Is there an easy way to move non-English selected nodes into a language section?

I have a site in English but it also has a few nodes in Arabic, a few in Aramaic, a few in Hebrew, etc. Is there an easy comfortable UI way to move each group of nodes for a language section? To ...
1
vote
0answers
27 views

Setting the default front page setting to be translatable

I've enabled the following multilingual modules: Configuration Translation Content Translation Interface Translation Language Configuration translation enables me to translate the site title and ...
4
votes
2answers
72 views

Which is the correct “code/word” for Language Neutral?

I read an article from Gábor Hojtsy where he say: Language neutral uses the language code 'und', which means undefined and is specified to be used for such cases by the ISO 639 standard. But ...
2
votes
1answer
25 views

How do I add the Arab League flag as language?

I can't find a flag of the Arab League in Drupal. How do I add this flag as language? It isn't showing in the languages' list.
0
votes
0answers
37 views

Cannot chose option Translate and Localize for menu translation

I installed Modules Internationalization and Variables on Drupal 7 fresh installation, then switched on nearly all included sub-modules (actually I also tried it on Panopoly installation with the ...
7
votes
1answer
198 views

What is the difference between {{ |t}} and {% trans %}?

I notice that Drupal 8 support {% trans %} which, according to the Symfony documentation (The i18n Extension), adds gettext support to Twig. {{ |t }}, as far I know, is the legacy way to add ...
1
vote
0answers
10 views

D7: Blog post set to language but all the time visible

I created to blog post, one in english, on in german. But if I launch set a menu link with the link "http://www.drupalsite.com/en/blog", I still see all blog posts. How to change that it only display ...
0
votes
1answer
74 views

How to switch language on login based on user profile?

Is there a way when a user login to automatically switch him in then language setup in his user profile.
0
votes
0answers
9 views

Drupal 6 - get list of countries and languages

How to get list of countries and languages? There is function called country_get_list() to get country lists in Drupal 7. Similarly is any other function exists to get country list and languages in ...
1
vote
0answers
11 views

French language not showing url alias path

I have installed multilingual module and added french country for this. Added one content with English & french. English & French text showing fine for this content (using block region But ...