Questions tagged [localization]

Locales and multi-lingual translations.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Feed me - Trouble importing table and matrix with translation

I'm trying to import entries to a chanell using Feed me but having some issues with table and with some multilingual texte in a matrix field. Craft edition & version Craft Pro 3.3.2 Feed Me 4....
0
votes
0answers
17 views

Craft 3 Multi-site with no “default” site AND where control panel login route remains intact and additional directories not necessary

Maybe one of you can help me out? I've tried setting up a multi-language site with no "default site" as per Craft 3 Multi-site with no "default" site. So far so good, except the control ...
0
votes
0answers
14 views

Handle bulk translation of content

I'm evaluating CraftCMS for a project and trying to wrap my head around how translations are supposed to work. From my understanding, there are two kind of translations: Static translation for ...
1
vote
1answer
14 views

Route to entry in Arabic not working but category route is OK

I have successfully managed to route Arabic categories to a custom template. The Arabic URLs appear RTL which is strange (and correct?), but I cannot get the Arabic single entry to pick up the ...
0
votes
0answers
23 views

URI is not a valid URI error after recent update

Has this old issue recurred in a very recent update: URI is not a valid URI Just a few weeks ago I imported Korean content using FeedMe just fine, I have a setting 'limitAutoSlugsToAscii' => false, ...
0
votes
0answers
15 views

How can i filter on site and locale in the element API

I have multiple sites and locales enabled. How can filter on entries only from a given site and locale? Here's what I have. As you can see I already have a the $site and $locale variables, but I don'...
1
vote
1answer
13 views

Incomplete localization of `{{ entry.postDate.diff(now)|duration }}`

In a Dutch site, when I output {{ entry.postDate.diff(now)|duration }}, the result is something like 5 dagen, 3 uren, 43 minuten, and 42 seconden. Why is the English "and" not localized? My ...
0
votes
0answers
17 views

How can I sync slugs within sites in the same Group?

I have a Craft site with approx. 13 Sites. They are grouped by language, e.g. German has Germany and Austria in it. Spanish has Spain and Mexico in it. I imported all content to the main groups ...
0
votes
0answers
36 views

How to sync/propagate entry titles in a site group?

I have created several site groups, e.g. English, Spanish and German. Within these are several sites and the fields are to translate per group. So within Spanish for example, all the content is the ...
0
votes
0answers
16 views

How do we eager load locales with criteria in eager loading?

I can eager load in element-api the site name in the criteria passed, but i cant find a way of getting the language locale id into the criteria. This works return [ 'resourceKey' => '...
1
vote
0answers
15 views

Locales with independent language and country

How might we use Craft to manage our locales, keeping our language and country logic independent? The desired scenario: No duplicate language entries: Spanish in Spain would be the same as Spanish in ...
0
votes
0answers
31 views

Craft 3 multi site random 404 error on other sites (localisation) except default

I'm having trouble with my multi site setup. The issue can be seen here As you can see, the page sometimes gives a 404 and sometimes shows the page. Most of the times it's the 404, but sometimes the ...
2
votes
2answers
57 views

Mutiple sites and locales

I'm trying to setup alternate locales for content across several sites. I have the following scenario: - Group siteA - siteA.com/product-1 - Group siteB - siteB.com/product-2 - siteB.com/fr/...
1
vote
1answer
54 views

Entry form with field translated accross multiple sites

I've got 2 sites, each with a locale (dutch - nl & french - fr). I've set up a frontend entry form that works nicely for all not translated fields, I am however struggling to get it to accept ...
0
votes
0answers
34 views

How can I copy the content of a site (multi-site)

I want to be able to copy the content of a site (within multi-site) to create another site with the same content. It looks like if I create a new site, I have to recreate all fields. I do want the ...
1
vote
1answer
29 views

Is there a way to auto-create a sections Site Settings and propagate when a new site is created?

My customer will have lots of sections and lots of entries in each, for each site. Over time they will add new language sites. When a new site is added, there are no sections or entries for it. So ...
0
votes
0answers
19 views

How could a non-translateable field be translated for just one page?

We will have many language sites for our client, most of them will be in English, and so do not need to be translated. Then a few will be (German, French, Spanish). The English sites can be the same ...
1
vote
1answer
53 views

Restrict a users permission to only edit 'translatable' fields on a specific site?

We would like to have a 'translators' user group, where the members can edit only the 'translatable' fields, but not the non translatable things (images, categories etc). May be i missed something, ...
2
votes
1answer
33 views

How to query entries written in a specific locale? (Craft 3)

In Craft 2 you used to be able to do something like {% set entries = craft.entries.section('something').locale('de') %} but .locale() has been removed and there's nothing similar in the docs that I ...
1
vote
1answer
46 views

Same site name in multiple languages

We have a site with multiple languages so I created a site for each language. I named these according to the language so, one is named "French", another "English" etc. Now in the backend this is all ...
1
vote
1answer
46 views

Localization - “not found” in CP on language selection

Folks: I'm creating a localized site on Craft2 and CraftCommerce. I have followed the instructions for creating a localized site but none of the content shows at the localized URL and the homepage ...
0
votes
0answers
65 views

Multi-site throwing a 404 — but only on staging server

I inherited a site and upgraded it from 2 » 3.1. The site is in both EN and ES. There's a button to toggle between languages and it works fine on my dev environment. site.co/en serves up English and ...
1
vote
1answer
45 views

Language Switcher with Users

I have the following setup for a language switcher. I have Member Directory pages which are using Users (rather than Entires or Categories). How can I update this to get it working on these pages? {% ...
1
vote
1answer
28 views

Using language specific variables inside section URL settings

When i use some kind of variable in url settings of section, it always uses default language version of this variable. For example, blog has two languages, english (default) and german. If i use ...
1
vote
2answers
71 views

If other languages are not defined show english

Is it possible to get the english content on the, for example, Spanish site if the Text for the specific language is not defined yet? I do not mean a redirect! The English version should be displayed ...
1
vote
1answer
64 views

Craft CMS 3 - Always load “en” translation file

I have 2 sites (fr and en), fr is default. In index.php, I have define('CRAFT_SITE', 'fr') and define('CRAFT_SITE', 'en') In templates, I'm using {{ 'Texte FR'|t }} tag. In /craft/translations/en/...
2
votes
1answer
41 views

Change translation format in Craft CMS

I'm trying to get my Craft translations to work with the translation management tool Phraseapp. The standard format for translation-files in Craft CMS looks like this: # de.php return [ '...
1
vote
1answer
69 views

Multi-Language Site but the Date should be always in English

with {{ block.timeLimit|date('M d Y H:i')}} i can get the real Date & Time in always the real Language from the Site. If the Page is German output is Dez, in English output is Dec. How can i set ...
1
vote
1answer
32 views

Translating checkbox labels

I'm trying to translate the labels for a global checkbox field in my front-end templates like in this post: Is there a way to have checkbox field labels translatable?. This looked promising but I can'...
2
votes
1answer
59 views

Does entry ID change with locale?

I have a condition that checks entry Id. The condition seems to not work for Japanese locale but works fine on English. I would think that entry ID remains the same irrespective of the locale. Please ...
1
vote
1answer
68 views

Craft 3 Multi Site - Have a related entries field relate to another site, but respect localization

I am trying build a hub of sorts using Craft 3. I want the main site to be the hub which manages most of the data, and then subsequent sites are built on top of that, relating where necessary so as to ...
1
vote
0answers
75 views

Craft 3 language switcher with same domain

Is it possible to create a multi language website in same domain? In the admin settings, I created a second site with the same domain, but with a different site language. templates/ ├── index.twig ...
1
vote
0answers
44 views

Correct Multisite MultiLanguage Approach

I am having a website with 4 languages and has two main sections B2B and B2C. So the final URLs will look like this: @web/b2b/de @web/b2b/ @web/de (b2c uses no indication in the link - is default) @...
1
vote
1answer
172 views

Translate labels in CP with Craft CMS 3

I was wondering if it was possible to translate the labels, like "Singles","Entries" in the CP I know it's possible with Craft 2, but I didn't find with Craft 3. Do you have any ideas? Thanks!
1
vote
1answer
189 views

403 Error on homepage of second language

We are trying to setup a second language. We've gone through the steps and created a second website, we defined the base URL as @web/de for the second language (German). The deeper sections are ...
1
vote
1answer
44 views

The Variable {{ siteUrl }} Produces Two /es/es/ On Multisite

I'm getting example.com/es/es for my Spanish site instead of the expected example.com/es when using the {{ siteUrl }} variable. The primary site is producing the expected example.com/ Any idea of ...
2
votes
1answer
51 views

Why does my entry language selection look different from examples?

All the examples look like this: Mine looks like the image below where you have to select the site from that top left dropdown and then there are some enabled things on the right:
0
votes
0answers
34 views

ElementAPI fetching categories' children not returning localized elements

I followed Brandon's explanation in this thread to fetch all categories' children with the ElementAPI. But when I add the locale to the criteria, I don't get the localized children elements. Do I ...
1
vote
1answer
45 views

Locales and links not working as intended

I have taken over a project and Im having a small problem with locales. It is running Craft 2.6.3016 A section has a locale “en” where the english URL format is “en/contact”, and the entry also have ...
1
vote
1answer
65 views

Setting up multiple category listing pages on site with multiple locales

I’m having trouble setting up an additional category listing page from the one I have set with the Category URI Format and Template settings in my Category Site Settings. Specifically, I’m having ...
1
vote
0answers
46 views

Can I partially translate a section?

I have a section called stories and a section called news. stories needs to have Russian translations So i set up multisite and Russian language and fields as translation method - for each language ...
1
vote
0answers
69 views

Rewrite locale urls on nginx, but not for registration links

I'm using this Gist to rewrite the urls on a localized website running on nginx. It's working fine, except for the account activation links. They are localized as well, but they shouldn't. I'm sure ...
1
vote
1answer
73 views

Entry translation differences Craft 2 and Craft 3

In the middle of a Craft 3 build and the client has requested locales like their Craft 2 multilingual site. I am confused by Craft 3 localisation. It appears I have to add a site as a language before ...
1
vote
1answer
64 views

Sending a custom email in the users prefered locale

Usecase: I'm sending out custom emails based on certain events to my users. These users have chosen a certain prefered locale in their profile settings and I'd like for those emails to be in that ...
1
vote
0answers
50 views

Idea for matrix alternative for multisite setup. Feedback needed!

We have a site that has relied heavily on the use of matrix fields to act as a content builder for several pages on our site. We are now in the process of localizing the content, and have set up ...
1
vote
1answer
61 views

table field - make one culumn translatable, other common for all languages

Lets say i have table field with product technical specification - two columns, one for feature name, one for feature value. Feature name (for example - "weight") needs to be translated across ...
3
votes
1answer
300 views

Getting full native language name in Craft3 language switcher

I'm porting across a multilingual project from Craft2 to Craft3 and have to rebuild the language switcher. I was previously using the .nativeName method but apparently this is deprecated. I've got a ...
2
votes
1answer
73 views

Craft 2 categories locale issue

I have a craft2 site running quite happily with 8 languages. I noticed recently that a dropdown selection of category entries is not working when the locale is changed to chinese (locale = 'zh'). So ...
2
votes
1answer
426 views

What is the difference between the Translation Methods when creating a new site

I am creating a new multi-lingual site and the documentation does not explain the difference between the options in the translation method dropdown. What is different for each of these and when is it ...
2
votes
1answer
80 views

Adding or overriding locales in Craft 3

I am looking for a way to add new locale files or override existing ones. Basically a Craft 3 version of this: https://craftcms.com/support/adding-additional-locales I've tried the way described ...