Questions tagged [language]
The language tag has no usage guidance.
66
questions
1
vote
1
answer
52
views
Default language is accessible without locale in URL
I have a website with 2 languages. Each language is setup as a different site.
Each site has its own base URL which is defined as follows: @defaultUrl/en and @defaultUrl/fr.
I have created a new ...
1
vote
2
answers
97
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
22
views
What happened to preferredLocale in craft3
I upgraded to craft 3 from craft 2. My users don't have access to the control panel so I created a plugin where they can select from the front end their preferredLocale to determine which language to ...
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
240
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
4
answers
267
views
Craft 4 doesn't support other languages yet?
After installing a fresh version of Craft 4, the setup didn't allow me to specify the site language fr-FR as it did with the previous version. I had to accept the default en-US.
I thought that I would ...
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
1
answer
102
views
Using a language cookie with Craft
I work on a large, complex site that uses a cookie banner to store a language cookie. We have 11 different languages on the site.
We use craft for only one part of our site, with our base URL for ...
1
vote
1
answer
137
views
Force specific language for user activation mail and edit localized email templates
I'm trying to figure out how to set the default language for new users and user activation emails. I have found the defaultCPLanguage config setting which does indeed change the default language of ...
1
vote
1
answer
54
views
Making custom changes to CP language
I want to change a few words in the CP (Craft 3). What's the best way to do it, without being overwritten by a Craft update if possible...?
I was thinking about creating my own language file, but can'...
1
vote
1
answer
60
views
How to display an asset (pdf) from both site languages on both sites?
How do I display an asset (PDF) from both site languages on both sites? I would like to offer both German and English versions of a PDF on both the English and German sites.
I now have {{ entry.PDF....
2
votes
1
answer
475
views
Filter for language when using graphQL
I try to use graphQL to get language specific entries from my Craft CMS. I (naively?) tried this:
query {
entries (section: "newsIntranet", language: "fr") {
title
...
1
vote
1
answer
400
views
Get entry by language in a module
I'm trying to get some auto translating done in a craft module. In order to do this I need to get the entry of another language in a save event. Is it possible to get this by language?
Event::on(
...
1
vote
2
answers
99
views
Change naming of sections in Craft Commerce CMS
Is it possible to change the name of the of 'Products' to 'Projects' & Variants to 'Pledges'? I would like to use the Commerce CMS as a base to start from but need to be able to change certain ...
1
vote
1
answer
37
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
1
answer
104
views
Custom translation file (Not using Locales/Multisite)
Is it possible to make Craft 3 load a custom translation/language file? Even if not using multisite or locales?
My use case for this is just to change the way certain things are said. E.g. 'Invalid ...
1
vote
0
answers
43
views
Override the language-part in URL and add a region (en-fr / fr-fr)
I ran into a problem one year ago, but our we changed the specifications and so it was not neccessary anymore(another question here commented).
One year later now, the issue is back, harder as before ...
1
vote
1
answer
91
views
Language Switcher with Users
I have the following setup for a language switcher. I have Member Directory pages which are using Users (rather than Entires or Categories). How can I update this to get it working on these pages?
{% ...
1
vote
1
answer
62
views
Using language specific variables inside section URL settings
When i use some kind of variable in url settings of section, it always uses default language version of this variable.
For example, blog has two languages, english (default) and german. If i use ...
1
vote
0
answers
148
views
Craft 3 Launguage Switcher by certain group
I'm working on the language switcher and have it working. The only thing is I want it to pull from group data-id=1 It's pulling from all sites because of the i18n to change the language name to it's ...
1
vote
1
answer
79
views
multi language - each in its own folder?
Craft looks VERY promising to me! Still try to figure out if it could be perfect for our new project, though.
Our website will be in English and German (accessible under ONE domain - see below). I ...
1
vote
1
answer
494
views
403 Error on homepage of second language
We are trying to setup a second language. We've gone through the steps and created a second website, we defined the base URL as @web/de for the second language (German).
The deeper sections are ...
1
vote
1
answer
59
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 ...
0
votes
1
answer
394
views
How to output <link rel="alternate"> for each language?
I can't work out how to output <link rel="alternate"> for each language variation?
Is there any easy way to do this please?
Many thanks!
4
votes
1
answer
1k
views
Getting full native language name in Craft 3 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 ...
1
vote
1
answer
186
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
1
answer
145
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 ...
2
votes
0
answers
70
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 ...
0
votes
0
answers
71
views
Is there a way to turn off a language in Craft Commerce?
I have a site that serves German content. Now we have an admin that wants to have the backend in English.
So I've added English in the locales. This works fine for standard Craft things.
But in ...
1
vote
2
answers
59
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 ...
2
votes
1
answer
329
views
Can entries be disabled by default for 2/3 of the languages on my website
I have a 3 language website that I made for a client.
The website is in Dutch, Japanese and English.
When my clients creates a new entry, most of the time they want to have the Japanese and English ...
1
vote
2
answers
2k
views
System language, can I change it after installation?
I have Craft on local (Pro edition) that was installed with French as the system language. Is there a way to change to another language (English for example) for the control panel? I want to change ...
1
vote
0
answers
63
views
Language Cookies Issues
Scenario 1: A language other than English is selected.
New website.com visits will be in that language.
Even after switching back to English, websites will continue to load in the previous language.
...
1
vote
1
answer
663
views
Get every slug from entry for each language
For the robot.txt file, I want to get every URI from the entries for every language. Right now it just gets the URI from one language.
{% set crawledEntries = craft.entries({
relatedTo: { ...
1
vote
1
answer
96
views
locale loop doesn't get correct path
I'm trying to loop on locales to get the path to the current entry, but for the other locales (for a language switcher).
Here is my code:
{% set locales = craft.i18n.getSiteLocales() %}
{% for ...
1
vote
2
answers
124
views
Output two date languages on the same page without localization
I'm trying to output a date like this for instance:
{{ now|date('l, j-m-Y') }}
This outputs the date in my standard language. I need it output on the same page in English too. Is this possible?
3
votes
1
answer
149
views
Multilinugual Import
I am currently using an import plugin to import csv data into a channel section and it works just fine. Now I want to import the entries in a second language. Does anyone have any experiences with ...
1
vote
1
answer
23
views
Assigned Files in entries won't get synced on localization
I've got an entry-type, which has images and sound-files assigned through an asset-field.
When i create an entry, those fields won't be synced in my other languages, even though the mark for "This ...
2
votes
1
answer
640
views
Control panel field name & instructions translations
I've installed a Craft Pro site with 3 locales: Dutch, French & English, but the people who are going to input data will speak those languages too, so I need to translate the instructions field in ...
3
votes
1
answer
1k
views
Is it possible to use set the locale manually in a template?
I've got a generic newsletter template. Now some of our newsletters are in Spanish. It's overkill and more complicated for the admins to bother with settings up different locales, so instead I'd like ...
3
votes
2
answers
541
views
Can I disable languages from the General Config Settings?
I started to develop my new Craft site in two languages (French & German). Once done here, I have to put the website online temporarily in one of these two languages (French).
So I turned off all ...
3
votes
1
answer
110
views
Multi-lingual site with a splash (language select screen) at the root
I'm trying to get something working and I keep breaking my internal links doing it.
Here's what I'd like:
public/index.html (this page would be the language select screen and can be dealt with ...
6
votes
1
answer
859
views
Can I choose a language for the translate filter?
So I've built a language switcher as per this answer.
I want the text for each link to be in the native language, for example I want the link to the English locale to say "Read this page in English" ...
0
votes
1
answer
154
views
craft.request.getQuery returns empty on multi lingual site
I have the strangest bug. I have a site with two languages, Norwegian and English. In my code i check for craft.request.getQuery('prodid'). Locally in Apache this works fine with both language URLs, ...
0
votes
0
answers
341
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 ...
1
vote
2
answers
415
views
Output postDate in a different language than CP
How to retrieve the postDate of an entry in a different language than the CP.
In the general config settings i have the following,
'defaultCpLanguage' => 'en'
But i would like to display the ...
2
votes
1
answer
679
views
Craft Translation Fallback
I disabled translation for Spanish and it returned 404 page.
I set all my fields to translatable and By default craft translations are empty.
How can I return English by default? Using Spanish ...
0
votes
2
answers
130
views
How do I proceed when I want to show another language when the actual language is deactivated?
I have two languages (German and French).
In my sections I have German enabled as default language. French is off by default.
My Problem is:
I always want to show content, even if the other ...
2
votes
1
answer
133
views
How cumbersome is the content admin with 6 different languages
Am considering Craft for multi lingual project that will use 6 languages including Arabic. Just how cumbersome does the admin of content become when localisation and translatable are required for ...