PivityGmodStore

How to add new languages

Step 1: Creating language file

Addon owners: Go to projectzero-weaponcustomiser\lua\projectzero\languages and copy the english.lua file

Translators: Copy the english language file from here: https://pastebin.com/BBw7YKFe


Step 2: Replacing language information

In the actual language file start by replacing "english" on line 1 with the language name e.g. "german".

Next on line 3 replace "English" with the language name but as a name rather than identification e.g. "German".

Finally on line 4 replace "EN" with the 2 letter language code, these can be found here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes


Step 3: Replace language strings

Now to actually translate, after line 6 you need to replace all the lines with your translation, the string inside the square brackets ["example"] should stay and the following string translated.

e.g.

["close"] = "CLOSE",

["close"] = "FERMER",

IMPORTANT:

The comma (,) should remain after the translated string.

If the string contains something such as %s or %d then these represent an inserted value. Example: The final output would have values inserted.

["progress"] = "Progress %d/%d",

"Progress 10/100"