ParadoxGameConverters / Vic2ToHoI4

Converts Victoria 2 saves into Hearts of Iron 4 mods.
MIT License
28 stars 21 forks source link

Fix generated localisations in non-English languages #265

Closed Idhrendur closed 3 years ago

Idhrendur commented 6 years ago

Although originating from Vic2 coding, Adjective State look awful outside English, for order (e.g. French should have, e.g., Piémont Français) or missing declension (French Provence Française, German Deutsches Österreich, Spanish Indias Occidentales Españolas). It'd, however, require a gargantuan amount of coding to support:

LANGUAGE Adjective position Gender according Number according EXAMPLE
English before no no French Austria
French after yes yes Autriche Française
German before yes yes Französisches Österreich
Polish before no no Franc. Austria
Spanish after yes yes Austria Francesa
Italian after yes yes Austria Francese
Swedish before no yes Franska Österrike
Czech before yes yes Francouszké Rakousko
Hungarian before no yes Franciaországi Osztrák
Dutch before no yes Frans Oostenrijk
Portuguese after yes yes Áustria Francesa
Russian before no no Французск. Австрия
Finnish before no no Ranskan Itävalta
IohannesIohannium commented 3 years ago

Adjective order works correctly. Gender-according is now needed.

For French, Spanish, Italian, Portuguese:

As an example, the partial state ENG_1979 (Guayane) owned by a democratic France

Fallback cases:

IohannesIohannium commented 3 years ago

Grammar.txt as per now. This must be kept as a configurable, as new state categories can be added arbitrarily.

# Male singular - *Le Danube allemand*
msnc = _MS
msac = _MS
msav = _MS
msnv = _MS

# Male plural - *Les Territoires allemands*
mpac = _MP
mpav = _MP
mpnc = _MP
mpnv = _MP

# Female singular - *L'Autriche allemande*
fsnc = _FS
fsac = _FS
fsav = _FS
fsnv = _FS

# Female plural - *Les Villes allemandes*
fpnc = _FP
fpac = _FP
fpav = _FP
fpnv = _FP