软件国际化提的意见.

来自中国的朋友,欢迎您在本版面使用中文讨论问题。请注意,如果您想得到不懂中文的人的帮助,请同时提供英文译文。
Help and discussions in Chinese.
Post Reply
liqi98136
Posts: 53
Joined: Sun Jan 17, 2010 11:37 pm

软件国际化提的意见.

Post by liqi98136 »

你用过Wordpress 或者VC解决软件国际化的问题
在VC中
定义宏
#define _T(x) (x)
#define __(x) (x)

_T("this is a strings.") ("this is a strings.")
__("this %s or %d.") ("this %s or %d.")

然后通过软件Poedit对源代码进行查找,翻译.
查找模板"_T" 和"__"标记的地方.
人为翻译后生成对应的PO文件和MO文件
程序运行时就可以实现翻译.
Last edited by liqi98136 on Tue Aug 16, 2011 12:01 pm, edited 1 time in total.
liqi98136
Posts: 53
Joined: Sun Jan 17, 2010 11:37 pm

Re: 软件国际化提的意见.

Post by liqi98136 »

通过软件 gettext 来实现的.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: 软件国际化提的意见.

Post by jerome »

Hi liqi,

At some point I do want to take the time to figure out an internationalization solution for eC/Ecere applications, integrated as a feature of the eC language. It might partially rely on gettext. It might also be work that takes place together with developing a proper String data type for eC.

In the meantime you or anyone else is welcome to investigate the possibilities :)

Thanks!

Jerome
Post Reply