「模組:I18n」:修訂歷史

比對選擇的版本差異:選擇要比對修訂版本的單選按鈕並點選底部的按鈕進行比對。
符號說明:(目前) = 與最新的修訂版本比對,(前筆) = 與前一筆修訂版本比對, = 次要修訂。

2022年9月27日 (星期二)

  • 目前前筆 10:462022年9月27日 (二) 10:46imported>CYL992 807位元組 +807 建立內容為「local p = {} -- Credit to http://stackoverflow.com/a/1283608/2644759 -- cc-by-sa 3.0 local function tableMerge(t1, t2, overwrite) for k,v in pairs(t2) do if type(v) == "table" and type(t1[k]) == "table" then -- since type(t1[k]) == type(v) == "table", so t1[k] and v is true tableMerge(t1[k], v, overwrite) -- t2[k] == v else if overwrite or t1[k] == nil then t1[k] = v end end end return t1 end function p.loadI18n(name, i18n_arg) local exi…」的新頁面