Create The World With Creativity
  BMForum 产品宣传系列
Languages  欢迎您,客人:登录 | 注册 | 论坛信息 | 搜索 | Tags | 帮助 | 宣传 | LITE
论坛在处理的您的请求时发生了错误,可能是您提交的信息有误。




下载转换程序 BMForum 用户手册 BMForum团队2008年招募公告 查看当前开发进度
编辑论坛源码请使用合适编辑器 梦游高速镜像服务 广告招商 广告招商
Bluview 实验室 出现白屏问题请看这里 广告招商 广告招商
成网科技全能双线空间 广告招商 广告招商 放上广告代码就有钱

批注/评分

引用 收藏 报告
作者  本页主题: How to translate BMForum?
msxcms 
总工程师及项目负责
天王之王
Bluview Tech.
 

信息 坛主标志 该用户目前离线 帅哥
来自 未填 中国
发帖 4059 帖 
精华 5 帖 
积分 1345 点
货币 7510 蓝魔币
注册 2002-08-07
资料资料 好友好友 消息消息 发电子邮件邮件 QQQQ MSN:shengyu@bmforum.comMSN ICQICQ 主页主页 回复回复 引用引用   1 楼 
How to translate BMForum?

If you want to translate BMForum to your language, welcome to read this article.

In order to translate BMForum, we will show you an example:

We will create a French language pack as an example.

1. Copy dir "lang/eng/" and rename it to the language, e.g. "lang/fr".
2. Using EmEditor modify the files in "lang/fr/" , translate all string to French.
   Notice: Please obey the PHP Syntax, such as $abc = 'We know A's is a boy'; is wrong, correct it to:  $abc = 'We know A\'s is a boy';
   and $abc = "We know "China" is a country"; is wrong, correct it to:  $abc = "We know \"China\" is a country";
3. Please modify the top of "lang/fr/global.php" :

$language_name="English";$lang_accept="en-us;en;en-au;en-bz;en-ca;en-ie;en-jm;en-nz;en-ph;en-za;en-tt;en-gb;en-zw";$html_lang="en-US";$read_alignment="ltr";

(a) You can modify "English" to "Français".
(b) Change the text inside quotation marks of $lang_accept="en-us;en;en-au;en-bz;en-ca;en-ie;en-jm;en-nz;en-ph;en-za;en-tt;en-gb;en-zw"; to French Language Code "fr", more codes can separate with semicolon, e.g. "fr;fr-ca;fr-lu;fr-mc;fr-ch"
(c) Change the text inside quotation marks of $html_lang from "zh-CN" to "fr".
(d) The text "ltr" inside $read_alignment means Reading from left to right sequence, if you're translating an Reading from right to left sequence language pack such as Arabic, you should set it to "rtl".

Then we will create pictures, there are three buttons to translate.

If we want to modify the picture of bsd07 style, goto images/bsd07/eng and copy it to images/bsd07/fr, then translate the text inside the picture.

Now, a language pack developed, goto Admin Center and Refresh Language Packs.

Similar,there are a Setup language packs inside \install\languages . We can copy eng.php to a new file, like "fr.php", using EmEditor to translate.At the top of the file:
$forum_pack_name="eng"; $html_lang="en-US"; $read_alignment="ltr"; $check_version_lang = "enus";
"eng" we can translate to "fr", and html_lang to "fr", and check_version_lang can be "fr". To check version correctly, you should contact with us to translate the files in our site.

If you translated a language pack, but it doesn't work, you can send to us for supporting: msxcms@gmail.com




Bluview Technology, enjoy your life.

[开发组倾力编写的说明文档,不可不看]
2007-10-21 17:45
  批注/评分



  快速回复
标题:
文章内容:




上传附件: 关闭
用户名
密 码
请输入验证码:
  



推荐给朋友 打印模式 文章模式

论坛跳转:



Powered by BMForum Powered by BMForum Myna RC0 [Licenced] RSS Feed  
Processed in 0.01628381 second(s),4 queries  
Top