PHP8.2 中的 BUG
Q1:导航发贴提示“Cannot access offset of type string on string”
打开onexin_translate.class.php文件,
查找:
foreach($forumlist as $key => $val){
下面加:
if(empty($val['fid'])) continue;
Q:配置伪静态规则:
A:示例如下:
# IIS/APACHE Web Server 2 Translated by ONEXIN
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(cn|en|zh|jp|kr|de|fr|es|ru|in|pt|ms|bd|ar|vi|th|is|it|gd|id|nl|se|tr|fi|my|ph)(/.*?)?$ $2?lang=$1&%1
# IIS/APACHE Web Server 1 Translated by ONEXIN
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/(cn|en|zh|jp|kr|de|fr|es|ru|in|pt|ms|bd|ar|vi|th|is|it|gd|id|nl|se|tr|fi|my|ph)(/.*?)?$ $3?lang=$2&%1
# Nginx Web Server Translated by ONEXIN
rewrite ^([^\.]*)/(cn|en|zh|jp|kr|de|fr|es|ru|in|pt|ms|bd|ar|vi|th|is|it|gd|id|nl|se|tr|fi|my|ph)(/.*?)?$ $3?lang=$2 last;
# IIS 7.x及以上 Web Server(独立主机用户)
<rule name="onexin_translate_1">
<match url="^(.*/)*/(cn|en|zh|jp|kr|de|fr)(/.*?)?$" />
<action type="Rewrite" url="{R:3}\?lang={R:2}" />
</rule>
Q:如何填写插件设置中的”语言配置“项?
A:固定格式,”语言包标识|网址标识 = 语言包名称“,示例如下:
zh_CN|cn = 简体中文
zh_TW|zh= 繁体中文
注意:配置前,请先准备好语言包文件,您可以安装组件或自已翻译文件,对应文件夹位置如下:
source/plugin/onexin_translate/locale/zh_CN #简体中文utf-8编码
source/plugin/onexin_translate/locale/zh_TW #繁体中文utf-8编码
或者选gbk编码
source/plugin/onexin_translate/gbk/locale/zh_CN #简体中文gbk编码
source/plugin/onexin_translate/gbk/locale/zh_TW #繁体中文gbk编码
或者选big5编码
source/plugin/onexin_translate/big5/locale/zh_CN #简体中文big5编码
source/plugin/onexin_translate/big5/locale/zh_TW #繁体中文big5编码
Q:目前正在更新的语言包有哪些?
A:语言包示例如下“文件夹名|网址名 = 链接文字”,分别为:
zh_CN|cn = 中文简体
zh_TW|zh = 中文繁体
zh_HK|hk = 中文粤语
en_US|en = English
ja_JP|jp = 日本語
ko_KR|kr = 한국의
fr_FR|fr = Français
de_DE|de = Deutsch
ru_RU|ru = русский
es_ES|es = Español
bn_BD|bd = বাংলা ভাষার|Bengali
hi_IN|in = हिन्दी|Hindi
ms_MY|ms = Bahasa Melayu|Malay
ar_EG|ar = العربية|Arabic
vi_VN|vi = Tiếng việt|Vietnamese
th_TH|th = ไทย|Thai
pt_PT|pt = Português|Portuguese
is_IS|is = Íslensku|Icelandic
it_IT|it = Italiano|Italian
id_ID|id = Indonesia|Indonesian
nl_NL|nl = Nederlands|Dutch
sv_SE|se = svenska|Swedish
tr_TR|tr = Türkçe|Turkish
fi_FI|fi = suomi|Finnish
hu_HU|hu = magyar|Hungarian
pl_PL|pl = polski|Polish
cs_CZ|cs = čeština|Czech
da_DK|da = dansk|Danish
lo_LA|lo = ລາວ|Lao
my_MM|my = ဗမာ|Burmese
tl_PH|ph = Pilipino|Filipino
el_GR|gr = Ελληνικά|Greek
mn_MN|mn = Монгол хэл|Mongolian
la_VA|va = Latine|Latin
lv_LV|lv = latviešu|Latvian
no_NO|no = norsk språk|Norwegian
lt_LT|lt = Lietuvis|Lithuanian
ro_RO|ro = românesc|Romanian
sk_SK|sk = slovenčina|Slovak
Q:我想要更多的语言包,怎么办?
A:加入我们一起翻译吧,
https://demo.onexin.com/t
如果您有任何建议或疑问,欢迎您随时与我们取得联系,Q群:189610242 微信:onexin 邮箱onexin#qq.com