arnog / tecendil-js

Tengwar mode files and localization for Tecendil
https://tecendil.com
MIT License
25 stars 19 forks source link

i18n: Translation support for mode-info #56

Closed winstonsung closed 2 years ago

winstonsung commented 2 years ago

i18n: Translation support for div#mode-info

Proposal:

    "info.mode.czech": "As described by <a href=\"http://tengwar.szm.sk/ct/\">Sven Siegmund</a>, adapted by Jiří Setnička",
    "info.mode.hungarian": "Based on work by <a href=\"https://www.tolkien.hu/tengwar\">Tamás Füzessy</a> and <a href=\"https://omniglot.com/conscripts/tengwar_hu.php\">Balázs Radványi</a>. Adapated by Marcell Kiss-Rédey",
    "info.mode.lojban": "Based on <a href=\"http://www.raphael.poss.name/tengwar/\">Elrond's revised mapping - mode 3</a>",
    "info.mode.brazilian-portuguese": "Baseado no <a href=\"https://www.valinor.com.br/forum/topico/modo-tengwar-portugues-mtp.94672/\" target=\"_blank\">Modo Tengwar Português</a> criado por Deriel, adaptado por Bruno Romualdo.",
arnog commented 2 years ago

In general, I'm not sure that this text should be translated. However, I've added support for localization if a localization key is provided in the mode file (see the lojban mode for an example). The default keys do not have to be in the strings file for this to work.

winstonsung commented 2 years ago

(Ref: c471265 feat: added translation key )