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

Questions tagged [localization]

Locales and multi-lingual translations.

0
votes
0answers
12 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
39 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
4 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
19 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
40 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 ...
0
votes
0answers
22 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
25 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
23 views

Craft 3.0 get current url's locale url [duplicate]

I have a craft 3.0 multi locale site set up and I'm wondering how I can take the current entry url and get the url of each equivalent locale of that entry? Basically, I have flag buttons on the top ...
0
votes
0answers
10 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
17 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
18 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 ...
0
votes
0answers
37 views

Craft 3 Multi Site - Redirect 'default' to first locale

So following this post: Craft 3 Multi-site with no "default" site My NGINX config now looks like this: server { listen 80; listen [::]:80; server_name craft-3.dev; root "/...
1
vote
0answers
19 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
24 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
62 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
28 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
108 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
33 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
33 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
16 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 ...
0
votes
0answers
16 views

Get all locale versions of an entry in Craft 3 [duplicate]

I'm trying to generate a list of URLs for all locale versions of each entry in several sections. In Craft 2 the following works but does not in Craft 3: {% set linkSections = ['productPages', '...
0
votes
0answers
12 views

Localization for asset folders (craft 2)

I've built a "documents" section with subfolders. The page is offered in 3 languages, that's why I made 3 asset sources for each language. Then I wrote a tiny plugin for grabbing the directory ...
0
votes
0answers
14 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 ...
0
votes
0answers
57 views

Craft 3 Multilanguage

I have a multisite/multilanguage Craft 3 CMS setup. how can I setup a search form for my primary site and the /en version. The HTML for my form is <form action="{{ url('search') }}">. My ...
1
vote
1answer
61 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
36 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 ...
0
votes
0answers
80 views

When using Multi-site, how can structures not “propagate entries across all enabled sites” like a channel?

Understanding Structures (see below), I'd like to use one with multi-site. However, structures "propagate entries across all enabled sites". Is there a way to use structures with unique entries for ...
0
votes
1answer
28 views

Creating a new locale on craft 2, entries won't load

I have an issue creating a new locale, I already have two set up 'en_gb' and 'en_au' and have added a third 'fr'. I have added the new locale to general.php: '.com' => array( 'siteUrl' => ...
1
vote
2answers
111 views

Way for clients to edit translation file(s) in control panel?

We have some navigation links being translated via the /translations folder but the client needs the ability to change them too... Is there a way to make the translations editable from the control ...
1
vote
1answer
47 views

Locale URL segment being duplicated, eg https://website.test/en/en/

Problem I have a problem on a local Valet setup: the locale URL segment is appearing twice in URLs. Eg from a page at URL of en/about/approach, {{ url('about/approach')}} outputs https://website....
1
vote
1answer
42 views

Dynamic link to same entry but in alternate language

I'm working on a multilingual website (Spanish and English, default is Spanish). I'm using the SEOmatic plugin, and I see that it generates this code: <link rel="alternate" hreflang="es" href="...
1
vote
1answer
33 views

Craft 2: Serve language / locale i18n according to user agent

As the official documentation does not give any hints on this: I am wondering how to serve the correct localization of my website according to the user’s language preference and/or browser/OS ...
0
votes
1answer
32 views

Craft 2: Locale throwing 404 in frontend

I have my two locales set up as described in the official documentation. I am able to translate my pages and fields in the CP as supposed to and have two versions ready in the backend, both with a ...
1
vote
0answers
23 views

Craft 2: New locale introduction not affecting old entries

I just introduced a new (2nd) locale to my site. It now seems I can easily set up translated versions for "single" and "channel" pages that I set up new. The old entries, which existed prior to ...
1
vote
1answer
36 views

Problem with switch statement in language picker - [Solved] [closed]

I made a language picker, it works in one language but not in other. I want to get the current page of other locale. {% set locale = craft.i18n.getCurrentLocale() %} {% switch locale %} {% case ...
2
votes
1answer
21 views

Sprout Email Plugin and Multilanguage. How to translate SubjectLine?

I use Sprout Email on a website to send transactional email (about 15 different types). The website gets now translated to 3 languages (DE/FR/EN). It is all fine, but of course, also the ...
1
vote
1answer
104 views

Translating Static Text in Craft3

I know that static text translations in still possible but where you put those translations has changed. According to the documentation the folder structure should look like this: translations/ en-...
0
votes
0answers
28 views

Does Craft Translate Custom Fields By Default Using The Translate Filter?

Based on my interpretation of the article here: https://craftcms.com/support/static-translations It sounds like custom database fields will be translated using the translate filter and you need to ...
0
votes
0answers
115 views

Confused by template and URI settings for multi-lingual sites

I have 2 x sites with base URLs set to @web/en/ and @web/de/ For client entries in a "Clients" section, I have a template at templates/clients/_entry.twig which I want to use for both sites. What ...
2
votes
1answer
169 views

Struggling with language switcher for Craft 3

I am using SEOmatic helper class to get localizedUrls which is making life much easier! I would like to only display the localizedurl if the current entry is enable on that site. Below is what I have, ...
0
votes
0answers
17 views

Accessing system emails from other locales

Craft's system Emails seem to be sent with the same locale that the user receiving the emails has set as their preference. That does not work well for us here in Wales - where the standard practice is ...
1
vote
0answers
17 views

Multi-language, how Craft determines the CopyFrom after adding website and Section

The question is admin (backend only), not Twig : Where to Manage "copy from" site when adding new website and add section to this website. The "Copyfrom" takes place in the background after ...
2
votes
1answer
208 views

Craft 3 multi-lingual multi-sites setup with shared assets

I have 2 almost identical websites. Both have almost the same layout but different colors (so different CSS file). They share most of the same templates and assets (images, css, js, videos, etc.). ...
1
vote
1answer
26 views

Not all assets copied over when copying an entry from admin panel

I have a site with multiple locales. I have some entries that will have some basic fields such as title, description, etc and also an asset field. The asset field is translatable so I could have an ...
1
vote
0answers
41 views

How to localize password emails and password change form?

Just wrapping up my first multi-language Craft 2.x site, and the last localization issue we're having is the password reset process. I can't find a way to localize: The email which is triggered by ...
1
vote
1answer
19 views

Can user group permissions be used to override entry section locale settings?

I have created a localized site with 9 locales for a client in craft v2.6. They are now requesting us to create a user group for each locale so they can assign editors for each of those regions. When ...
1
vote
0answers
20 views

Carry over asset field content to other locales

I have a site with English and French locales. One of the fields we have assigned to our entries is an asset field. Currently when an admin adds a new entry, all the English content will carry over ...
0
votes
0answers
48 views

Sometimes translation file are not loading in Craft 3

I am facing issue related to the translation file for admin. I have created translation folder at root of the Craft 3 and added nb-NO.php and added translations. Now when I set site language from ...
1
vote
1answer
124 views

Best practise to use translate in admin panel

I am using a lot of translation with the |t / |translate filter. But the client wants to be able to edit those translations in the admin panel. So, I thought about different ways to achieve that. ...
3
votes
1answer
365 views

Craft 3 Multi-site with no “default” site

I have setup a Craft 3 multi-site with the following configuration: But what I really want is: Additionally, I want to have a 'default' http://localhost:8888 so I can always redirect to /en or /es ...