DirectAdmin Evolution 模板汉化包

分类:分享 3.63k浏览

中文包,在GITHUB:

https://github.com/BakaSoniji/DirectAdmin-EvolutionSkin-SimplifiedChinese

本地留存一份:DirectAdmin-EvolutionSkin-SimplifiedChinese-master

2019年4月3日版本。

安装方法摘录:(https://help.directadmin.com/item.php?id=704&in1=zh_Hans)
The Evolution skin uses a .pot file for the bulk of the translations.

Translation file should be taken from

/usr/local/directadmin/data/skins/evolution/lang/dictionary.pot

and when translated, uploaded to languages, eg:

/usr/local/directadmin/data/skins/evolution/lang/zh_Hans.po

. Then the skin will start showing it up. There is no automatic way to convert old language files to new ones, however, there are many programs that support PO translations, so, it should be easier to create a new one, by copy-pasting the old translations from the text files.

Login page translation file should be taken from

/usr/local/directadmin/data/skins/evolution/lang/login-dictionary.pot

and when translated, uploaded to languages, eg:

/usr/local/directadmin/data/skins/evolution/lang/login-zh_Hans.po

.


Internal translation could still be done in:

/usr/local/directadmin/data/skins/evolution/lang/zh_Hans/internal/*

if needed, however the .po files will already contain the translation from internal/en/*, so you should be able to do just the .po translation for everything.  It basically translates en » zh_Hans on the client side, after en transmission to the client.  Adding the internal/zh_Hans/* would only be needed if that’s not working correctly, in which case pure zh_Hans is sent in the html, and translation on the client side is not needed (only for those internal texts).


Note, you can use specific List of Locale ID (LCID) values, just find your specific locale name from the file:

/usr/local/directadmin/data/skins/evolution/locales.conf

For example, there are several variants of “en”, eg:


en_CA=English (Canada)
en_GB=English (United Kingdom)
en_IE=English (Ireland)

where you’d use the underscore ‘_’ character (and not the dash ‘-‘ as some use).
You do not need to use a more specific _XX code for the language, usually just the main one is fine (eg: ‘en’) but in some cases, the wording may be specific enough such that you would want different language packs for the different countries/dialects, in which case you can use these extra codes for your language pack (eg: en_CA, eh?).


Sharing your translation

Once you’ve completed your translation, if you wish to share your work with the community, please post it to the Evolution Skin Forum.  Read the top “Translating the Evolution Skin” for information on how to format your post and the basic rules to keep things somewhat consistent.