A3Antistasi / A3-Antistasi

A3-Antistasi is the new official Antistasi version
https://a3antistasi.enjin.com/
MIT License
78 stars 331 forks source link

Initial localization support #205

Open Jonathan-Rosewood opened 5 years ago

Jonathan-Rosewood commented 5 years ago

These changes were made to start collecting information about possible problems with the ArmA localization system.

Barbolani77 commented 5 years ago

Question, the system accepts dynamic text? Reason: I have seen text with "Maru" and it should change to "Petros" depending on the edition. That may happen in several situations.

Jonathan-Rosewood commented 5 years ago

@Barbolani77 sure. Look at this rows:

Jonathan-Rosewood commented 5 years ago

You can do nested formatting. For example, we have the strings - "Hello my name is Maru" and "Greetings from Maru". Where the name may be one of several options that must also be translated into other languages. For example, such as - "Maru" and "Petros". To do this, we make the main lines with a name marker - "Hello my name is %1" and "Greetings from %1". And separate translation lines for names - "Maru" and "Petros". When using, we format the main string by substituting the translated name as an argument.

hint format [ localize "str_antistasi_greetings", localize "str_antistasi_name_maru" ];
// Result if locale is English: hint format [ "Greetings from %1", "Maru" ];
// Result if locale is Russian: hint format [ "Приветствие от %1", "Мару" ];
Barbolani77 commented 5 years ago

ok, will start to work with this structure