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
0answers
15 views

Back-office in English / Front office in other language [duplicate]

Is this possible the have the back-office of a drupal 8 website in English (for exemple) and the front office in one other language only ? I don't want my front office to be multilingual (with /fr ...
0
votes
0answers
7 views

Adding new paragraphs without altering translation with Lingotek

I'm having problems while translating with Lingotek, if I want to touch any translation to fix it's fine, but when I add a new paragraph for it to be on the translated page it needs to be "re-...
1
vote
1answer
23 views

Change sort order of SOURCE STRING list at User interface translation page to alphabetical instead of date created

At the User interface translation page (/admin/config/regional/translate) the SOURCE STRING list seems to be ordered by creation date/time (it is for strings I add). Is there a "good" (non-hackish) ...
0
votes
1answer
41 views

Render custom twig in a specific language

I need to specify the language, which the drupal renderer uses, when generating a custom render array. $renderArray = [ "#theme" => "DNMBE_email", "#body" => [ "#theme" => "...
-2
votes
0answers
24 views

I can't translate taxonomy term name and description

I want to translate my taxonomy "Discipline". I have enabled the translation. But on the translation page the labels show: Name (all languages) Description (all languages) And I don't know how to ...
0
votes
0answers
18 views

Migrating UI strings

Is there an automated migration for UI strings (Locale module) from Drupal 7 to Drupal 8? I have a Drupal 7 site in English and French. Some of the French strings used in the user interface have been ...
0
votes
2answers
26 views

How to check if a Vocabulary is translatable?

In Drupal Core, I found the following code: $entity instanceof TranslatableDataInterface && $entity->isTranslatable() But it looks like it is not working for the Taxonomy vocabularies
0
votes
0answers
7 views

How do I make Profile2 fields translatable?

A Drupal website I maintain uses the Profile2 module. The website is offered in two foreign languages (English and German), but I can't translate the profile information. After searching online, I ...
0
votes
0answers
12 views

Translatable Referenced Entity field as filter for View

I have a multilingual Drupal 8.7.10 site (English and Czech, in this case). Content types Article and Basic Page are translatable and both have some Entity reference field referencing some Media type....
0
votes
0answers
11 views

Translated taxonomies are not showing in the view

I have set up a multilingual site. I have translated the taxonomies but when I see the page in french the taxonomy are in English. I am using views to display the content in the table. you can visit ...
2
votes
2answers
55 views

Delete any path alias by language

We are running Drupal 8.8.5. I can see duplicate aliases when I look at /admin/config/search/path. Unfortunately, there are many duplicate aliases on our website with 6000 URLs. The /node/1 node has ...
0
votes
0answers
25 views

Why simple multilingual nodes migration from CSV doesn't work?

I have problem with very simple multilingual nodes migration from CSV in Drupal 8.8.5. First migration of English nodes pass without problem and errors. Importing original nodes for default content ...
0
votes
0answers
15 views

How to translate node programmatically with correct revision translation affected value?

I have a question about create node translation programmatically. First of all, the following is the database screenshot when we use drupal UI to create the translation. The ...
0
votes
1answer
27 views

Get interface translation LID (Locale Id?) using source string value

I'm using User interface translation in English to override system strings like Drupal 7's String Overrides module did. Works great. However, in my custom module, as I edit strings that run through ...
3
votes
1answer
59 views

Where do I fetch myself complete definition for a bundle?

I can fetch entity-type definition... $entityType = \Drupal::entityTypeManager() ->getDefinition($this->entityType); and I can fetch myself some of the bundle specific information... if ($...
0
votes
1answer
17 views

Message (from message stack) not translated into the preferred language of the recipient

Here is a code which can be pasted into devel/php (run php code) if the message template new_user_register exists with a user reference field called field_user_reference This message should be sent ...
0
votes
1answer
37 views

Language code and country code on the URL

I've been trying to achieve this: I have a multilingual site with 8 languages (en, fr, es, de, etc) and I want to make all those language available for all countries. I want Drupal to understand ...
0
votes
0answers
13 views

Translations page select all

On a node translations page, for example, /node/1/translations, there is a select all checkbox. Is there a need for this checkbox? I attached a screenshot so you can see what I'm seeing. I looked at ...
1
vote
1answer
14 views

View page not filtering content according to its language

I used devel to generate dummy content for a content type named recipe, and at the moment I have 10 recipes. 5 in English and 5 in Portuguese. I create a view(page view) that shows all the recipes ...
0
votes
0answers
7 views

Same word or sentence assigned into multiple domains; how to unify i.e. to have a single translation?

I'm facing an issue where same string is assigned to multiple domains/context (like 30) which do not differ in real life. Therefore I would like to have just one single translation: is it possible? ...
0
votes
0answers
29 views

How can I hide a page for a specific language?

I think I may be missing something obvious here. I need to completely hide a specific page for a specific language. Blocks have a language visibility setting put pages and menus do not have anything ...
1
vote
1answer
32 views

How do I detect the language using node alias

I know to get the current language of a website: $current_lang = \Drupal::languageManager()->getCurrentLanguage()->getId(); However, given that I have a node alias $alias = \Drupal::service('...
0
votes
1answer
56 views

Drupal 8 external content migration translation problem

I am trying to import content into Drupal 8 from an external source (not previous Drupal version). I have crawled the original site and placed the content in a database. I am then writing a custom ...
2
votes
1answer
291 views

How do I get translated label for a base field definition?

As mentioned here and here, there is a (complicated) way, to get can get a translated labels for bundle fields. use Drupal\field\Entity\FieldConfig; // Override language before loading field ...
1
vote
0answers
52 views

How do I programmatically translate a webform?

Is it possible to add translation for webform programatically in Drupal 8. We have a webform with more than 100 questions and radio options. It is very difficult to manually add translation each time ...
0
votes
0answers
11 views

Show all content referenced by another content, regardless of language

I have a "Movie" content type. It can be translated in 3 languages (fr/de/it). I also have an "Event" content type. It cannot be translated. It has a field that can reference a Movie (reference field)....
0
votes
1answer
38 views

How to translate the month name in a date select list field?

I have created a date field in user account fields. In manage form display, I have selected Select list as widget. I want to translate the month names which is displaying a select list. I checked it ...
1
vote
0answers
15 views

Use default language domain when editing translated content

I have a multi-lingual site setup that uses two domains: example.com (Primary/Default English domain) example.mx (Spanish translation) When editing translated content the user is forced to 'example....
0
votes
0answers
50 views

Translation of individual nodes on one page [duplicate]

Good afternoon. A question arose as follows: a few blocks are displayed on the page. A material type has been created for each. The site has multilingualism. Those. in the admin panel, you can ...
0
votes
0answers
15 views

Longer text doesn't translate in custom module

I have built a simple module that contains several modules. Each shows a page with some descriptive text, a form and a result table. The result table is populated using the input and some calculations ...
-1
votes
1answer
31 views

Drupal 8 how to translate Entity Types Lables?

Example: Are you sure you want to delete the @entity-type %label? I am able to translate the above string but @entity-type remains not translated like below, Haluatko varmasti poistaa content test? ...
-2
votes
1answer
28 views

Can we get the title by node ID in a template file?

Is it possible to retrieve the title by node ID, based on the interface language. I found drupal_url('/node/101', {absolute: true}). I wish to have a similar function that returns a title passing a ...
0
votes
0answers
63 views

how to get translated content in twig [views.view.unformatted]?

I am trying to get translated node title in my custom views-view-unformatted twig file. Here is the way I am retrieving my node title in twig file <div class="col-md-6 title"> {% for row ...
1
vote
1answer
42 views

How to enable configuration translation on custom module

I wrote a module where I using a form for editing my module's configs. My current goal to be able to translate some of my config field's values with configuration translation. I already implemented ...
1
vote
0answers
30 views

Different code when translation is added & another when save button is clicked

Is there a way for me to add a code when i first add a translation and a separate code when the save button is clicked. at the moment i am using form _alter to trigger my custom code when adding, My ...
0
votes
0answers
28 views

How can I hide/disable a specific menu item and a specific page (node) from all non-default languages?

Drupal 8 / Muli-Language Site: There is a specific page that we need to hide/disable along with its menu link if the current site language is not the default (English). How can this be done?
0
votes
0answers
17 views

Using Language selection page

I have a D8 site with 3 languages, everything is working fine, with the different languages in their own url path /es etc. I now want to add a splash page for users to select their choice of language. ...
1
vote
1answer
20 views

How to use non-english language in code

I'm italian and I've to develop a multilingual drupal site but english translations of strings (that should be added in code or templates) will be done in the future. Is there a way to use in code a ...
2
votes
1answer
28 views

Why would a multilingual site sometimes say “Save (this translation)” and other times say “Save (all translations)”?

We have a multilingual Drupal 8 site supporting 17 different languages and many more localized versions of those languages. I have been noticing that sometimes when I am editing a node it says "Save (...
0
votes
0answers
17 views

URL translations transposing between primary and secondary languages or just displaying wrong

We have a Drupal 8.7.10 site, multilingual (17 countries localized with 2 or more languages each). In the example I am attaching, we have a "people" page where we are listing people for our company ...
0
votes
0answers
15 views

Translate text in twig theme file [duplicate]

I'm using Drupal 8.8.1 and enabled translation core modules and it works fine for the content added through admin panel. However, I need to change the text which hard coded in html.twig files in my ...
1
vote
2answers
149 views

How do you enable translation for a field which was defined by a contrib module?

I am trying to enable translation for a field which was defined by a different module. The problem is this field does not list in the UI. When I checked the definition for this field in ...
0
votes
0answers
52 views

Translate view (multilingual module)

I have create view where it get an image banner from custom post type. Using multilingual module I could translate all nodes. except the view. any way in how to achieve this? I followed this answer ...
0
votes
0answers
32 views

Translate Paths by Theme - Path Prefix and URL's

I have a multi-theme install of Drupal 8. I am translating one theme's content but not another (unique content types). Theme two is triggered and loaded by the path containing a matched segment e.g. ...
1
vote
1answer
117 views

How to translate menu items with migrate?

I'm importing menu items from CSV using migrate, migrate_tools, migrate_plus and migrate_source_csv. This is an example of how I'm doing it for the original language: source: plugin: csv path: '...
1
vote
0answers
80 views

Fallback to default language when node not translated to current language

I set up a multilingual blog site with Drupal 8 (in English and Japanese). What I want to do is create a blog in two languages. The default language is English. Mostly, the author will be translating ...
3
votes
1answer
62 views

What is the purpose of Translation field in form display mode?

When editing the form display mode of a translatable content entity, there is a field called Translation in the UI. I thought this field would manage the weight/visibility of translation meta data ...
2
votes
2answers
86 views

Custom content entity: can't hide translation details in edit form

I've created a multi-lingual custom content entity using Drupal Console. The basic stuff with editing/viewing works fine, also multi-lingual. But for some reason, I can't hide the "Translation" ...
1
vote
1answer
76 views

I can't get the correct current language in node URLs

In D8, I have a website set up with 5 languages, using file path, like so: website.com/en/link website.com/en-us/link website.com/fr-ca/link etcetera. I've made a view of blogs and resources. It ...
0
votes
0answers
55 views

How to update a language's language code

I have a multilingual site with English as default language. The language code for English is currently en but I want to convert it to en-US. I thought about adding a new language with the correct ...

1
2 3 4 5
37