Questions tagged [localization]
Locales and multi-lingual translations.
402
questions
0
votes
0
answers
8
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 ...
0
votes
0
answers
31
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 ...
1
vote
1
answer
90
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 ...
1
vote
2
answers
98
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, ...
0
votes
0
answers
40
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 ...
1
vote
1
answer
46
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 ...
1
vote
1
answer
35
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 ...
1
vote
1
answer
84
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,
...
0
votes
1
answer
31
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 ...
0
votes
2
answers
244
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 ...
1
vote
0
answers
12
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 &...
1
vote
1
answer
27
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 ...
0
votes
2
answers
51
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 ...
1
vote
1
answer
54
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=&...
2
votes
1
answer
147
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>...
0
votes
1
answer
125
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 ...
1
vote
1
answer
200
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 ...
1
vote
0
answers
141
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 ...
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 ...
0
votes
1
answer
183
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 ...
1
vote
1
answer
97
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 ...
1
vote
1
answer
82
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 ...
1
vote
1
answer
108
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 ...
1
vote
1
answer
104
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 (...
0
votes
0
answers
42
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 - ...
0
votes
0
answers
250
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 ...
1
vote
1
answer
80
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 ...
0
votes
0
answers
80
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 ...
2
votes
1
answer
662
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 ...
1
vote
1
answer
163
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 ...
0
votes
1
answer
158
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> ...
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 ...
1
vote
1
answer
158
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 ...
2
votes
1
answer
711
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 ...
1
vote
1
answer
56
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,...
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
...
2
votes
1
answer
244
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:...
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>
...
1
vote
1
answer
49
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 ...
2
votes
1
answer
588
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 ...
1
vote
1
answer
155
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 ...
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" ...
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 ...
1
vote
1
answer
32
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 ...
1
vote
1
answer
44
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 [
'...
1
vote
1
answer
332
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 ...
1
vote
1
answer
81
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 ...
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 ...
2
votes
1
answer
239
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
1
vote
1
answer
93
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, ...