-
-
Notifications
You must be signed in to change notification settings - Fork 7
Localization
LenweSaralonde edited this page May 2, 2021
·
19 revisions
The localization process is very straightforward. All you need is a GitHub account:
- Fork the project on your account ;
- Pull the latest changes from the main repo into your forked repo ;
- Perform the modifications in the locale file of your language (see guide below) ;
- Commit and push changes ;
- Issue a pull request to the main project.
You may also like to translate the Optional modules.
If you are not familiar with the git process, you can also get in touch with the dev team on Discord so we can find out what is the easiest solution for you.
The translation files are located under the add-on locale folder. These are .lua files named after the add-on and locale code. For example, Musician's spanish locale file is Musician.es.lua. You can edit them with any text editor or even directly on GitHub so you don't need to install anything on your machine.
Translation strings always begin with msg. as follows:
msg.SOME_NAME = "Some text"or
msg.SOME_LIST_NAME["some-list-key"] = "Some value"- Only the text after the
=sign should be modified. - Untranslated strings are in English and are commented out by a double dash
--. Remove the--when you're done. - The text is always within double quotes
"(ie"text"). If you need to put double quotes inside your string, you should escape them with a backslash (\), as follows"Get the \"Musician\" add-on to become a bard!" - Text between curly braces
{and}are variables and should not be translated. - Always keep your strings as a single line. You can use the
\ncharacter for carriage returns. - You can add a comment after your string using a double dash
-- - Comments on a single line that start with
--or---are sections. Don't edit them - In addition, there are also some bits of LUA code, don't modify them.
Table of contents
- User guide (FR)
- Optional modules
- What the FAQ
- Tips and Tricks
- Music producer guide
- Localization
- Technical design
- API documentation
Discord / MusicianList / Patreon / Donate