Questions tagged [localization]

Locales and multi-lingual translations.

Filter by
Sorted by
Tagged with
1
vote
1answer
50 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
53 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:
1
vote
1answer
66 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
71 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
58 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
86 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
118 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
112 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
61 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
77 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
405 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
89 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
520 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
101 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
143 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
78 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
36 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
330 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
183 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
1answer
55 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
374 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
120 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
126 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
101 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
69 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
34 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
57 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
55 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
230 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
194 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
341 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, ...
1
vote
0answers
25 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
523 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
32 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
70 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
26 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 ...
2
votes
0answers
29 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 ...
1
vote
1answer
252 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. ...
4
votes
1answer
810 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 ...
4
votes
5answers
4k views

Craft 3 language switcher

Does anybody successfully implemented a language switch run Craft 3? Trying the Craft 2 variant slightly adjusted but still running into issues: Invalid site handle: nl <ul> {% set otherLocales ...
1
vote
0answers
476 views

Craft 3 Multisite: Template not found

I'm trying to set up a multisite with Craft 3, and the client wants a set up with URLs that look like foo.client.com, with foo.client.com/2018 and foo.client.com/2019. Right now, my index.php file ...
1
vote
1answer
161 views

How to make URLs translatable in Craft 3

I am trying to make the URLs translatable according to the language selected for the site.
1
vote
1answer
888 views

Craft 3 with Multi-Site: how to not set a primary site, or add a first segment to all primary site URLs?

I have a main domain, www.mycompany.com, which has several groups of sites, which are available in several languages: www.mycompany.com/international www.mycompany.com/sales/en www.mycompany.com/...
1
vote
1answer
48 views

Tag Localization: how to create a tag without translation fallback version?

I'm dealing with tag localization on an English/Spanish site and have figured out that if I create a new tag, both En and Es elements are created by default, which would be O.K. if I never had to ...
1
vote
2answers
218 views

phpdotenv with multi-lang Craft setup on MAMP

I inherited a Craft site which uses phpdotenv (which I'm unfamiliar with) and which I now have to make multi-lingual (https://craftcms.com/docs/localization-guide) with an added es and fr locale on ...
1
vote
2answers
45 views

Having trouble with Bilingual URLs

I'm in the midst of setting up a bilingual website. English and Welsh. I have set up the locales in my settings (en and cy_gb) My directories have the necessary folders for each language, with each ...
4
votes
2answers
5k views

Craft 3: how can I set dynamic Base URL in sites setting?

Sites localized versions are setup using Base URL like this: — http://{baseUrl}/en/ — http://{baseUrl}/fr/ But {baseUrl} variables are not transformed using craft.app.sites.getAllSites(). {% set ...
2
votes
1answer
269 views

Craft 3: how can I auto-redirect to a site version using the user IP?

I have set up multi-sites using several locales: — International Website — English — Local Website — French — Dutch — etc. If the user has a French or Dutch IP, it should be auto-...
2
votes
1answer
494 views

Craft 3: how can I set an ordered list of all sites, and set a display name different from the site name?

The Craft 3 multi-sites is very useful. However, I found the list dropdown while editing an entry confusing and awkward in my case. I have several sites group, each containing a localized version of ...
2
votes
1answer
57 views

Can you remove the `translatable` option to a matrix field without losing locale content?

One of our admins have mistakenly added the translatable option to an important matrix field. We were using this option to synchronise content blocks across multiple languages. This is the our main ...

1
2
3 4 5
8