Questions tagged [localization]

Locales and multi-lingual translations.

Filter by
Sorted by
Tagged with
1
vote
1answer
9 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
19 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
11 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
14 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
21 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
48 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
41 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
23 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
27 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
17 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
49 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
28 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
41 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
44 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
47 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
42 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
26 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
67 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
57 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
37 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
60 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
30 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
49 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
56 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
69 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
40 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
141 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
139 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
42 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
29 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
42 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
61 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
41 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
58 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 ...
0
votes
0answers
17 views

How to build a language switcher for Craft 3? [duplicate]

I have a Localization setup in Craft 3 for a two language site. URL structure: English - website.com/page (default) Russian - website.com/ru/page When switching between the two I guess I have to ...
1
vote
1answer
61 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
48 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
46 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
49 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
256 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
68 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
388 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
66 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 ...
3
votes
1answer
99 views

Is there some way to create sections inside static translations? (craft v3)

At the moment I'm converting a website from a different CMS to Craft v3. The 'old' CMS had a convenient way to set a hierarchy for static translations in yaml files so that we could split translations ...
1
vote
0answers
56 views

Access array from the static translation file

This is the scenario: I need the translations strings in both Twig and JS (For React). Of course I'm covered in the Twig part., and I don't want to maintain two different files (php and json). So I've ...
1
vote
0answers
31 views

Multilingual blog, but only for some entries in a section, otherwise default to English

My client has an English blog but wants a few of the posts to be available in German too. How would I set things up so that the German version of the blog shows the German version of a post where ...
1
vote
1answer
212 views

Get globals from other sites

How would I get the global variables associated to other sites? For example, in an instance where I have three websites under the group languages for the English, Spanish, and French versions. I have ...
1
vote
1answer
110 views

Group Sites by Groups

We have many country websites on different continents. In the CP we group the sites, where the group has the name of the continent. Now we want to group the sites in the templates in the same way. I ...