Questions tagged [localization]

Locales and multi-lingual translations.

Filter by
Sorted by
Tagged with
0 votes
2 answers
32 views

Shared Static Assets for Multilingual

I'm trying to do a multilingual site e.g. /nl /de though when browsing to these URL's all is working apart from the static images hosted in .../nl/web/img it seems to be looking for URL's still within ...
user avatar
  • 1,230
0 votes
1 answer
20 views

Way to translate days in CraftCMS 'Opening Hours'

Maybe I'm overlooking something here, but I can't find a way to translate the week day names. This is my template code: {% set storeHours = storeHoursGlob.storeHours.getRange(1) %} <div class=&...
user avatar
  • 61
0 votes
0 answers
15 views

Get previous site siteGroup

Is there a way to get the siteGroup of the previous url? I have a multiSite/multilanguage project. I want to be able to check the previous Url siteGroup and compare it with the current siteGroup
user avatar
0 votes
0 answers
11 views

FeedMe import matrix field with localized content overwrites other lang content

I have Craft setup with 2 sites in the same group and have assigned a language to each. I imported all content via FeedMe, configuring it to create new entries on the ITA site. Entries include a ...
user avatar
  • 141
2 votes
1 answer
41 views

Having issue with creating sites in different languages

I am trying to create the homepage of my company in several different languages. Here is what I did: Under Settings>Sites, I created a site for each language with a base URL Under Settings>...
user avatar
  • 283
0 votes
1 answer
26 views

Get the localized handle and slug for "current" section for constructing breadcrumbs

I'm trying to contruct breadcrumbs for entries under a specific section. This feels like such a "how-hard-could-it-possibly-be" type of question, but I've been at this for a lot more time ...
user avatar
1 vote
1 answer
34 views

Language prefix in URL with correct entry URIs

I never used Craft before and I'm trying to create a multi-language site (in headless mode) but am running into problems with adding the language to the URL. My goal is to have URLs that always start ...
user avatar
  • 113
0 votes
0 answers
62 views

How to keep logged in User on 1 Craft Multi Site, but with different domains

I have one multisite craft installation, where the different languages for the sites use different domains: en -> domain.com de -> otherdomain.com .. Users can log in via frontend. Now if users ...
user avatar
  • 319
2 votes
1 answer
26 views

Multi user setting in a multi language environment

I am building a multi-language site in a multi-users environment. For each user I want to assign several text fields that should be translatable for each language, similarly like in entries/categories ...
user avatar
0 votes
1 answer
44 views

Given a global, how to get a particular language's version of it?

I'm upgrading a legacy site from Craft 2 to Craft 3. It's very much one-error-at-a-time and I'm stuck currently at a particular component's template file. I have this legacy code: {% set ...
user avatar
  • 165
1 vote
1 answer
30 views

If a matrix field is set to "Only save blocks to the site they were created in", do the translation options for the sub-fields do anything?

Sanity check... If a matrix field is set to "Only save blocks to the site they were created in", do the translation options for the sub-fields in the blocks of that matrix field actually do ...
user avatar
  • 3,205
0 votes
0 answers
27 views

Exporting & importing text from the CMS to update specific language-versions of the site?

Question for people who manage websites in multiple languages: Our website is in 5 languages. We used the Acclaro plug-in to export / import bulk translations. Now we need to update some of text on ...
user avatar
1 vote
1 answer
78 views

Moving a site to a new group

Got a question regarding site groups and more specifically about the possible data loss. Scenario is as follows: I have a site A and site B in the same group. Client now wants both sites available in ...
user avatar
1 vote
1 answer
67 views

What does "Allow self relations" on Asset fields mean?

In the Advanced section of an Asset Field configuration, there is the "Allow self relations" checkbox. What does this do? I've noticed that when I have the Propagation Method of the field ...
user avatar
  • 155
1 vote
1 answer
46 views

global variable {{ siteUrl }} in multilingual sites

In multilingual sites the global variable {{ siteUrl }} should not point to the URL with "/de/" if it is included in the templates head section for pointing to a global js-file or css-file (...
user avatar
0 votes
0 answers
40 views

Localization for "Home" site (eg https://example.com/de" results in 403 — Forbidden

I have set up a multilingual site in Craft CMS and the localization (via url-slug eg. .../de/...) works on all pages. However, on the home site (index.twig) this leads to an error message "403 - ...
user avatar
0 votes
0 answers
129 views

Locale URL /en not working - No such file or directory (/public)

Some values have been anonimized and are marked with %value% I followed the steps for setting up a local Craft CMS using composer and have the default site running on %domain%.test. Now I've made a ...
user avatar
1 vote
1 answer
56 views

How to add tags to an entry per site basis. And then only get the tags for that site in the frontend

I have craft pro and have one tagGroup called Tags Then I created a Tag field called newsTag like this: When I add a tag for german, the tag is also created in the database for dutch and english, so ...
user avatar
0 votes
0 answers
58 views

Entry URLs are not returning URL with locale in the path

I set up 2 sites (locally) running Craft 3.6.7: English (Handle: english, Base URL: '/en/') German (Handle: german, Base URL: '/de/') I've made a blog section that is enabled for both languages with ...
user avatar
  • 1
2 votes
1 answer
358 views

How to programmatically translate an entry in craft 3

I'm trying to write a plugin that translate entries programmatically based on subsites that have different language setup. Normally what happens is this: you setup multi-site, set each sub-site as ...
user avatar
1 vote
1 answer
94 views

How to directly access translated variables by language

I have a localized, two language site (en and fr) that I have a translated global variable set for. My question is: is there a way on a Craft 3 template to directly access a translation of a variable ...
user avatar
0 votes
1 answer
90 views

404 Page for Multi-lingual Page

For my multi-lingual-Page (de + en) I've made a 404.html-File in my templates-Folder with a language-changer for html-content-output like {% if craft.app.language == 'de-CH' %}<p>Hallo</p> ...
user avatar
1 vote
1 answer
27 views

Display field content inside a matrix from a different locale

I am building a site with 2 different languages - English and Chinese. Is it possible to retrieve only one field inside a matrix in English while I am in Chinese site? But the rest of the matrix ...
user avatar
  • 11
1 vote
1 answer
69 views

How to translate a structure url

I'm working on a multilingual website where I have one structure called Products. Currently, this structure's URI format is configured like this: {parent.uri ?? section.handle}/{slug} Which returns ...
user avatar
  • 155
2 votes
1 answer
401 views

Site url is not generated correctly when using environment variables

I'm working on a multi-site setup (for a localized website). In my .env file, I have defined a SITE_BASE_URL variable. Then, in the control panel, I set up each site's base url with that environment ...
user avatar
  • 155
1 vote
1 answer
34 views

Admin panel not working without language code

I've migrated a website with CraftCms 2 from local to a pre-production server. Everything is working fine but, I don't know why, I only can go to the admin panel with locale code before /admin. I mean,...
user avatar
1 vote
1 answer
45 views

localized site - except home, every page gives me a 404

I have a newly published site, where the localization does not work properly. https://www.nomadenschaetze.com/de/ When i switch to english, it shows the right englisch homoepage. Now, when i click ...
user avatar
  • 319
2 votes
1 answer
123 views

How to configure the system messages <link> url?

we have got a multisite environment and have imported users with different preferred languages (de and en). Therefore we made a module, cause the feedme plugin doens't set the preferred language https:...
user avatar
1 vote
1 answer
35 views

Craft 2 new locale and dealing with root-relative links

Hi I am adding new locale which is jp and I have a huge problem with href tag. Our paragraph field have href links using relative link like this: <a href="/page_a"> page a</a> ...
user avatar
1 vote
1 answer
40 views

Translate icon appears but no translations exist

I have a site in development that i replicated from another project. The other project was multi lingual and had some fields that were translated. This new site does not require any translations but ...
user avatar
  • 1,900
1 vote
1 answer
300 views

Propagate entries manually between sites

I have a client that wants to setup a multilingual site, but for the purpose of this site they only want certain entries to be translated. If I setup sites that use a section which is configured to ...
user avatar
  • 213
1 vote
1 answer
86 views

Update entry title for all sites

I'm working on a Craft project that has 3 sites. The content for one section is pulled from an API using a console script which runs every 5 minutes. This has been working fine but I've discovered a ...
user avatar
0 votes
0 answers
69 views

Upgrading to 3.5 break multisite

Just upgraded to Craft 3.5+ and now all my non-primary site's pages are not found. All my english page (primary site is in french) returns a "Template not found". So "en/anypage" ...
user avatar
1 vote
0 answers
33 views

Translation filter in Sprout Email plugin

I would like to make a notification of Sprout Email plugin bilingual. However, in the body field, the translation filter does not work. The tag of {{ fieldname.label|t }} is not translated. How is it ...
user avatar
  • 391
1 vote
1 answer
30 views

Use locale not included in Craft

I have to develop a website under Craft CMS 2 and going to Locale Options I see I can add a language, but I need to use a language that is not included in the official codes for the representation of ...
user avatar
1 vote
1 answer
33 views

Using static translations for the primary site / site.php being ignored

I'm having trouble outputting static translations for the primary site, and only the primary site. Translations structure: translations en-US site.php site.php <?php return [ '...
user avatar
  • 33
1 vote
1 answer
193 views

Localization Section propagation settings, and related entry field setting "Manage relations on a per-site basis"

Craft 3.4.20. Site is running multiple localizations Sections: Blog Post Propagation method set to, "Save entries to all sites enabled for this section" Blog Category (Structure entry with ...
user avatar
  • 117
1 vote
1 answer
38 views

Channgel entry to disabled

Is it possible that when my user adds a new entry in a channel on the English site, it gets copied to the channel of my Belgian site, but this entry is set automatically to disabled? So my English ...
user avatar
1 vote
1 answer
29 views

Multilingual google problems

I’ve set up a multilingual craft site. My primary site is BE and base Url is set to / The two other ones are NL which base Url is set to /nl and LU which is set to /lu All the three website have en-US ...
user avatar
2 votes
1 answer
202 views

Is it possible to localize Freeform fields and labels?

Is it possible to localize labels and other params of Freeform form fields on the multilingual site? Thanks
user avatar
  • 83
1 vote
1 answer
83 views

Feed Me import from CSV ignores decimal point

I use Feed Me to import values from a .csv file into my entries. Since a day i have an issue i can't explain. I didn't change anything. Precisely, the issue concerns a number field. In the .csv file, ...
user avatar
  • 213
1 vote
1 answer
287 views

Implement hreflang with multi sites

I currently have multi site config. One site have 2 locales. My configuration like so: 'example.com' => array( 'siteUrl' => array( 'us_en' => 'https://www.example.com/', '...
user avatar
1 vote
1 answer
196 views

Get all URLs from a multisite installation

I have an multisite installation like this: www.example.com/animal www.example.uk/animal Each site has a configuration like so: 'example.com' => array( 'siteUrl' => array( ...
user avatar
0 votes
0 answers
18 views

Automatically replace strings in different language

We have sites for Germany and Switzerland that are pretty much identical but would like to cater to the spelling differences in Switzerland (namely replacing "ß" with "ss"). Is there any way to run ...
user avatar
  • 11
1 vote
1 answer
30 views

Identifying users and site permissions when logged in

If I'm logged in as a user in user Group A, how can I tell which site I am currently viewing? I want to be able to create a multilingual site switcher. But my setup is complex. I have Company A, ...
user avatar
  • 1,900
1 vote
1 answer
33 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 ...
user avatar
  • 11
0 votes
0 answers
176 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 ...
user avatar
  • 101
1 vote
2 answers
375 views

Static translations not working on Craft 3 since upgrade from Craft 2

I have upgraded from Craft2 to Craft3 and static translations no longer seem to work. I have created a folder at the same level as the "vendor" folder called "translations" and have got a folder ...
user avatar
  • 912
1 vote
1 answer
397 views

Craft 3 doesn't translate static strings

I am making a website with Craft 3 and I have some static text that needs to be translated. I followed Craft's documentation on it. I created my translations/fr/site.php file and use the {{ 'String'|...
user avatar
2 votes
1 answer
99 views

Multisite, second language Live Preview not working

I have an English site - https://dev.mysite.com and a Japanese site - https://dev.mysite.com/jp. Live preview works great for the English site, but the Japanese site has the following error: Mixed ...
user avatar
  • 76

1
2 3 4 5
8