Questions tagged [localization]

Locales and multi-lingual translations.

Filter by
Sorted by
Tagged with
1 vote
1 answer
27 views

4.8.0 - How to avoid singles content to be duplicated accross all sites

How to avoid singles content to be duplicated accross all sites ? What are the best propagations rules in the single section and the fields ?
emilie zawadzki's user avatar
1 vote
1 answer
33 views

How to use the primary locale handle as a fallback in the url?

I'm working on a Craft 4 project with five languages set up as separate sites. The primary site is configured to use 'en-GB' as the language and 'en' as the handle. Currently, when I access the home ...
Mark Notton's user avatar
  • 2,337
0 votes
0 answers
9 views

Plugin that lets me "reset" second language to match primary language, per entry

I am running a multisite install with two languages: Norwegian and English. Sometimes I copy an existing entry to use as a template for the next entry. In those cases I would like to fill in the ...
nitech's user avatar
  • 679
0 votes
0 answers
39 views

Multilingual site - how to do continuous translation?

We are making a site multilingual. It will have multiple geographical target areas as well as multiple languages per location. How can we cause ourselves the least amount of pain when constructing the ...
nitech's user avatar
  • 679
1 vote
1 answer
114 views

Save matrix/neo field value programmatically only for one site/locale

During the sample content migration I save programmatically the matrix/neo field value in entry using saveElement method. In field settings is set "Only save blocks to the site they were created ...
Alex Kuzmin's user avatar
1 vote
2 answers
123 views

How to handle a single page that is a different language?

Our team want to create one or two landing pages that are translated and localized e.g. Spanish and Portuguese This won't be a full site translation, so it doesn't deserve a subdomain or subfolder, ...
Lee's user avatar
  • 173
0 votes
0 answers
46 views

Trouble with channel URLs and CSS files not pulling through - Craft CMS 4 Multisite

I'm building a multisite on Craft CMS 4 and I'm having trouble with channel URLs. At the moment I'm working locally and then pushing it to the hosting via github. I've created a folder for each site ...
George Bleasdale's user avatar
1 vote
1 answer
50 views

Save Entry form values as Draft to translated site versions on a single submit

I have an Entry field layout where only a few Plain Text fields are translatable. Users can edit these Entries from front-end, and I'm looking for the most efficient way to let them save the ...
Romain P.'s user avatar
  • 1,818
1 vote
1 answer
39 views

Shopify plugin support for multiple stores

With the Shopify plugin, is there a way (or is there a future plan) to support the addition of multiple stores? Thinking about a situation where a client has different Shopify stores for different ...
Jegra's user avatar
  • 81
1 vote
1 answer
98 views

GeoMate error when redirecting to browser language

I am using GeoMate to redirect users to their browser language. I built my config/geomate.php according to the doc: <?php return [ '*' => [ 'autoRedirectEnabled' => true, ...
Sandro's user avatar
  • 43
0 votes
1 answer
34 views

How to reference unique entries over different subsites and different groups?

We're investigating the use of headless CMSs for a health care and revalidation company. The website should consist of multiple subsites (specialized groups) which each have multiple localized content ...
Jeroen Boumans's user avatar
0 votes
2 answers
327 views

Get Entry Slug from specific Locale

I have a multilingual entry setup using different sites for each language. I want my assets sorted by slug, but since the slugs are different in each language, all assets are saved three times. My ...
Sandro's user avatar
  • 43
1 vote
0 answers
15 views

Multilingual setup with different content structure per language

We'd like to setup a multilingual site with a parallel structure but different content per language. The content will differ specifically in the matrix fields that there will be. For example, German &...
Jane's user avatar
  • 11
1 vote
1 answer
30 views

Craft 3, Multi site setup - Update title for entry 1 site only

My setup: Craft 3 installation with a multi-site setup. 3 languages, all enabled. I have a custom plugin with a custom element type, FooBar that extends the Element class and a custom FooBar field ...
Sean Delaney's user avatar
0 votes
2 answers
53 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 ...
JMKelley's user avatar
  • 1,396
1 vote
1 answer
59 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=&...
Hielke's user avatar
  • 81
2 votes
1 answer
181 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>...
hvs's user avatar
  • 283
0 votes
1 answer
141 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 ...
InanisAtheos's user avatar
1 vote
1 answer
253 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 ...
Thomas's user avatar
  • 133
1 vote
0 answers
162 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 ...
Henrik's user avatar
  • 425
2 votes
1 answer
35 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 ...
LessMore Creative Studio's user avatar
0 votes
1 answer
227 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 ...
tremby's user avatar
  • 165
1 vote
1 answer
118 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 ...
darylknight's user avatar
  • 3,290
1 vote
1 answer
83 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 ...
erwinheiser's user avatar
1 vote
1 answer
126 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 ...
weotch's user avatar
  • 155
1 vote
1 answer
131 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 (...
Philipp Roth's user avatar
0 votes
0 answers
45 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 - ...
Philipp Roth's user avatar
0 votes
0 answers
257 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 ...
Sander Lameco's user avatar
1 vote
1 answer
81 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 ...
Dimitri Hilverda's user avatar
0 votes
0 answers
82 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 ...
Gideon's user avatar
  • 1
2 votes
1 answer
745 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 ...
dustfeather's user avatar
1 vote
1 answer
170 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 ...
Stabilimenta's user avatar
0 votes
1 answer
170 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> ...
ChuckLean's user avatar
1 vote
1 answer
38 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 ...
Jas's user avatar
  • 11
1 vote
1 answer
175 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 ...
idix's user avatar
  • 165
2 votes
1 answer
804 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 ...
idix's user avatar
  • 165
1 vote
1 answer
67 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,...
Manuel González's user avatar
1 vote
1 answer
75 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 ...
Henrik's user avatar
  • 425
2 votes
1 answer
255 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:...
Marten Brosch's user avatar
1 vote
1 answer
38 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> ...
Nelson Nguyen's user avatar
1 vote
1 answer
52 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 ...
joomkit's user avatar
  • 2,014
2 votes
1 answer
661 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 ...
jishi's user avatar
  • 263
1 vote
1 answer
169 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 ...
Simon Davies's user avatar
0 votes
0 answers
70 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" ...
scandella's user avatar
1 vote
0 answers
43 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 ...
Kota.M's user avatar
  • 423
1 vote
1 answer
37 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 ...
Manuel González's user avatar
1 vote
1 answer
49 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 [ '...
tomkiss's user avatar
  • 43
1 vote
1 answer
345 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 ...
Bransin's user avatar
  • 117
1 vote
1 answer
84 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 ...
Max Stouten's user avatar
1 vote
1 answer
37 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 ...
Max Stouten's user avatar

1
2 3 4 5
9