# Language problem - How to localize a game?

**URL:** <https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708>\
**Category:** Questions\
**Created:** [August 14, 2017, 7:49pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708 "2017-08-14T19:49:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr.kime](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dr.kime/32/5008_2.png) [@dr.kime](https://forum.defold.com/u/dr.kime)\
**Post date:** [August 14, 2017, 7:49pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/1 "2017-08-14T19:49:21Z")

</div>

Sup, guys!  
I’m using defold with a framework platformer creation klit. When I write dialoges in .lua files they appear only in English and I want to use some other language. Can you please help me to make it possible?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 14, 2017, 8:03pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/2 "2017-08-14T20:03:28Z")

</div>

Defold doesn’t provide a built in system for language localization. There’s many solutions and it really depends on the amount of text you have, if it’s mainly labels in game objects or gui nodes, different fonts etc.

I have one simple example of how to deal with language localization here: [publicexamples/examples/localization at master · britzl/publicexamples · GitHub](https://github.com/britzl/publicexamples/tree/master/examples/localization)

---

<div class="post-metadata">

**Author:** ![andreas.strangequest](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/andreas.strangequest/32/3622_2.png) [@andreas.strangequest](https://forum.defold.com/u/andreas.strangequest)\
**Post date:** [August 14, 2017, 8:04pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/3 "2017-08-14T20:04:57Z")

</div>

I can recommend [https://poeditor.com/](https://poeditor.com/) which is a great tool for localising text and exporting it to flexible fileformats. It has a great API to automate everything and it works fine with Defold.

---

<div class="post-metadata">

**Author:** ![dr.kime](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dr.kime/32/5008_2.png) [@dr.kime](https://forum.defold.com/u/dr.kime)\
**Post date:** [August 14, 2017, 8:36pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/4 "2017-08-14T20:36:31Z")

</div>

![](https://forum-defold-uploads.b-cdn.net/original/2X/5/5aa613c9701c08e5594c2be287417d9505b11ed6.png)

I don’t need localization, just change blie text to Russian language so it appears in a game (for now I have empty space when it’s Russian and ok when it’s English).

I’m sure your links are great, but they are for coders and I’m just using a tool to make a simple game with texts and need some fix to enable Russian here. If it’s real, it would be great if you give me a tip 😃

---

<div class="post-metadata">

**Author:** ![sergey.lerg](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sergey.lerg/32/3970_2.png) [@sergey.lerg](https://forum.defold.com/u/sergey.lerg)\
**Post date:** [August 14, 2017, 8:53pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/5 "2017-08-14T20:53:43Z")

</div>

You should add Russian characters into the font that you use to display the texts. It’s a bitmap font, by default only English characters are rendered.

---

<div class="post-metadata">

**Author:** ![dr.kime](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dr.kime/32/5008_2.png) [@dr.kime](https://forum.defold.com/u/dr.kime)\
**Post date:** [August 14, 2017, 8:59pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/6 "2017-08-14T20:59:52Z")

</div>

> [@sergey.lerg](#):
>
> bitmap font

Yep, I found it and it has russian caracters and framework files use exactly that font, do I don’t know why it doesn’t work.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 14, 2017, 9:00pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/7 "2017-08-14T21:00:37Z")

</div>

> [@sergey.lerg](#):
>
> You should add Russian characters into the font that you use to display the texts. It’s a bitmap font, by default only English characters are rendered.

Yes, this is most likely it if nothing shows when you use strings containing Russian. A font will by default include the standard ASCII character set. There’s a field where you can define additional characters such as currency signs or language specific characters. For Cyrillic and others you need to check the all\_chars checkbox. Read more in the Font manual.

---

<div class="post-metadata">

**Author:** ![dr.kime](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dr.kime/32/5008_2.png) [@dr.kime](https://forum.defold.com/u/dr.kime)\
**Post date:** [August 14, 2017, 9:08pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/8 "2017-08-14T21:08:20Z")

</div>

That font had Russian characters, also I tried to replace font with some others which have those caracters and no result.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 15, 2017, 9:02am UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/9 "2017-08-15T09:02:35Z")

</div>

And if you create a text node or a label and assign it the font and hard code some Russian characters into the text field does the characters show or not?

---

<div class="post-metadata">

**Author:** ![corunethron](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/corunethron/32/9521_2.png) [@corunethron](https://forum.defold.com/u/corunethron)\
**Post date:** [July 22, 2018, 3:52pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/10 "2018-07-22T15:52:46Z")

</div>

Also unable to add Cyrillic glyphs.

After adding some text in “Extra Characters” field, there are no glyphs added to bitmap font:

 ![Screenshot_5](https://forum-defold-uploads.b-cdn.net/original/2X/e/eec4a803d6f35cad8824b51e5c112af68905f1bf.png)

When checking “All Chars” checkbox - some additional glyphs appears in bitmap font, but they are useless for me:

 ![Screenshot_6](https://forum-defold-uploads.b-cdn.net/original/2X/5/584c86d31f9b15e1a2adb101d1e9bd24619d9b1b.png)

I’ve tryed some different fonts in \*.ttf and \*.otf formats, and double checked, that all of them actually contain Cyrillic glyphs.

I think, that it’s somehow related to codepages. Can we actually use utf-8 like scheme, to get more than 256 bitmap glyphs from our font?

Just in case, here are some cyrillic text to copy-paste for testing: “БЭЙДЖбэйдж”

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [July 22, 2018, 4:31pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/11 "2018-07-22T16:31:15Z")

</div>

The glyphs won’t show up in the preview but should show up if the use the font in the GUI text nodes or labels.

---

<div class="post-metadata">

**Author:** ![corunethron](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/corunethron/32/9521_2.png) [@corunethron](https://forum.defold.com/u/corunethron)\
**Post date:** [July 22, 2018, 9:50pm UTC](https://forum.defold.com/t/language-problem-how-to-localize-a-game/10708/12 "2018-07-22T21:50:08Z")

</div>

That’s true when you use glyphs in the GUI text nodes, they appear normal and can be seen in the editor, as well as in game after build. So, it seems like a minor bug in font preview only.  
Thank you.
