Questions tagged [localization]

Locales and multi-lingual translations.

404 questions
8
votes
2 answers

Get locale entry.title in other languages

I'm trying to get the locale title (dutch: nl_nl) of an entry, in the english version of the same post. I want to do this so that on hover it shows the English title's Dutch version. Any help is appreciated!
Kitsune
  • 333
  • 2
  • 10
8
votes
2 answers

Locale Switch not Affecting News Index Template

So I have successfully set up two locales on my site, with a button to switch between, this works fine for all the sections that have the langauges set, but I cannot seem to get it to work for the news index template, my news feed. An individual…
simonsweeney
  • 399
  • 3
  • 9
7
votes
4 answers

Locale change based on geolocation

I've gotten locales up and running on a site, but would like it to automatically route to domain.com/no for norwegian visitors and domain.com/en for all other visitors. For the life of me, I seem incapable of finding a way using the built in…
Broxxi
  • 73
  • 4
6
votes
1 answer

How do I get the right entry data based on locale and slug?

My site has 2 locales: en_us and nl_nl. I also have a Structure section called Pages, which targets both locales. For each locale, the section has an Entry URL Format: en_us: en/{slug} nl_nl: nl/{slug} The Entry Template setting for the section is…
Low
  • 537
  • 4
  • 13
5
votes
2 answers

Locales sub directories on Nginx

I'm trying to get a basic locals sub directory system working on Nginx: /entry - en local. /fr/entry - french translation. /it/entry ect.. Having read this knowledge base article and some other forum posts I'm still having difficulties with 404…
Darren
  • 433
  • 1
  • 4
  • 12
5
votes
1 answer

How can I localize cpEditUrl?

I use the following code to link to the CP from the front end: {% if entry.isEditable() %} Edit entry {% endif %} What do I have to add to link to the correct locale as it always jumps to the global locale…
bennobo
  • 115
  • 1
  • 5
5
votes
1 answer

Is there a way to have checkbox field labels translatable?

So I have a checkbox field in the new entry editor page. Attached image is an example of said checkbox. Just a standard checkbox field. Is there a way for these checkboxes to be translatable? I'm redisplaying these checkboxes again in the front-end…
bert_teng
  • 75
  • 6
4
votes
1 answer

Retrieving an entry by ID in ALL locales

I've been looking at How can I build a language switcher? but I don't to hit the DB for each entry in the loop, just to get the entry's localised slug. However I can't see a way to get an entry by ID with anything other than the current or a…
Russ Back
  • 1,503
  • 13
  • 26
4
votes
1 answer

Fetching localized globals?

I have a site that is mixed English and Chinese. I've properly set up the locale to include Chinese as a locale, and have put Chinese translations for my fields in place. That all works. However, the site isn't one where you'll pick Chinese or…
andrew.welch
  • 11,551
  • 22
  • 31
4
votes
2 answers

Is it possible to manage language translations without directly accessing the PHP translations file?

It is beautifully described in the docs how to translate static text using translation files. As the client has no access to that file and managing a php array is not what I want them to do, I am looking for a way to make edits to the translation…
carlcs
  • 36,220
  • 5
  • 62
  • 139
4
votes
1 answer

Override admin local name

I changed the language locale to Hungarian, but the translation for the singles looks a bit funny. Is there an easy way to override it with my version? Singles are translated to "Egyedülállók" but that 99% of the time here means a single person and…
Tibor Szasz
  • 356
  • 1
  • 9
4
votes
1 answer

Can locales be used to switch layouts?

In my particular case I need to be able to switch the layout that the template extends. Is this possible to do using locales?
Ian Young
  • 584
  • 3
  • 9
4
votes
1 answer

Problems with channel and locales

So I'm setting up a multi-lingual site for the first time, and I'm having some problems with the urls. I followed the guide, step by step. I've set up the siteUrl in general.php: 'DEV' => array( 'devMode' => true, 'siteUrl' => array( …
peirix
  • 431
  • 4
  • 23
3
votes
3 answers

How do I have my control panel in English but my site locale to Dutch?

I prefer my cp in English but I've noticed that it also sets the locale to "en_us" for the entire site. I need that locale to be "nl" since the site is in Dutch. Any idea how to achieve this?
erwinheiser
  • 850
  • 7
  • 15
3
votes
1 answer

Storing multilingual content that is used across sections

I'm new to Craft, but starting off with building a multilingual site. I wonder what is best practice for storing multilingual content that is used accross sections (i.e. site navigation headings, footer link text). I know about the static…
Genoil
  • 143
  • 5
1
2 3 4 5