# Enumerate Languages

**URL:** <https://forum.xojo.com/t/enumerate-languages/30142>\
**Category:** General\
**Created:** [March 5, 2016, 4:15am UTC](https://forum.xojo.com/t/enumerate-languages/30142 "2016-03-05T04:15:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derek\_Traxler](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Derek\_Traxler](https://forum.xojo.com/u/Derek_Traxler)\
**Post date:** [March 5, 2016, 4:15am UTC](https://forum.xojo.com/t/enumerate-languages/30142/1 "2016-03-05T04:15:41Z")

</div>

I’m looking at the eddies electronics example and see a string table with languages.

If I wanted a list box with each language in it, how would I implement this?

for each language in languages  
list1.addrow language  
next

Something like that?

---

<div class="post-metadata">

**Author:** ![Eli\_Ott](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/5f8ce5/32.png) [@Eli\_Ott](https://forum.xojo.com/u/Eli_Ott)\
**Post date:** [March 5, 2016, 7:54am UTC](https://forum.xojo.com/t/enumerate-languages/30142/2 "2016-03-05T07:54:44Z")

</div>

There is no “string table with languages”. These are constants with their translations (so called “dynamic string constants”).

You will need to add the languages manually to the listbox:

`List1.AddRow("English")
List1.AddRow("German")
...`

AFAIK you cannot use “dynamic string constants” to switch the language for the end user. The Xojo framework chooses the language on startup of your application by getting the current language chosen by the user in the system settings.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [March 5, 2016, 9:35am UTC](https://forum.xojo.com/t/enumerate-languages/30142/3 "2016-03-05T09:35:11Z")

</div>

- Create a constant
- Make it string
- Check the “Dynamic” box that appears
- In the central pane, click “+” to add a language and/or a platform

You can have different messages depending on system language, but also on platform. Terminology may vary on Mac and Windows. For instance “Preferences” on Mac and “Control Panels” on Windows.

Then for instance in a button caption field of the IDE, enter #myCaption (name of the constant preceded by #), and it will automagically display the proper text.

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [March 5, 2016, 11:28am UTC](https://forum.xojo.com/t/enumerate-languages/30142/4 "2016-03-05T11:28:59Z")

</div>

[See here for even more in-depth information about App Localization](http://developer.xojo.com/localization)

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:12pm UTC](https://forum.xojo.com/t/enumerate-languages/30142/5 "2020-10-29T18:12:59Z")

</div>


