"Internationalization and localization" is adapting computer software to different languages, regional differences and technical requirements of a target market (locale).

learn more… | top users | synonyms (3)

0
votes
2answers
25 views

Language-dependent logo

How can I use a custom logo image in Drupal 8 that is language dependent? There does not seem to be an appropriate setting in the Content and Language Translation configuration page.
0
votes
0answers
13 views

How do we add a button to the node/edit page that on click translate current node to selective languages?

We are looking for a way to add a button on the node/edit screen to allow someone the ability when the button is clicked to basically clone the page into a different select set of languages? For ...
-1
votes
0answers
8 views

As configure all languages in i18n strings? [on hold]

as configure all languages admin/config/regional/i18n/strings ?
1
vote
1answer
13 views

Display Language specific content

I created two languages English and French I am facing problem when content is not translated into french by default its displaying english content. How to display only french content if i select ...
0
votes
2answers
29 views

setting default language in drupal multilingual module

In my website, I have 2 language English and Marathi. 1st default language is English and I have added some content too. but now my requirement is to set default language as Marathi. I have gone to ...
0
votes
1answer
31 views

Different landing pages for different countries

How can I get Drupal 8 to use different landing pages for different countries? I can create the pages but how do I tell Drupal which page to show for each country? Is geo location the only way, or is ...
0
votes
0answers
17 views

How can I translate or add words that seems not to be part of core strings? [duplicate]

I currently use formatPlural() to translate comment (not comments) and return its value to the Twig template. \Drupal::translation()->formatPlural('', '1 comment', '@count comments'); Is there ...
0
votes
1answer
21 views

How to only allow a node to be viewed in its assigned language?

I have three languages on my site: /en /es If I have a node with ID = 1234 and this node in english, then I can view it as follows: /en/node/1234 And this will redirect to /en/my-page Which ...
0
votes
0answers
25 views

Drupal 8 redirect anonymous user based on IP programmatically

I need help... Since there is no available IP language negotiation yet in Drupal 8, how do you this programmatically? I tried to this, I used the Eventsubscriber, I can also get the country based on ...
0
votes
1answer
23 views

How to Setup Multilingual Section (Not Site)

I support an existing site that contains a multilingual section. We have a link to this section on the homepage and it just consists of some basic pages. Now I have been asked to incorporate one of ...
0
votes
0answers
36 views

Get current language in block

There is a twig file named link--language-block.html.twig and I'd like to get current language in there. In front page (page--front.html.twig) it can be done using {{ language.name }} . But, it ...
0
votes
0answers
14 views

How to handle translations for menu items?

Need to know what is the best way to translate menu items. Do I provide the translated menu link at the node level, when it's set to Provide Menu Item, or do I translate the menu item at the Menu ...
0
votes
3answers
34 views

How can I change the search form placeholder value?

How can I change the search form placeholder value? I can change the value of it in my .theme file, but I want it to be also translatable. What is the correct way of doing this?
1
vote
1answer
21 views

how to make a custom entity multilingual

I made a custom entity (ty drupal console). but i would also like to make this entity translatable. I enabled all 4 multilingual core modules but i don't see the "translate" tab in my entity nor can i ...
0
votes
1answer
25 views

How do I hide translation vertical tab programmatically?

I would like to hide the Translation vertical tab. I tried with $form['content_translation']['#access'] = FALSE; but it seems not working. How do I remove that vertical tab?
6
votes
1answer
45 views

Translating paths in routing.yml

How do you translate the path portion of a module route? For instance you have: module_name.my_route_name: path: '/path/to/content' defaults: _controller: \Drupal\module_name\Controller\...
2
votes
1answer
16 views

Drupal Content Admins for specific Language

For a new Project with Drupal 7 we have 4 different languages: IT, AT, EN, SP and for each language an Content Admin. We need a solution that the Content Admin see only Nodes of his language for ...
0
votes
0answers
10 views

Add Content Basic Page | Two Langauge selector drop down show

When we create basic page two drop down are visible header and as well correct location i need to remove to header drop down what should do can you please help me.
0
votes
1answer
21 views

How to translate a word in <a title (tpl)?

How to translate the word Menu ? t('Menu') (after class="tb-main-menu-button ...) doesn't work in this case. <?php if($menu_bar = render($page['menu_bar'])): ?> <!-- MAIN NAV --> <div ...
6
votes
1answer
35 views

How to translate plural strings with Drush?

If we want to translate a plural string in Drupal we can use the format_plural() function. If you are programming drush commands you can use the dt() function to translate strings, but if you want to ...
0
votes
1answer
15 views

“Term reference” for two language versions

I'm currently working on a Drupal's website for my client. We have a small issue related to new fields in "content types". I've created a new field with field type "Term reference". We're using ...
0
votes
1answer
24 views

A bug? Can't edit fields under “Manage fields” for a given content type after D7->D8 migration [closed]

I have a Drupal 8.1.6 all-core site (Only 1 contrib module - Admin_toolbar and it's not the source of the problem). At the start, the site was migrated from Drupal 7.44 to Drupal 8.1.3. The problem ...
1
vote
0answers
11 views

Links in view do not lead to current language content

I have a Drupal 7.50 site with menu and content on the left side and a list of nodes on the right side. The Menu has a language switcher. When language changes the links from the nodes on the right ...
1
vote
0answers
35 views

Multilingual + iso

The problem one is facing is that Drupal 7/8 does not seem to be able to determine a country from the locale i.e. the language. One needs to write custom code to link the country to a language. Or are ...
0
votes
2answers
36 views

Site adds “he” to the URLs of all the Hebrew nodes automatically

All the nodes of my Hebrew site using Drupal 8 have this problem: Their address is similar to www.example.com/he/node/1, instead of what I was used to in Drupal 6+7 that was www.example.com/node/1. ...
2
votes
1answer
25 views

non-Gregorian dates and calendars

How can I use my native calander in drupal? I adjust drupal setting to my native language(fa) and native location (Asia/Theran) but month name and number of years also in Gregorian yet (however there ...
0
votes
0answers
32 views

How to always redirect to the same url with language prefix in Drupal 8?

I don't know if it's based on my install, but I have translated content and different language. What I'm trying to achieve is to always have the prefix in my url. For now when I type www.exemple.com ...
0
votes
0answers
56 views

Translating .install files

I have a .install file that is used when installing a custom module. I am also utilizing the Password Policy module. In that .install file I create a default password policy that is used across the ...
1
vote
1answer
59 views

Why is an empty field on translated taxonomy term showing default language value?

I have a list of translated taxonomy terms (title, description, link, image). Only some of the translated terms have a value in the link field. Set up as Entity translation My view pulls all fields ...
0
votes
0answers
20 views

How do I make a custom settings page translatable?

I have this custom settings page. function childbirth_date_menu(){ $items = array(); $items['admin/content/custom-setting-page'] = array( 'title' => 'Text', 'page callback' => '...
0
votes
0answers
12 views

Field collection fields are not appearing in tmgmt jobs page, other fields are displayed

Request translation for node has been set. But when we look at the page in Translation Management Tool (tmgmt) Jobs => Manage => View, shows only fields for translation and there is no field ...
2
votes
1answer
650 views

Deleting the “Language” module - a dangerous move?

Drupal 8 comes natively with a module called "Language". This module will be installed even in English websites. Uninstalling this module from UI or from drush pmu language --- is it a dangerous move?...
0
votes
2answers
40 views

Drupal 8 auto translates the system to Hebrew - Can one undo just the translation? [closed]

When I install A new Drupal 8 site, I must choose Hebrew so that the site would be RTL. Even if I'll install in English - The moment I will set Hebrew as the default language -- The system will start ...
5
votes
2answers
89 views

All “Administration Pages language” only English and admin menu Always in left side?

I added a RTL Language translation File (Like: Persian, Farsi) to my drupal 8 site and What I simply want is to All "Administration Pages language" (or backend Language) in english only and all admin ...
0
votes
0answers
7 views

Multilanguage site get “page not found” on not default language page

On an multilanguage website with [ro] as default language and [en] as secondary language, when the user enter www.example.com/about-us the website get an "page not found" error even if the "about-us" ...
-2
votes
0answers
37 views

Why does taxonomy schema structure differ between Drupal 8 and 7, then how to migrate Tax to Drupal 8?

I'm new to Drupal 8 but used to Drupal 7 when I try to migrate sql data from Drupal 7 site to Drupal 8' one it fails beacuase of the difference in structure of the table taxonomy_term_data Drupal 7 : ...
1
vote
1answer
24 views

How to get a field rendered with translated labels in Drupal 8?

I have a node. I render it like this: $render_controller = \Drupal::entityManager()->getViewBuilder($node->getEntityTypeId()); $render_output = $render_controller->view($node); echo \Drupal::service(...
1
vote
1answer
37 views

How do I include a custom module translation?

I have a Drupal 8 custom module (custom_module) and a custom_module-8.x-1.0.da.po file I added to sites/default/files/translations, but my translations are not getting Imported during the module ...
0
votes
1answer
21 views

The correct way to change the name of the language in the language switch

I try to change the name of language in language switcher from Chinese, Simplified(简体中文) to 中文. Changing name in admin/config/regional/language/edit/zh-hans affects only English. So the language ...
0
votes
0answers
24 views

How to get the original term name from the translation of the term? [duplicate]

I have a vocabulary which has the option Localize. Terms are common for all languages, but their name and description may be localized. set for its multilingual settings. I have 2 languages on the ...
0
votes
0answers
21 views

How can I make an entity reference to a translatable vocabulary show autocomplete results in the appropriate language

If I have an entity reference field on a node that uses a entity reference list view to create its list. How can I make it search and display results from the language currently being edited. (...
1
vote
1answer
28 views

Place the language switch in the main menu bar

The language switch appears on the bottom of the page. How can I move it to the main menu?
1
vote
1answer
29 views

How to list page translations next to the original in the same row?

D8's multilingual features are way above average compared to other major competing solutions, but I'm still missing one feature, or I don't know about it being implemented in D8. When I create ...
0
votes
1answer
30 views

Issue for translating button value (with AJAX callback)

I think I found a issue in Drupal 8. I set my form by attaching a ajax callback on a button (not submit, an HTML button). If I translated the value of the button, the Ajax request crash without ...
1
vote
1answer
27 views

What is the correct way to cache blocks by language?

I have a multilingual site with custom blocks in the right-hand menu - the content of which is generated dynamically through the build() function of BlockBase and which changes depending on the ...
1
vote
1answer
19 views

Taxonomy term not translated in edit node

I have a taxonomy called « categories » which have terms as listed below: Here the term “visuels” is the French version of “visuals” that has been translated. Now in the edit section of an article ...
0
votes
0answers
16 views

Programmatically alter link path

Some of my pages generated by views have paths containing commas. The Drupal 8 language switcher block encodes the characters in the url replacing commas with %2C. How can I write a preprocess ...
0
votes
0answers
10 views

How can I grant permission to translate specific nodes?

I have a custom access function in my module implementing hook_node_access. Ideally, users should also be able to add and edit translations for nodes that they may edit. Strangely, granting a ...
0
votes
2answers
80 views

Get current language in template

In drupal 7 Language is global variable we can access it simple with global $language; $language=$language->language; I want to know how we can access current language in twig file in drupal 8(...
0
votes
0answers
28 views

Translate view header

I add a simple text as view header but it is not exists in translatable text in admin/config/regional/translate. In Drupal 7 we could even translate unformulated views header and footer with the ...