翔鹰帝国网|帝国时代论坛|帝国时代系列|神话时代
 找回密码
 注册翔鹰会员(昵称)
搜索
查看: 1750|回复: 2

求助中文翻译

[复制链接]

105

主题

9

精华

2万

积分

圣徒

耕战
4516
鹰币
2080
天龙币
0
回帖
1143

一级皇家勋章翔鹰建站十周年纪念章一级翔鹰勋章特级嘉禾勋章特级帝国勋章鹰之智者蛟龙勋章

附庸关系0
发表于 2012-7-13 22:27:18 | 显示全部楼层 |阅读模式
准备将 Turtle Pack 的源代码交给老外--让老外开发维护去吧.有一个开发手册需要翻译下,那位有空闲的兄弟来帮下忙!


Turtle Pack 开发手册


开发环境:

开发工具使用 DELPHI XE2,旧有的版本几乎不能用.

第三方控件(Components)一个也不需要.


DEBUG:

程序的独特性导致了 Debug 的困难.

在 DELPHI 的 Debuger 窗口(点击菜单: Run->Parameters),里面有一个叫 Parameters 的 Edit,用于
输入启动参数.

当你要调试 SLP Editor 的时候,请输入启动参数 -app:SlpEditor ,Drs Editor 则是其他参数.

要了解全部启动参数,请查阅 uLanuage.pas 文件.


多语言的实现:

language.lg 十分普通,使用 line index 来部署和访问内容.因此,line 的 index 一定不能弄错.

开发中,任何要显示文本的地方,请使用函数 GetLgStr 来编写.举个例子:

button1.caption := GetLgStr(115, 'Cancel');

参数 115 是一个索引, Cancel 是默认的文本.当参数 115 不能从 language.lg 里面取得文本的时候, Cancel
就会被显示出来.

你会在 source code 里面发现很多的 GetLgStr(x, 'Chinese') , 因为 Turtle Pack 原本是一个中文语言的
程序.


Release:

源代码所在的目录下,有一个叫 _Release 的文件夹.里面部署了中文和英文两个版本各自所拥有的文件.每次
发布,大约总是仅仅替换掉 Turtle Pack.exe, language.lg 以及文件夹 languages.

版本号的设置不使用常规模式,而是在 uLanguage.pas 里面修改.你可以在里面看到这样的文本:

const _EditionDrsEditor = 'DRS Editor 1.3.5';
const _EditionSlpEditor = 'SLP Editor 2.4.5';
const _EditionOverview = 'Animation Preview 1.2';
const _EditionMoslty = 'Turtle Pack 1.3';

它们代表了程序名称和版本号.

End.

忽见天上一火链,好像玉皇要抽烟。
如果玉皇不抽烟,为何又是一火链。
回复

使用道具 举报

454

主题

65

精华

25万

积分

教皇

耕战
42935
鹰币
1441114
天龙币
10
回帖
5687

翔鹰建站十周年大纪念章特级帝国勋章特级翔鹰勋章特级嘉禾勋章一级皇家勋章鹰之智者蛟龙勋章十字军勋章大冒险家狂熊勋章

附庸关系2
发表于 2012-7-13 23:46:22 | 显示全部楼层
Turtle Pack Developer Manual

Development Environment:

The development tool is DELPHI XE2, the older versions of which are nearly unusable.

No third party component is required.

DEBUG:

The programme uniqueness has resulted in the difficulty of debugging.

In the Debuger window (click menu: run->parameters) of DELPHI, there is an edit option of parameters, where start-up parameters could be inputted.

If you want to commission the SLP Editor, input the following start-up parameter "-app:SlpEditor". Parameter for Drs Editor is different.

For the functions of all start-up parameters, please read uLanuage.pas .


Multi-language Combatiablity:

Utilizing the commonly-used language.lg, the programme employs line index to organize and access its content, therefore the line index must be correct.

Use function GetLgStr to write any texts to be displayed during development, i.e.:

button1.caption := GetLgStr(115, 'Cancel');

The parameter 115 is an index, while 'Cancel' is the default texts. If the paramter 115 could not load texts from language.lg, 'Cancel' would be displayed instead.

You would find many lines like "GetLgStr(x, 'Chinese')" from the source code, as Turtle Pack was originally a Chinese programme.


Release:

Under the source code directory there is a folder named '_Release', inside which are the files for both Chinese and English versions. Normally Turtle Pack.exe, language.lg and the languages folder are the only files that need to be updated after each release.

Version number is not set in a usual fashion, but by modifying it at uLanguage.pas. You could find in it some texts like this:

const _EditionDrsEditor = 'DRS Editor 1.3.5';
const _EditionSlpEditor = 'SLP Editor 2.4.5';
const _EditionOverview = 'Animation Preview 1.2';
const _EditionMoslty = 'Turtle Pack 1.3';

They represent the programme names and version numbers.

End.
回复

使用道具 举报

105

主题

9

精华

2万

积分

圣徒

耕战
4516
鹰币
2080
天龙币
0
回帖
1143

一级皇家勋章翔鹰建站十周年纪念章一级翔鹰勋章特级嘉禾勋章特级帝国勋章鹰之智者蛟龙勋章

附庸关系0
 楼主| 发表于 2012-7-14 00:04:43 | 显示全部楼层
翻译竟然把我要讲的话表达的更清楚,无言...
忽见天上一火链,好像玉皇要抽烟。
如果玉皇不抽烟,为何又是一火链。
回复

使用道具 举报

本版积分规则

排行榜|小黑屋|翔鹰帝国

GMT+8, 2024-3-28 22:09 , Processed in 0.099820 second(s), 47 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

Copyright © 2001-2023, Hawkaoe.net All Rights Reserved

快速回复 返回顶部 返回列表