mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
[i18n] Fix Arabic translations (#9857)
They were still on the old ar_AA, notified in <https://github.com/koreader/koreader/pull/9822#issuecomment-1335439759>.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
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 prd = en_popup.prd -- period (.)
|
||||
local _at = en_popup._at
|
||||
@@ -35,7 +35,7 @@ local Language = {
|
||||
vi = "Tiếng Việt",
|
||||
tr = "Türkçe",
|
||||
vi_VN = "Viet Nam",
|
||||
ar_AA = "عربى",
|
||||
ar = "عربى",
|
||||
bg_BG = "български",
|
||||
bn = "বাংলা",
|
||||
el = "Ελληνικά",
|
||||
@@ -148,7 +148,7 @@ function Language:getLangMenuTable()
|
||||
self:genLanguageSubItem("vi"),
|
||||
self:genLanguageSubItem("tr"),
|
||||
self:genLanguageSubItem("vi_VN"),
|
||||
self:genLanguageSubItem("ar_AA"),
|
||||
self:genLanguageSubItem("ar"),
|
||||
self:genLanguageSubItem("bg_BG"),
|
||||
--self:genLanguageSubItem("bn"),
|
||||
self:genLanguageSubItem("el"),
|
||||
|
||||
@@ -777,7 +777,7 @@ local VirtualKeyboard = FocusManager:extend{
|
||||
key_padding = Size.padding.small,
|
||||
|
||||
lang_to_keyboard_layout = {
|
||||
ar_AA = "ar_AA_keyboard",
|
||||
ar = "ar_keyboard",
|
||||
bg_BG = "bg_keyboard",
|
||||
bn = "bn_keyboard",
|
||||
de = "de_keyboard",
|
||||
|
||||
@@ -48,7 +48,7 @@ end
|
||||
|
||||
local lang_locale = G_reader_settings:readSetting("language")
|
||||
-- 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")
|
||||
if lang_locale then
|
||||
_.changeLang(lang_locale)
|
||||
|
||||
Reference in New Issue
Block a user