定制 guyver4mk/language_translate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

guyver4mk/language_translate

Composer 安装命令:

composer require guyver4mk/language_translate

包简介

A PHP Class to create a static array of translations, to use on your website

README 文档

README

A PHP Class to create a static array of translations, to use on your website

##General Usage Pull the latest code or Download the Zip file, then add to your project.
You will need to register for a free API Key from Here
In includes/configuration.php file, Change the API Key to the one you receive from Yandex, and change the LANG_PATH definition to a world writable folder for your file to be output to.
Then you can open and edit the includes/lang/language.php file, with the array of sentences / paragraphs / words you would like to translate.
Once you have created your array of phrases, simply call the classes/Lang.php file from your browser or your command line ( php classes/Lang.php ) to create your static array.

##Currently Supported Languages Here is a list of the currently supported languages using this method;

Language Code Language
sq Albanian
ar Arabic
hy Armenian
az Azerbaijani
be Belarusian
bs Bosnian
bg Bulgarian
ca Catalan
zh Chinese
hr Croatian
cs Czech
da Danish
nl Dutch
et Estonian
fi Finnish
fr French
ka Georgian
de German
el Greek
he Hebrew
hu Hungarian
is Icelandic
id Indonesian
it Italian
ja Japanese
ko Korean
lv Latvian
lt Lithuanian
mk Macedonian
ms Malay
mt Maltese
no Norwegian
fa Persian
pl Polish
pt Portuguese
ro Romanian
ru Russian
sr Serbian
sk Slovak
sl Slovenian
es Spanish
sv Swedish
tt Tatar
th Thai
tr Turkish
uk Ukrainian
vi Vietnamese

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GNU
  • 更新时间: 2015-07-15