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
1
vote
3answers
965 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
1answer
410 views

Redirect user to language other than default

So... i have set a drupal website with 2 languages, english (default) and portuguese. At some point during development the client asked me to change the default language to portuguese but as i've read ...
0
votes
1answer
52 views

Programmatically add a translation with proper content moderation state

I am trying to add a node translation programmatically when a node is created (using hook_ENTITY_TYPE_insert). My code works fine except that the translation doesn't really have a content moderation ...
1
vote
2answers
452 views

Panels block title translation

I use blocks in a panel with Drupal 8. With view generated blocks there are no problems: The block titles are translated accordingly to the view settings. With custom blocks, it appears to be ...
2
votes
1answer
362 views

How to make the commerce_kickstart distribution fully multilingual?

I just downloaded and installed the Commerce Kickstart 7.x-2.0-rc1 distribution. Now I'm in the process of making it fully multilingual. I have no problem with the products. But I don't know how ...
0
votes
1answer
458 views

hreflang links added to page source without translation

When Interface Translation module is enabled in Drupal 8, I get hreflang links to ALL languages on the site for every page view sourse, no matter if the content is translated or not. If alternate ...
1
vote
1answer
27 views

Disable menu link for certain languages

I'm looking for a way to disable a single link in a menu for a certain language. From my understanding with similar issues, I'd like to activate translation for the menu link field Enabled since this ...
1
vote
1answer
43 views

How to allow user to manually change language when using “Browser” Detection as a detection option?

We have a site with multiple languages and have been using the Language Switch Dropdown menu to allow users to change languages on the site. But when we add "Browser | Language from the browser's ...
1
vote
1answer
381 views

Export translations of field labels

Drupal 7. I work on multi language site. I have a content type with entity translation fields. I've added translation to field labels and settings on my DEV copy of site and now I need to export and ...
1
vote
2answers
602 views

Unable to save content language configuration

My Drupal 8 website is multilingual and has many entity type bundles for nodes, taxonomy terms, paragraphs, media et cetera. This leads to a content language settings form (admin/config/regional/...
0
votes
1answer
827 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
1answer
390 views

Webform i18n doesn't work

We have installed and enabled: Webform 7.x-4.0-alpha6 Webform Localization 7.x-4.x-dev Internationalization 7.x-1.7 We have created several webforms (in English). When I look admin/config/regional/...
0
votes
1answer
430 views

showing translation of the related node in view

I have a node type called Match. Each match have two entity reference fields that points to two nodes that has the type of Team. I built a view and use the relationship to show the matches and the ...
0
votes
1answer
46 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
438 views

Is there a function to get the system path for the current language?

If I'm using multiple languages on the site with path prefixing, is there a quick way to get a system path for the current language? For example, if the current language is English, and I'm ...
3
votes
1answer
433 views

How to fallback to default language when listing nodes in a view if no translation is available

I have a list of projects, mostly in english, but some are translated in French. When i visit the French version of my website, how can I list all projects that are translated in French and if no ...
1
vote
2answers
206 views

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
370 views

Language switcher does not display the correct link to the default language path

I maintain a bilingual English/French website and the Language Switcher block is available on every page to allow the user to switch language. It works except on one particular taxonomy term page and ...
1
vote
1answer
34 views

How to print the paragraph field translation value in twig template

I am trying to access the nested paragraph field inside my twig template. {% for items in item['#paragraph'].get_aw_title_details%} {{ item.entity.field_award.value }} {% endfor %} When I am using ...
4
votes
0answers
33 views

What is the difference between Translation language, Translation source, and Original language?

Would anyone be able to explain to me what the difference is between "Original language", "Translation language", and "Translation source"? I think I have a pretty good ...
0
votes
0answers
369 views

How can I render the output in a certain language in a Twig template? [duplicate]

I am trying to override the titles of the nodes on my view page for Drupal 8. As my whole website is in English, but only on one view page I need to fetch the french translation of the titles, without ...
0
votes
2answers
515 views

Multiple domains with a language each

We've setup that english language points to an english domain, and for spanish we have a language. The spanish one is simply a symlink to the english code base. When translating nodes, I am being ...
3
votes
1answer
450 views

Adding translation files to install profile?

I am building a Drupal installation profile to make deployment of my site easier, ideally I would like to include the translation files to the install profile as well. But apart from adding the core ...
1
vote
1answer
520 views

How to 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
2answers
919 views

How can I get translation for a field of custom date

I am using the paragraphs module. I have a field which contains a date and time e.g. for events, which is added by an author. For the output I use a paragraph-twig-file and I have this: <div class=...
0
votes
0answers
26 views

New language defined and set to default, original language on config translation still remains English

I have installed languages and set one of them as default, but still numerous things, for example Translations for User account menu block (admin/structure/block/manage/bartik_account_menu/translate) ...
1
vote
1answer
789 views

How can I get the translated path to the current node?

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:...
6
votes
4answers
6k views

How can I set the language of nodes in bulk to existing content when making a site multilingual?

I'm making an existing site with a few thousand nodes multiligual. Source is English. How can I set all of the existing content to langauge:English instead of neutral all in one bulk command?
1
vote
1answer
18 views

Create link to node in specific language

So I need to create links to specific translations of a node but am having issues. This is my code: foreach($entities as $entity) { $urls[] = Url::fromRoute('entity.node.canonical', [ 'node' =&...
0
votes
2answers
492 views

Switch site language after IP to locale redirect

I have a Multilingual Drupal 7 website. using i18. I redirect my visitors based on IP address with IP to locale module. Now e.g. visitors from Holland (Dutch IP) are redirected to http://landberg.at/...
0
votes
1answer
576 views

List field: translated values are not translated

In my Drupal 8 project I have some list fields. For example maybe a field "project type" with the following key|values, coming from the original language German: 1 -> öffentliches Projekt 2 -> ...
0
votes
1answer
406 views

Translated dates in Views

I have a View which outputs the node creation date. But the site is multilingual. The problem is that I cannot choose a custom date format, as the Views just accepts one of a list. If I use a custom ...
0
votes
1answer
448 views

Translate “Link text” in View

I have the following text/token in one of my field's "Link text" field. "Download [file:name]" How do I translate "Download" Here is a screenshot: https://www.dropbox.com/s/lwquchykaymh20j/...
0
votes
1answer
564 views

View that link to content in other languages

I have a multilingual site where some content types are translated, and others will remain English only. I'd like to have lists of English content on other language sites. I've created a view that ...
1
vote
1answer
52 views

Editing a node deletes body content reproducibly if Locale module enabled

I am experiencing a pretty serious problem leading to data-loss in D7. Editing any existing node leads to empty body content and newly created nodes have no body content whatsoever. Update: The error ...
0
votes
2answers
409 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 ...
1
vote
2answers
622 views

Migrate Paragraphs from CSV

I am migrating Paragraphs from CSV file. I have Paragraph called Text with two fields -> title and body. The problem is that I would like to also migrate translations for them, which currently don't ...
0
votes
1answer
398 views

Views pager labels translation per context

Now that I finally have managed to have Views pagers appear, I'm wondering how I could change the strings collection (prev, next, first, last...) per View. That's because in a View that displays items ...
1
vote
1answer
422 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 ...
5
votes
3answers
2k views

How to only display languages in language switcher block where a translation exists?

I need to enable thousands of languages on my Drupal 7 site, but I do not want to incur the rendering overhead of creating the language switcher sidebar for every language. The default behavior for ...
1
vote
1answer
355 views

Rest Export View multilingual content taxonomy filter fails

I am going to create a REST API using Drupal 8 Rest Export with Views. It is working fine so far. I am showing some fields from content type article and added contextual filters for language and tags. ...
0
votes
1answer
614 views

How can I translate the checkout system?

I have been translating my Commerce Kickstart site with no ease although with success until now. Have translated content, taxonomy, product fields etc, following some tutorials and Drupal own ...
0
votes
2answers
338 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 ...
2
votes
1answer
537 views

entity_metadata_wrapper langcode always prints default language

I'm using entity_metadata_wrapper with entity translation to print fields in a template, but it always prints the default language when using a langcode in the options. $wrap = ...
1
vote
1answer
498 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 ...
4
votes
2answers
4k views

How to change default language for configuration entities?

I made a mistake during the development of my Drupal 8 site. Some time ago I changed the default language (to german) - but I continued to create the configuration entities (like fields and so on) in ...
4
votes
1answer
411 views

“Page not found” on translated page

I’m setting up a dual language site (English default / Chinese, Simplified) where Taxonomy translation mode is “Localize”. I modified the Taxonomy term in Views. I get results with preview in both ...
1
vote
1answer
415 views

URL aliases and Entity Translation (menu name replacement pattern)

I am using entity translation (Field translation) for my nodes, and set the menu name on each 'page'. The menu itself is arrange to basically have a duplicate tree in the same menu each with a ...
6
votes
2answers
524 views

Managing custom aliases on translated content

We have a Drupal 8 site with translated content, and using the Pathauto module. The issue we are running into is that when we un-check the "Generate automatic URL alias" on, say, the Chinese node, ...
2
votes
0answers
22 views

At creation time, why are shortcut titles translated, but menu link titles are not?

The idiom that the community points to for creating menu links usually looks like this (from \Drupal\Tests\language\Functional\LanguageSwitchingTest::testLanguageSessionSwitchLinks()): // Add a link ...

1
2 3 4 5
38