Quantcast ESOUI - View Single Post - LibAddonMenu translations
View Single Post
05/21/19, 07:55 AM   #4
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,343
Thank you for the translation!
I will add the following code in the next version:

Lua Code:
  1. do
  2.     local EsoKR = EsoKR
  3.     if EsoKR and EsoKR:isKorean() then
  4.         util.L = ZO_ShallowTableCopy({ -- provided by whya5448
  5.             PANEL_NAME = EsoKR:E("애드온"),
  6.             AUTHOR = string.format("%s: <<X:1>>", GetString(SI_ADDON_MANAGER_AUTHOR)), -- "Author: <<X:1>>"
  7.             VERSION = EsoKR:E("버전: <<X:1>>"),
  8.             WEBSITE = EsoKR:E("웹사이트 방문"),
  9.             FEEDBACK = EsoKR:E("피드백"),
  10.             TRANSLATION = EsoKR:E("번역"),
  11.             DONATION = EsoKR:E("기부"),
  12.             PANEL_INFO_FONT = "EsoKR/fonts/Univers57.otf|14|soft-shadow-thin",
  13.             RELOAD_UI_WARNING = EsoKR:E("이 설정을 변경하면 효과를 적용하기위해 UI 새로고침이 필요합니다."),
  14.             RELOAD_DIALOG_TITLE = EsoKR:E("UI 새로고침 필요"),
  15.             RELOAD_DIALOG_TEXT = EsoKR:E("변경된 설정 중 UI 새로고침을 필요로하는 사항이 있습니다. 지금 새로고침하시겠습니까? 아니면 변경을 취소하시겠습니까?"),
  16.             RELOAD_DIALOG_RELOAD_BUTTON = EsoKR:E("새로고침"),
  17.             RELOAD_DIALOG_DISCARD_BUTTON = EsoKR:E("변경취소"),
  18.         }, localization["en"])
  19.     else
  20.         util.L = ZO_ShallowTableCopy(localization[GetCVar("Language.2")] or {}, localization["en"])
  21.     end
  22. end

This way EsoKR's method of detecting Korean is used and it will fall back to English for missing translations in case something new is added in the future.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote