Questions tagged [i18n-l10n]

Use it in questions about adapting software to different languages, regional differences, and requirements of a target market (locale).

Filter by
Sorted by
Tagged with
0
votes
1answer
6 views

I have a site that is translated in English and French - can't change “Home” link in menu

My entire Drupal 8 site has been translated except I can't find where to change the translation of the "Home" link. When the site is in French mode (with the /fr) all my menu items show the ...
1
vote
1answer
508 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?
0
votes
1answer
18 views

Custom e-mail translation in Drupal 8

I need to send some e-mails depending on some actions. These e-mails should be translated depending on the target user's preferred language. I've seen that the mail function has a language parameter, ...
6
votes
3answers
394 views

View display plugin “entity reference” not using translation

UPDATE: This bug was just fixed in Issue 2174633 and Drupal v8.9.0 will no longer have this problem. For some of my entity reference fields I'm using "Views: Filter by an entity reference views" ...
0
votes
2answers
597 views

XML sitemap in Multilingual site

How to configure xml sitemap for multi language site.For translation I am using i18n module and for xml sitemap. Now there are only one link show in NL site map and 26 in default language.
0
votes
2answers
168 views

How to add currency field?

With respect to the question, can anyone suggest a remedy for the same. How can I create a field for currency(with selecting currency and text field to enter the amount) considering the fact that ...
14
votes
2answers
3k views

Multilingual content and single language admin interface

I want my site's content to be multi-lingual. I have a language switcher that can toggle between both the English and Spanish translations of a page. I want the administrative interface to always be ...
0
votes
1answer
540 views

Programmatically translate taxonomy terms

I have a vocabulary of taxonomy terms I get through taxonomy_term_load($tid); and displays in views page. How do I get and display the terms depending on the user's language?
1
vote
1answer
488 views

Reorganize Language Switcher based on Country/Region

I'm working on a site with 34+ languages and will likely be expanding to more. With this many countries, a simple drop-down list can be difficult for usability. I would like to customize the language ...
0
votes
1answer
510 views

Permission for translating menu items via the menu config screen

I have a multi language Drupal site, Using i18n and the entity translation approach. Translating menu items from an node works well, but not all the menu items are driven by the nodes. Now as user/1, ...
0
votes
1answer
51 views

How do I create and apply a configuration schema for an existing custom module?

I have a custom module, already running for a longer while, but I did not take into account that the configuration would have to support translation. I have had no config/schema/module_name.schema.yml ...
1
vote
1answer
784 views

How to get taxonomy translated when creating a new node in a different language than the interfaces?

Configuration: I set up a multilingual site with Multilingual support: Enabled, with translation so I'm creating a new node for each language. The taxonomy term is set up with the Translation mode: ...
0
votes
2answers
47 views

How can I add paragraphs to a translated node?

I have a problem with the Paragraphs module and translation. I'm using Drupal 8.7.7 and Paragraphs 8.x-1.9. When I add a translation to a node with a paragraphs field (unlimited), I can only ...
1
vote
2answers
556 views

Default language wrong on front page

I've got two langagues enabled on a Drupal 7 test site, English (set to default in admin/config/regional/language) and Finnish. Under 'Detection and Selection' URL and Default are checked, and URL is ...
2
votes
1answer
592 views

Language switcher shows wrong language on front page after detection by browser settings

Content and interface are displayed correctly but the language switcher shows the default language when the language negotiation is set to these options: URL (language prefix) Browser Standard Means:...
0
votes
0answers
19 views

Language links are not working

I'm creating links for language in the main navigation menu. I have four languages configured in my site with content for each one. The default language is italian and whenever I save a new link for ...
0
votes
2answers
534 views

Translation for node references not working properly

I have two content types: product feature and product. Both can be translated. If I create English product and assign many product features (by node reference inside field collection) and then create ...
0
votes
1answer
15 views

Entity without translation

I want to make entity in Drupal 8 called cash that store only numeric value (integer or float). I think, that entity not need translation. Is it possible for us to create custom entity without ...
1
vote
1answer
641 views

Webform Localization does not work

I have downloaded the Webform Localization module from Drupal.org, but it is not working to translate form, and I want to keep a single webform across all nodes. How can I do that?
1
vote
1answer
38 views

How can I get translated path aliases for a custom language switcher?

The Drupal 8 standard "Language switcher" dropdown does not give me what I need. What I need is to break everything apart into groups and subgroups, in a div, and have custom text for each Language, ...
3
votes
1answer
762 views

bulk node translation

We have a lot of languages on the site and a node needs to be translated in every one of them. We create the node in English and then some people translate the content to their language. So when there ...
1
vote
1answer
812 views

Programmatically get menu links filtered by language

In Drupal 8, I'm trying to get my menu which has translated menu item filtered by a given language. So far, I was able to get my menu tree : $menu_parameters = $this->menuLinkTree->...
0
votes
1answer
575 views

Entity Translation: Translate breadcrumb

I'm having issues translating breadcrumb. Everything works, menu items, strings etc... a part from breadcrumb. I've tried hook_menu_breadcrumb_alter to reset the title with no success. How can I ...
1
vote
1answer
659 views

How to force Drupal to translate current path to another language?

How to get path to current node but of another language? Available languages: English (URL prefix: en) Polish (default, no URL prefix) Enabled detection methods: URL (by prefix) Session (parameter:...
0
votes
0answers
12 views

Entity Translate won't show translations on template overrides

I have set up entity translate and it lets me add the translations so they are stored in the DB. But when I click on the translated page, all I see is the orginal language which is English. So I these ...
5
votes
4answers
17k views

Get current language in template

In Drupal 7 the current language is a global variable we can access with global $language; $langcode = $language->language; I want to know how can we access the current language in a Twig file ...
1
vote
0answers
37 views

How to get rid of the “Ago” in a time format?

When translating to another language, a lot of things are in place, so much that most of translating goes with ease. However one thing seems very hard get done: getting rid of the "ago" in the format: ...
2
votes
0answers
39 views

How can I patch a node via REST in different languages?

I'm using the REST API to get my Drupal content into an app. This app has to be translated to at least 8 different languages, so we are using Crowdin as a translation service. I wrote a small module ...
0
votes
0answers
20 views

How can I provide module translations? [duplicate]

in Drupal 8 we have added some elements and created some new modules. These elements and modules were labeled in english. As on the picture, red marked elements are still in english, the others are in ...
0
votes
1answer
1k views

How to get the vocabulary terms for the current language

How do I programmatically get all the terms within a vocabulary for the current language? This is a similar question to Get translated term name, but not for a single term, but for the entire tree.
0
votes
1answer
496 views

Views pager labels not translated

I have a site (v8.4.2) with all core language modules enabled, 3 active languages, English is the default. The pager labels (e.g. "Last »") for my own Views are not translated although the string "...
3
votes
1answer
808 views

Entity Translation for custom entity

I've created a custom entity and in the next step, I would like to use the Entity Translation module to make the entity translatable. My entity is defined like this /** * Implements ...
0
votes
4answers
860 views

Translate homepage meta Title and description

I have a Multilingual Drupal 7 site using i18. But how do I get my homepage meta Title and description translated?
3
votes
2answers
4k views

How to translate field collection which has unlimited values?

My configuration: latest dev entity translation and field collection module + patch. I tried: 1. Entity translation is on just for taxonomy term and node, but not for field collection (it triggers ...
3
votes
2answers
1k views

How to translate the menu title?

Currently I am working on a multilingual website and have already a multilingual set-up. Now I have translated menu items and it is working great, however I also want the menu title to be translated. ...
0
votes
1answer
2k views

Search API and Facets API with multilingual taxonomy

I have some taxonomy terms and the settings look like this. All these terms have been translated. After indexing the content with Search API and Facets API, the facets are not shown with translation....
3
votes
1answer
764 views

How to translate a custom user role name?

I've added a few custom user roles with english names. I need to translate them to other languages now. What is the best way to do this? According to the user_roles function only "core provided" role ...
1
vote
1answer
24 views

Translatable image field gets replaced when adding content

I have added an image field with Translatable Content enabled. My content type has enabled translations too. But when I add an image in the translation, the english contents field get replaced with ...
0
votes
2answers
2k views

Make label translatable in Global: Custom Text field

I'm using Drupal 7 and I have a Global: Custom Text in my view <div class="myclass"> <h3>Label</h3> <div class="title">[title]</div> <div class="category">[...
0
votes
0answers
10 views

Do not show content in view for specific field value and current site language

I have a multilingual D7 site. I have a fairly complex language hierarchy setup with 10 languages set up besides the default English. We are using the Language Hierarchy module so that we can specify ...
0
votes
1answer
965 views

Getting a translated country name from an address field

I have an address field from which I'm getting a country code and then, using the address.country_repository service, checking the country's name. $full_country_list = \Drupal::service('address....
1
vote
1answer
23 views

How to render translated node body in two languages?

I use entity_translation to translate node body field, so in a fully loaded node object body is an array of 2 languages ('en' and 'ru'). For specific node type I would like to render body in both ...
4
votes
1answer
1k views

How to import nodes and their translations from a csv using Feeds?

Is there a way to provide the original and translated values of the title and the body in a csv for example, and the Feeds module to produce the translated nodes automatically (and synced with the ...
1
vote
2answers
903 views

How to translate the language switcher links

In Drupal 8.1 the language switcher (block can be placed in a region) shows the languages labels in English: English | German | French I want to translate it. Visiting mysite/de the label should be ...
0
votes
1answer
30 views

Error message after using Internalization

I installed Internalization module and made my website Turkish as default. Now I receive this error message
1
vote
1answer
987 views

Why I cannot get translated entities

I wrote service to get all necessary data for my page. Now I wanted to load them with translations. But whey I try, I got error: InvalidArgumentException: Invalid translation language (id of ...
2
votes
1answer
530 views

Can I have both Language and Country path prefixes?

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 ...
2
votes
3answers
2k views

How to get translated month labels

I think, this labels and its translations are available, but I don't know where. I found nothing in the "Translate Interface" seach. So here's my question: is there a way to get translated month ...
3
votes
3answers
3k views

Multilingual site, always use language path prefix (no bare URLs)

I have a Drupal 8 site with two languages, Japanese (default language) and English. By default, the default language pages are available at both / and /ja. For example, /about and /ja/about both go ...
0
votes
0answers
8 views

Saving a translated node overwrites the last saved URL aliases [duplicate]

In Drupal 7 I updated the node in english then alias update in english version which is right I updated the same node this time in french then alias updated in french and also updated in english ...