请选择 进入手机版 | 继续访问电脑版

Lazarus中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Lazarus IDE and 组件 下载地址版权申明
查看: 1598|回复: 0

实现多国语言切换的范例-带源码

[复制链接]

该用户从未签到

发表于 2014-1-27 13:39:30 | 显示全部楼层 |阅读模式
这里是另一个例子,说明如何将应用程序的各种语言。这个例子是某种基于我的教程就这个问题 (http://wiki.lazarus.freepascal.o ... nguage_applications).此外,它显示了如何
- 手柄组合框的字符串翻译
- 通过使用格式语句创建一个已翻译的字符串
- 变译在运行时
- 开关格式设置
- 使用一个共享的资源字符串单元
- 更新语言在几个打开的窗体。

步骤简要说明包含在主单元。

我猜一些重要的项目仍下落不明。特别是,我不把比迪在这里,因为我是左到右的唯一。不过,我将不胜感激,如果有人从这些地区可以看看,并添加修改。这将是很好,如果我们能提出这个项目作为一个正式的拉撒路的例子。

注:拉撒路1.2RC或需要语言运行时切换树干。


Here is another example showing how to translate an application to various languages. The example is somehow based on my tutorial on this subject (http://wiki.lazarus.freepascal.org/Step-by-step_instructions_for_creating_multi-language_applications). In addition, it shows how to
- handle translation of combobox strings
- create translated strings by using the format statement
- change translation at runtime
- switch format settings
- use a shared resource string unit
- update language in several open forms.

A brief description of steps is contained in the main unit.

I guess some important items are still missing. In particular, I do not treat BiDi here since I am left-to-right only. But I would appreciate if somebody from these regions could have a look and add modifications. It would be fine if we could propose this project as an official Lazarus example.

Note: Lazarus 1.2RC or trunk needed for run-time switching of languages.


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

QQ|手机版|小黑屋|Lazarus中国|Lazarus中文社区 ( 鄂ICP备16006501号-1

GMT+8, 2021-6-25 08:30 , Processed in 0.090488 second(s), 25 queries .

Powered by Discuz! F1.0 Build 20160930

© 2001-2021 Comsenz Inc. & Discuz! Fans

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