WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺(tái)
- WIKI程序與應(yīng)用
- 美國十大主機(jī)
編輯“Gallery:本地化”
該編輯可以被撤銷。 請(qǐng)檢查下面的對(duì)比以核實(shí)您想要撤銷的內(nèi)容,然后發(fā)布下面的更改以完成撤銷。
最后版本 | 您的文本 | ||
第65行: | 第65行: | ||
: (or http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html) | : (or http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html) | ||
In most cases you will need just the language code, such as "de" for German.? To provide country specific translations for a language used in multiple countries you can use a code in the format xx_XX, such as "pt_BR" for Portuguese/Brazil.? If you are unsure which to use, include both language and country.? If you find a translation for your language already exists then move on to [[#Maintaining_a_localization|Maintaining a localization]]. | |||
Once you've chosen the code, you need to create a new .po file for | |||
your code.? Let's assume that you chose "de".? For each po directory, | |||
you need to do this: | |||
<pre> | <pre> | ||
第75行: | 第75行: | ||
</pre> | </pre> | ||
This will find all text that is marked for localization ([[Gallery2:Tpl_Reference#Gallery_Custom_Tags|{g->text}]] in tpl files, translate() or i18n() in php code) and create a po file that is ready to be translated. | |||
有關(guān)文本編輯器。 | 有關(guān)文本編輯器。 | ||
第212行: | 第212行: | ||
添加到站點(diǎn)中,使用外觀主題設(shè)定就可以做到。 | 添加到站點(diǎn)中,使用外觀主題設(shè)定就可以做到。 | ||
'''注:''' 如果語言修改沒有起效,請(qǐng)回顧一下[[ | '''注:''' 如果語言修改沒有起效,請(qǐng)回顧一下[[Gallery2:Language_Settings|語言設(shè)定]]的優(yōu)先級(jí)(會(huì)話語言(Session language) > 用戶偏好(user preferences) > 站點(diǎn)范圍的默認(rèn)語言(site wide default language))。如果有疑慮的話,可以使用語言區(qū)塊或在用戶偏好中反復(fù)嘗試。 | ||
== 本地化的提交 == | == 本地化的提交 == |