Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

2
votes
1answer
51 views

Not all fields of node are present in content

I've set up a custom content on my multilang site type with several fields that are all configured to be translatable. But when I try to theme that node I only habe a subset of the field available, ...
2
votes
1answer
25 views

After module installation, updating translations still at 0%

I installed Drupal 8.5.6, in French. It seemed to work well, apart from no CSS working, but I corrected by unchecking CSS aggregation in the performance settings. I decided to install some modules, ...
1
vote
1answer
20 views

{{ language }} variable not available in block template

We are trying to generate a language dependent link in a custom block we created though the UI and placed it into a region. If I {{ dump(language) }} in page.html.twig, I've got it there. But not in ...
0
votes
0answers
15 views

Strings are shown twice in the translation page

Strings are duplicated in Drupal 8. Do you have any suggestion on how to remove a string?
0
votes
0answers
15 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 ...
0
votes
1answer
24 views

Multilingual Paragraphs fields are not present in node content

Following these Instructions I set up a paragraph field in custom node type. The field is called field_content_sections and it holds the paragraph elements. Next to it I created another field, the ...
0
votes
1answer
31 views

How do I translate hard coded words in twig file

Is there a way to translate hard coded words in twig when selecting a language from the language dropdown? I have used the |t ({{ myword|t }}) function but it doesn't seem to be work when selecting ...
0
votes
0answers
9 views

Language drop down shows the node id in the front page

This is only applicable for the front page. When I click the language drop down and select a language from the front page, the redirected url shows the node id. (/ja/node/187). It should only show the ...
0
votes
0answers
21 views

Set taxonomy term as translation of a term in a different language

I have two existing taxonomy terms, in different languages. How do I set term A to be the translation of term B?
0
votes
0answers
15 views

Multiple items appearing in Workbench for the same node. When you add translated items

I am seeing multiple items in My Workbench when I only have 1 node and a translated version of that node. I installed a plain Lightning site (lightning-8.x-3.103) I disabled the 3 core moderation ...
1
vote
0answers
32 views

How to determine if view has translations and which ones

I have a view $view = \Drupal\views\Views::getView($view_id); How to determine if it has been translated into other available languages and which ones
0
votes
0answers
12 views

Per language menu item settings in node forms

I'm working on a drupal 8 website. On every node the admin can choose wether or not to show a node in the main menu, and where it should be placed. This works great with the menu settings node form ...
0
votes
1answer
18 views

Configuration translation is not saved

I'm working on a page where the backend needs to work in different languages. That's why I started translating individual labels in the configuration translation (/admin/config/regional/config-...
-1
votes
0answers
15 views

getPath() on null in Drupal\config_translation\ConfigNamesMapper (conflict with configuration translation module)

I am trying to install an old module (not maintained now) https://github.com/INsReady/drupal-commerce-stock Then I get this error message The website encountered an unexpected error. Please try ...
0
votes
0answers
17 views

Create a translation of a single, new paragraph

I've run into an issue where a new paragraph has been added to content that has old translations. When we received content back from out translation provider, it used the English version of this new ...
1
vote
1answer
19 views

query to retrieve all translations and nodes of a language that has been removed from the system?

I am experiencing an issue after a language has been removed from the system. Every time I go on the admin/content page on a drupal 8 site I get: Error: Call to a member function getId() on null ...
2
votes
2answers
289 views

How to stop using Hindi number in Arabic translation of products

When using English version of website, price is shown in Arabic number (common one). But when using Arabic version of website, price is shown in Hindi number. I don't want price to be shown in Hindi ...
0
votes
1answer
26 views

Is it possible to give to a specific user role the permission to create content only in a language?

I've a Drupal 8 site using 8 languages. The site is not a multi-domain. The Admin DE role should have only the permission to create nodes or translate nodes in German, but can view all node in all ...
0
votes
0answers
54 views

Translate blocks in page_manager variant

I am building a multilingual Drupal site. My 'static' pages are built using the page_manager module. I am using the core multilingual modules and the Translation Manager Tool. With these I can ...
0
votes
0answers
9 views

Automatically contribute interface translations (via cron) to localize.drupal.org

The i10n update module for Drupal 7 had the ability to upload translations to localize.drupal.org. Is there any possibility for achieving this in Drupal 8? Is there any API or module which does this? ...
2
votes
1answer
44 views

How to handle a node translation containing an entity reference with a managed field property

I have a custom field that contains a managed file. The node that the field is attached to and the field are enabled for translation. I create a piece of content, which defaults to the site default ...
0
votes
1answer
35 views

Trying to print translated field label/values to twig

I have been trying to figure out how I can print or display the translated values based on the current language of the page. I have tried using some of the following options {% trans %} and {% ...
1
vote
1answer
22 views

How to progragrammatically get NodeType translated value in D8?

Fetching node translation $node = Node::load($nid); $node->getTitle(); // returns title in en(default language). $translated_node = \Drupal::service('entity.repository')->...
1
vote
0answers
42 views

How to remove the word “ago”? [closed]

I use Drupal 8 in French and I have never managed to delete the word "ago" which means nothing in French. How to remove the word "ago" in drupal 8? When I created a duration since, drupal added "ago"...
1
vote
1answer
21 views

How to translate a custom module template file?

How do I translate a custom module theme file? function bonds_graph_theme($existing, $type, $theme, $path) { $items = array(); $items[BONDS_GRAPH_MODULE_NAME] = array( 'arguments' => ...
1
vote
1answer
46 views

Is it possible to synchronize publish status between translations?

Having 'Enable Translation' checked for a content type, is it possible to synchronize the publish status between all the translations in Drupal 8?
0
votes
0answers
24 views

How to change default language for a node translation?

I have a node with the original version in English and with a translation of this in french. I want to change the original language to be french and after it to delete English. I need to do this ...
0
votes
0answers
128 views

Views custom filter on list (text)

I have a "list(text)" field called field_languages storing the language of books in a commerce site. The books are products. I would like to create a view that list the books_display but displaying ...
0
votes
0answers
8 views

drupal commerce and books

I am deploying a drupal commerce website multilingual and I would like to create a view displaying the new arrivals, this is easy. Now I would like that, when I display a book (product_display) in ...
1
vote
1answer
58 views

Preprocess Language Switcher in D8

I'm trying to modify the output of the language switcher block to make the output more inline with other menu styles on my site. However, I can't figure out how to modify the output. I'm attempting ...
1
vote
1answer
30 views

Restrict language based content editing for nodes and blocks

I am running a D7 multi-language site. I am looking for a solution to restrict node AND block editing for english language, only. The editor should not be allowed to edit french content. How can ...
0
votes
0answers
12 views

Language specific node after updation redirects to /node/xyz instead of lang/alias on Drupal 8.5.3

Here are the steps . Load the page in browser mydomain.com/eu/custom-page Click on contextual edit button which opens the drupal editing interface. Make updates on custom-page node. Save and Publish ...
-1
votes
1answer
33 views

how can i make a twig node path variable multilingual compatible in a view template?

I have not found the path field in a view so i have added in my template for views_view_fields. <div class="cell small-12 event__link"> {{ fields.view_node.content }} </div> This ...
0
votes
1answer
14 views

Can I use I18N or another module to house regional variations of a site in a single installation?

I have a large build coming up and am planning to attack it in Drupal 8. The client will have three regional variations of their site, a .com, a .co.uk, and a .es. The goal is for them to look like ...
0
votes
0answers
20 views

How to translate file field from a plugin block?

I have generated a simple plugin block with Drupal Console. I have added a managed file field during the generation process. Then I would like to translate this block. Unfortunately, this block does ...
0
votes
0answers
38 views

Drupal 8 Change langcode of all nodes

How can i change the langcode of all nodes? I have tried UPDATE node SET langcode='und' But it still sais 'English' on node edit.
2
votes
2answers
60 views

View: Link to content is always rendering in the default language

I have a View that is list of a content type using fields. (I am also using a Relationship and a Contextual Filter, btw.) One of those fields is "link to content". The content type is translatable. ...
0
votes
1answer
25 views

Redirect .com domain to .dk/en

I have a site; www.example.net. If you type www.example.com it redirects to www.example.net which is okay. On my site i have to different language prefixes /da and /en that you can switch between. ...
0
votes
1answer
52 views

Translate a JS string from interface translations doesn't work

I've a problem about string translations. I've built a multi-language site and in a custom module, in a JS file, I've used the function t() to make translatable some strings. These strings appear in /...
0
votes
0answers
25 views

Entity Translation broken

When I create a node with entity translation and choose a language the field body is wrong. language = 'en' field_body[und]. This only happens with a specific content type and with new ones, not ...
0
votes
2answers
28 views

relative path in blocks - multilingual - does not work

I'm using Drupal 7 with i18n modules. I have 6 languages on my site. The relative paths are working fine except for: the relative paths in blocks for the languages other than the default language. On ...
1
vote
1answer
28 views

Drupal 8 - Check if language prefix is present in url or not

Is there a way in the drupal 8 api to figure out if a language prefix is present in the url or not? Cause I need this information in order to display a custom language switcher if no prefix exists in ...
1
vote
0answers
16 views

Export all translatable string/content/fields/interface to a csv file or alternative

I know there is node contents and fields that need translation, interface element translations, views title/footer translations etc Is there an export for all these that can ideally later be ...
1
vote
2answers
83 views

How to create a view that display on the same row a field and its translation

Let say I have a content type with 2 fields that can be translated in a 2 languages site (EN-FR): the title and field_tobe_translated I would like to list (in a view) all nodes of this content type ...
0
votes
1answer
40 views

Language switcher using get language variable instead of prefix in Drupal 8

In Drupal 8 setting url with path prefix for language detection, works fine. But when I include the language switcher block included with Drupal, the links instead of using the language prefix, show ...
0
votes
0answers
43 views

Strings send for translation inside twig never displayed as translated

I have this code inside node.html.twig {{ 'string'|trans }}` I can see the string and translate it inside the UI but the string is never displayed I have also tried {% trans %} string {% ...
0
votes
0answers
14 views

Search engines show site in different language when only language on site is English (Default) and not sure what is causing it

Sorry in advance if I've overlooked something simple. As mentioned above, the default language is English for the site, but in various search engines including Google and Bing, the preview sentences ...
0
votes
0answers
18 views

Generating a URL with set base_url on multilingual site, ignores set base_url

I am working locally on a site that has two languages (Danish and English), these use domains to negotiate the language to display. I want to create a url from a custom route, where I define a custom ...
0
votes
0answers
25 views

Translation removal and recreation

I need to enable paragraph translations for all my content types. Doing this though results in any content that has already got paragraphs added to them to lose those paragraphs but only on the ...
3
votes
1answer
38 views

Why do some webforms have their elements value in translation UI (/admin/config/regional/translate)?

I have enabled webform module on a Drupal 8 installation. For some reason, there are default webform templates such as "Donation" and "Contact Us" which have their elements values translated in the ...