Questions tagged [localization]

Locales and multi-lingual translations.

47 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
226 views

Multi-locale is not working with routes

I have a localization problem where the routes are not showing up. I have a tried a routes file with the following code. return array( 'menu' => '_menu' ) And its working on the main language ...
2
votes
0answers
354 views

localization is NOT working

i'm running centos 6.6, nginx 1.7.7, mysql and php-fpm (i believe 5.5.3) and craft 2.4.2669. i enable a new language and let all the background tasks complete (the default data copied to the ...
1
vote
1answer
18 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 ...
1
vote
0answers
16 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 ...
1
vote
0answers
82 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
46 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
0answers
54 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
80 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
0answers
57 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
0answers
69 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
34 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
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
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 ...
1
vote
0answers
67 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
0answers
26 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
0answers
456 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
0answers
129 views

Set Shipping Address country dynamically depending on locale for multi-country website

I have a multi-country website that I am building with Craft Pro Commerce. I have set up locales for 5 countries. So, for the New Shipping Address section, I would like to have the country options ...
1
vote
0answers
51 views

List entries from different locales using localeEnabled

I have two locales (de, en) and a set of entries. Some have only the german locale enabled, some only the english one. Some have both enabled. Those entries have a status of "live". What I want to ...
1
vote
0answers
402 views

Duplicating multi-language entry

How can I duplicate an existing multi-language entry with all the translated content? When I choose 'Save as new items' when editing an entry, only the content in the language I selected is copied to ...
1
vote
0answers
72 views

Why does getUrl fail when using transforms on a translatable asset?

I have a project with the following code: {% if entry.filmPoster | length %} <img src="{{ entry.filmPoster.first().getUrl('filmPoster') }}" alt=""> {% elseif entry.locale('en_gb')....
1
vote
0answers
33 views

Is it possible to create a custom field listing all enabled locales?

We have a multilingual site with about 30 different locales and about 5 pages of content for each. We're using Craft as a content API for the editors to manage content. Some of those locales share ...
1
vote
0answers
36 views

What is the best way to make text that has html translatable?

I have a block of text I'd like to make translatable. Within that block of text there is a link. The following works: {{ "Lorem ipsum. <a href='{url}' target='_blank'>Aenean commodo ligula</...
1
vote
0answers
71 views

How can I disable automatic copy to new localized fields on first save of an entry?

Is there any way to stop this? It would be nice to stop this (for my purposes) and then tell the template to fallback to content from a certain locale if the current locale does not have content for a ...
1
vote
0answers
49 views

Possible to repopulate locale defaults?

When a locale is first created, it seems it receives all of the default locales content. Is it possible to have this happen for a specific field after the fact? I have a large matrix (with subtle ...
1
vote
0answers
118 views

How to seperate asset folders by locale?

I have a website where the client can add links to assets (pdf, doc, etc.) anywhere on a page. So I would like to avoid having a assetField on every template. I would like them to upload all assets in ...
0
votes
0answers
8 views

How to create a new site (locale: de-AT) based on another site (de) within same installation?

I manage a website with multiple languages. Each language has its own site and domain. Think: website.de and website.co.uk I have to add another site with different locale (de-AT) to the Craft CMS ...
0
votes
0answers
31 views

How can i get the current applied route in CraftCMS?

I'm using a dynamic route that loads a template. I'm on a multisite setup with a language switch in the header menu. To be able to switch between sites or languages, the dynamic routes need to have ...
0
votes
0answers
10 views

Stalled Task During Locale Activation

When attempting to enable a new locale on an existing Craft 2 site, the task is stalling out at the same point every time. It gets to step 3 which is Resaving entries and then the following PHP error ...
0
votes
0answers
36 views

How to get current site (locale) api / plugin

For my form plugin I'm using a global set of fields. These can be set in 2 languages default and en. Problem is whenever I try to output them I cant dynamically make them use the current site locale/...
0
votes
0answers
14 views

Character Limit incorrect for international characters

I've been running into errors importing specific entries in my custom module. Boils down to an issue with the Character Limit on the Plain Text fieldtype when importing international characters. It ...
0
votes
0answers
49 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
20 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
16 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 ...
0
votes
0answers
102 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
19 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'...
0
votes
0answers
21 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
57 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
19 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' => '...
0
votes
0answers
46 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 ...
0
votes
0answers
48 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 ...
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 ...
0
votes
0answers
88 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 ...
0
votes
0answers
181 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 ...
0
votes
0answers
103 views

Updating `{{ forms.dateField }}` value from GET variable

I want to use the built-in Craft field macros to show a date field in a plugin template for filtering. I can retrieve the submitted value on any submission (via GET) but how do I then prepopulate ...
0
votes
0answers
86 views

If an entry doesn't exist in a locale and returns a 404, how can I check if the entry exists in a different locale?

I'm trying to create a mechanism for informing users that a particular entry is not available in the selected language, and providing a link to read the article in an alternative language. Therefore, ...
0
votes
0answers
81 views

Locale migration …

Any thoughts on the best way (if at all) of bulk-migrating content within a site from one locale to another? We have a large(ish) site and want to streamline into a single locale. This means moving a ...
0
votes
0answers
324 views

Change the current locale

Can I change the current locale? I've set up a standard site, using CRAFT client version (one language). Apparently Craft installs the en_us as the primary language. Content is added (in Dutch) and ...