ZeroBrane Studio provides a way to translate its interface elements (menus and captions) and messages to a different language.

Language file

Create i18n/*.lua file for your language-country. The name of the file (ll-cc.lua) has two segments:

You can either copy one of the existing files or create a new one with all messages that need to be translated using the following command (let’s say your language is “fr”; use bin\lua if you are on Windows):

> bin/lua build/messages.lua >cfg/i18n/fr.lua

You can also update an existing file to add/modify those messages that have recently changed in the source code (the script will keep all the translated messages intact):

> bin/lua build/messages.lua cfg/i18n/ru.lua >cfg/i18n/runew.lua

Configuring language

You can specify the language for the user interface by adding the following line to one of the configuration files:

language = "ru"

The value of the language setting should match the name of the file (without the extension).

Translating plural forms

The internalization component also provides a way to handle different forms of words (for example, 1 record and 0 records). This handling requires two steps:

(1) Add a function that returns an index for different values; for example, for English this function looks like the following (the function is always assigned to [0] index):

  [0] = function(c) return c == 1 and 1 or 2 end,

It returns index 1 for singular and 2 for plural values. Other languages may require more than two values (for example, Russian requires three).

(2) To translate the value, you can then specify an array of values, instead of a string:

  ["traced %d instruction"] = {"traced %d instruction", "traced %d instructions"}, -- src\editor\debugger.lua

The first form will be used when the index returned is 1 and the second one with index 2, resulting in “traced 1 instruction” and “traced 2 instructions” messages.

what a breath of fresh air. (doctorbling)

IMHO, ZBS is the fastest, most-flexible, best-thought-out IDE AND Debugger I've used since I began coding professionally in 1980. (Michael Berlyn)

Love ZeroBrane Studio. Lightweight. Works. Powerful. (Ross Berteig)

Love the debugger, saving my life. (Troy Sandal)

Thanks again for your awesome IDE. I've moved over to it, forsaking my previous investment in Decoda! (Stephen Nichols)

my kids love ZeroBrane. (Phil Hagelberg)

ZBS is beautiful experience. I am using it usually 10 hrs every day w/o problems. (Srdjan Markovic)

...heartily recommend it. (stun)

I love ZBS. I use it for all of the work I’ve started doing in Lua...! This IDE is fantastic! (Eddie Dover)

ZeroBrane Studio has got a working debugger, full IDE feature set, small footprint, and is completely customizable in lua. You have no idea how excited I was to find this little gem! (Jonathan Shieh)

It's a joy to use;... totally rock solid. (Jeff Smith)

Complaining about Zerobrane is like complaining that a beautiful spring day is a couple degrees too warm. (Jim Burnes)