# Translate checkboxes, select, … for end-users

**URL:** <https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666>\
**Category:** Questions\
**Tags:** v2\
**Created:** [November 3, 2016, 4:06pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666 "2016-11-03T16:06:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![damienfaivre](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/damienfaivre/32/3323_2.png) [@damienfaivre](https://forum.getkirby.com/u/damienfaivre)\
**Post date:** [November 3, 2016, 4:06pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666/1 "2016-11-03T16:06:26Z")

</div>

Hi guys,

Right after my first issue posted on this forum, here is my first question : Is it possible to translate the values of my select fields into different languages to be displayed on my website ?

If i’m correct, the following code only translates the PANEL options :

```
field:
label: check
type: checkboxes
options:
  a:
    en: this is an option
    fr: voici une option
  b:
    en: another one
    fr: une autre

```

What I want is to translate for the end user so when he sets the website in /en/ he reads “this is an option” and when he switches in /fr/ he sees “voici une option”

It’s been a while now that I’ve been looking for answers. The closest I got is this sentence from @texnixe :

> Note that this will not add a translation to the file, you can, however, translate the options in your language files.

I bet there is a simple solution… I apologies If I missed something obvious.

Thanks in advance for your help guys !

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 3, 2016, 4:27pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666/2 "2016-11-03T16:27:31Z")

</div>

You mean when outputting the options in the frontend? Your best bet is a sort of category map as described [here](https://getkirby.com/forum/archive/general/20141013/is-there-an-easy-way-to-get-the-label-of-checkboxes).

---

<div class="post-metadata">

**Author:** ![Targoran](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/targoran/32/733_2.png) [@Targoran](https://forum.getkirby.com/u/Targoran)\
**Post date:** [November 3, 2016, 4:34pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666/3 "2016-11-03T16:34:26Z")

</div>

If I understand you correctly, what you want to look into is [language variables](https://getkirby.com/docs/languages/variables).

It basically allows you to use variables in your template file that will change the content based on the selected language.

So in `/site/languages/en.php` you can do something like this:

```
l::set('submit', 'Submit');
l::set('cancel', 'Cancel');

```

and then in your template file you use it like this:

```php
<button><?= l::get('submit') ?></button>

```

---

<div class="post-metadata">

**Author:** ![damienfaivre](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/damienfaivre/32/3323_2.png) [@damienfaivre](https://forum.getkirby.com/u/damienfaivre)\
**Post date:** [November 3, 2016, 4:57pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666/4 "2016-11-03T16:57:43Z")

</div>

From what I saw Texnixe, your answer is the solution.

I was pretty sure it was something like that. I’ll try this ASAP  
Thanks Targoran for your answer too 😉

Cheers guys

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 3, 2016, 4:59pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666/5 "2016-11-03T16:59:48Z")

</div>

@Targoran is right, you can use language variables for that, it comes to the same.

---

<div class="post-metadata">

**Author:** ![flokosiol](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/flokosiol/32/468_2.png) [@flokosiol](https://forum.getkirby.com/u/flokosiol)\
**Post date:** [November 4, 2016, 12:58pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666/6 "2016-11-04T12:58:37Z")

</div>

There’s also the awesome [Architect](https://github.com/AugustMiller/kirby-architect) plugin by @AugustMiller which let you access blueprint data. You may want to have a look at the [field options section](https://github.com/AugustMiller/kirby-architect#get-all-options-for-a-field) on Github.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:54pm UTC](https://forum.getkirby.com/t/translate-checkboxes-select-for-end-users/5666/7 "2025-02-06T16:54:52Z")

</div>


