去评论
dz插件网

①多国语言 主框架 5.1.2(onexin_translate)

admin
2022/11/30 09:44:15
搴旂敤鎴浘
搴旂敤涓績鍘熶环 2188
闄愭椂鐗规儬 600
褰撳墠鐗堟湰 0
搴 瀛 100
鏇存柊鏃ユ湡 2023-07-15
缃戠洏涓嬭浇 https://pan.baidu.com/
QQ瀹㈡湇 1909859577
搴旂敤鍒嗙被 鎻掍欢
搴旂敤鍥炬爣
浣滃搧绠浠
婕旂ず鍦板潃锛
甯姪鎮ㄧ殑缃戠珯瀹炵幇澶氬浗璇█鍖呯殑鍒囨崲锛岀洰鍓嶆湭瀹炵幇鎵鏈夋枃瀛楃殑杞崲銆傛湰鎻掍欢鐢变富妗嗘灦鍜岀粍浠舵瀯鎴愶紝璇█鍖呮槗鎵╁睍锛屼笉褰卞搷鍚庡彴搴旂敤鐨勫畨瑁咃紝閫傞厤瀹樻柟Discuz!X 3.x寮鍙戯紝鎺ㄨ崘鍦║TF8鐗堟湰鐨勭幆澧冧笅浣跨敤銆
锛堣喘涔板墠璇风‘璁わ紝鏈彃浠跺垏鎹㈣瑷鍖咃紝涓嶅寘鍚敤鎴疯緭鍏ユ枃瀛楃炕璇戙傚闇鍏跺畠鍔熻兘鍙仈绯绘垜浠粯璐瑰畾鍒躲傦級

澶氬浗璇█婕旂ず锛涓枃(CN)鑻辫(EN)鏃ヨ(JP)闊╄(KR)娉曡(FR)寰疯(DE)淇勮(RU)鍏107绉(More)

鐗硅壊璇存槑锛
鏀寔鏍规嵁绯荤粺鐜鑷姩鍔犺浇璇█
鏀寔鑷畾涔夋枃瀛楃炕璇戯紝璇█鍖呬腑娣诲姞lang_theme.php
鏀寔Discuz!X妯℃澘缂撳瓨锛屽搷搴旈熷害鏇村揩锛
鏀寔鐢佃剳鐗堝拰鎵嬫満鐗堬紝涓嶅悓璇█涓嶅悓鐨勮闂綉鍧锛
鏀寔璺熼殢绯荤粺鐨勪吉闈欐侊紝鏈夊埄浜嶴EO浼樺寲銆

浣跨敤璇存槑锛
瀹夎鍚庯紝寮鍚彃浠跺苟涓旈厤缃偍鎵闇瑕佺殑璇█锛屽紑鍚吉闈欐佸墠璇烽厤缃鍒欙紝鍗冲彲浣跨敤銆

浠樿垂缈昏瘧锛
閲忚韩瀹氬埗鏈姞瀵嗙殑鎻掍欢鎴栬嚜瀹氫箟鏂囨湰鐨勭炕璇戞湇鍔★紝姣忎釜鎻掍欢姣忕璇█30鍏冭捣銆

=================澶氬浗璇█缃戝潃鏂规=================
鏂规涓锛
https://demo.onexin.com/en/forum-36-1.html
https://demo.onexin.com/en/thread-484-1-1.html

鏂规浜岋細
https://demo.onexin.com/forum-36-1.html?lang=en
https://demo.onexin.com/thread-484-1-1.html?lang=en

鏂规涓夛紙鏈紑鍚吉闈欐侊級锛
https://demo.onexin.com/forum.php?lang=en&mod=forumdisplay&fid=36
https://demo.onexin.com/forum.php?lang=en&mod=viewthread&tid=484

=================浼潤鎬佽鍒=================

# 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;

=================甯歌闂=================
Q锛氬浣曞湪鍚庡彴璁剧疆涓鍔犺瑷鍖呴夐」锛
A锛氳瑷鍖呯ず渚嬪涓嬧滄枃浠跺す鍚峾缃戝潃鍚 = 閾炬帴鏂囧瓧鈥濓紝鍒嗗埆涓猴細
zh_CN|cn = 绠浣撲腑鏂
zh_TW|zh = 绻侀珨涓枃
en_US|en = English
ja_JP|jp = 鏃ユ湰瑾
ko_KR|kr = 頃滉淡鞚
ru_RU|ru = 褉褍褋褋泻懈泄
es_ES|es = Espa帽ol
fr_FR|fr = Fran莽ais
de_DE|de = Deutsch

Q锛氶厤缃吉闈欐佽鍒欙細
A锛氱ず渚嬪涓嬶細

# IIS/APACHE Web Server 2 Translated by ONEXIN
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(cn|en|tw|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|tw|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|tw|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|tw|jp|kr|de|fr)(/.*?)?$" />
<action type="Rewrite" url="{R:3}\?lang={R:2}" />
</rule>

Q锛氬浣曞~鍐欐彃浠惰缃腑鐨勨濊瑷閰嶇疆鈥滈」锛
A锛氬浐瀹氭牸寮忥紝鈥濊瑷鍖呮爣璇唡缃戝潃鏍囪瘑 = 璇█鍖呭悕绉扳滐紝绀轰緥濡備笅锛
zh_CN|cn = 绠浣撲腑鏂
zh_TW|tw = 绻佷綋涓枃
娉ㄦ剰锛氶厤缃墠锛岃鍏堝噯澶囧ソ璇█鍖呮枃浠讹紝鎮ㄥ彲浠ュ畨瑁呯粍浠舵垨鑷凡缈昏瘧鏂囦欢锛屽搴旀枃浠跺す浣嶇疆濡備笅锛
source/plugin/onexin_translate/locale/zh_CN       #绠浣撲腑鏂噓tf-8缂栫爜
source/plugin/onexin_translate/locale/zh_TW       #绻佷綋涓枃utf-8缂栫爜
鎴栬呴塯bk缂栫爜
source/plugin/onexin_translate/gbk/locale/zh_CN       #绠浣撲腑鏂噂bk缂栫爜
source/plugin/onexin_translate/gbk/locale/zh_TW       #绻佷綋涓枃gbk缂栫爜
鎴栬呴塨ig5缂栫爜
source/plugin/onexin_translate/big5/locale/zh_CN       #绠浣撲腑鏂嘼ig5缂栫爜
source/plugin/onexin_translate/big5/locale/zh_TW       #绻佷綋涓枃big5缂栫爜

Q锛氱洰鍓嶆鍦ㄦ洿鏂扮殑璇█鍖呮湁鍝簺锛
A锛氳瑷鍖呯ず渚嬪涓嬧滄枃浠跺す鍚峾缃戝潃鍚 = 閾炬帴鏂囧瓧鈥濓紝鍒嗗埆涓猴細
zh_CN|cn = 涓枃绠浣
zh_TW|tw = 涓枃绻佷綋
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岷縩g vi峄噒|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