[i18n] Fix Arabic translations (#9857)

They were still on the old ar_AA, notified in <https://github.com/koreader/koreader/pull/9822#issuecomment-1335439759>.
reviewable/pr9863/r1
Frans de Jonge 1 year ago committed by GitHub
parent 02c9f26f6c
commit b5e7ade880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
local en_popup = require("ui/data/keyboardlayouts/keypopup/en_popup") local en_popup = require("ui/data/keyboardlayouts/keypopup/en_popup")
local ar_popup = require("ui/data/keyboardlayouts/keypopup/ar_AA_popup") local ar_popup = require("ui/data/keyboardlayouts/keypopup/ar_popup")
local com = en_popup.com -- comma (,) local com = en_popup.com -- comma (,)
local prd = en_popup.prd -- period (.) local prd = en_popup.prd -- period (.)
local _at = en_popup._at local _at = en_popup._at

@ -35,7 +35,7 @@ local Language = {
vi = "Tiếng Việt", vi = "Tiếng Việt",
tr = "Türkçe", tr = "Türkçe",
vi_VN = "Viet Nam", vi_VN = "Viet Nam",
ar_AA = "عربى", ar = "عربى",
bg_BG = "български", bg_BG = "български",
bn = "বাংলা", bn = "বাংলা",
el = "Ελληνικά", el = "Ελληνικά",
@ -148,7 +148,7 @@ function Language:getLangMenuTable()
self:genLanguageSubItem("vi"), self:genLanguageSubItem("vi"),
self:genLanguageSubItem("tr"), self:genLanguageSubItem("tr"),
self:genLanguageSubItem("vi_VN"), self:genLanguageSubItem("vi_VN"),
self:genLanguageSubItem("ar_AA"), self:genLanguageSubItem("ar"),
self:genLanguageSubItem("bg_BG"), self:genLanguageSubItem("bg_BG"),
--self:genLanguageSubItem("bn"), --self:genLanguageSubItem("bn"),
self:genLanguageSubItem("el"), self:genLanguageSubItem("el"),

@ -777,7 +777,7 @@ local VirtualKeyboard = FocusManager:extend{
key_padding = Size.padding.small, key_padding = Size.padding.small,
lang_to_keyboard_layout = { lang_to_keyboard_layout = {
ar_AA = "ar_AA_keyboard", ar = "ar_keyboard",
bg_BG = "bg_keyboard", bg_BG = "bg_keyboard",
bn = "bn_keyboard", bn = "bn_keyboard",
de = "de_keyboard", de = "de_keyboard",

@ -48,7 +48,7 @@ end
local lang_locale = G_reader_settings:readSetting("language") local lang_locale = G_reader_settings:readSetting("language")
-- Allow quick switching to Arabic for testing RTL/UI mirroring -- Allow quick switching to Arabic for testing RTL/UI mirroring
if os.getenv("KO_RTL") then lang_locale = "ar_AA" end if os.getenv("KO_RTL") then lang_locale = "ar" end
local _ = require("gettext") local _ = require("gettext")
if lang_locale then if lang_locale then
_.changeLang(lang_locale) _.changeLang(lang_locale)

Loading…
Cancel
Save