Search found 53 matches
- Wed Aug 24, 2011 7:43 am
- Forum: 欢迎使用中文讨论
- Topic: Code Snippets 2:List Files In Dir
- Replies: 1
- Views: 29365
- Wed Aug 24, 2011 7:43 am
- Forum: 欢迎使用中文讨论
- Topic: Code snippets 1: ListBox
- Replies: 5
- Views: 47309
Re: Code snippets 1: ListBox
顶一个,加油.
- Wed Aug 24, 2011 7:31 am
- Forum: 欢迎使用中文讨论
- Topic: GUI 程序成功了,解决乱码问题
- Replies: 0
- Views: 48160
GUI 程序成功了,解决乱码问题
增加
bind_textdomain_codeset (PACKAGE, "utf-8");
解决中文不显示或出现乱码问题.
bind_textdomain_codeset (PACKAGE, "utf-8");
解决中文不显示或出现乱码问题.
- Wed Aug 24, 2011 6:28 am
- Forum: 欢迎使用中文讨论
- Topic: 这是新的程序,成功.this is the new successful prog.
- Replies: 1
- Views: 31279
Re: 这是新的程序,成功.this is the new successful prog.
putenv(改变或增加环境变量) 相关函数 getenv,setenv,unsetenv 表头文件 #include<stdlib.h> 定义函数 int putenv(const char * string); 函数说明 putenv()用来改变或增加环境变量的内容。参数string的格式为 name=value,如果该环境变量原先存在,则变量内容会依参数 string改变,否则此参数内容会成为新的环境变量。 返回值 执行成功则返回0,有错误发生则返回-1。 错误代码 ENOMEM 内存不足,无法配置新的环境变量空间 本文来源于:http://www.iteedu.com/, 原文地址:h...
- Wed Aug 24, 2011 6:25 am
- Forum: 欢迎使用中文讨论
- Topic: 这是新的程序,成功.this is the new successful prog.
- Replies: 1
- Views: 31279
这是新的程序,成功.this is the new successful prog.
这是新的程序,加入了新的语句,成功了. putenv(""); #include <locale.h> #include <libintl.h> #define PACKAGE "hello3" #define LOCALEDIR "locale" import "ecere" #define _(STRING) gettext(STRING) class HelloApp : Application { void Main() { char* lang="en"; //change lang'...
- Sun Aug 21, 2011 8:58 am
- Forum: 欢迎使用中文讨论
- Topic: 程序能翻译,但无法显示汉字
- Replies: 4
- Views: 44872
程序能翻译,但无法显示汉字
hi J
程序能翻译,但无法显示汉字
后附原代码,帮助找找哪里出错了.
thanks,
liqi
程序能翻译,但无法显示汉字
后附原代码,帮助找找哪里出错了.
thanks,
liqi
- Sun Aug 21, 2011 7:36 am
- Forum: 欢迎使用中文讨论
- Topic: gettext在windows下成功
- Replies: 2
- Views: 35712
Re: gettext在windows下成功
接着上贴的进展 实现多个源文件的翻译工作 ********hello2.ec******** #include <locale.h> #include <libintl.h> #define PACKAGE "hello2" #define LOCALEDIR "languages" #define N_(msgid) gettext(msgid) import "ecere" [color=#FF0000]import "myprint" [/color] class helloApp : Application...
- Sat Aug 20, 2011 10:09 am
- Forum: 欢迎使用中文讨论
- Topic: gettext在windows下成功
- Replies: 2
- Views: 35712
Re: gettext在windows下成功
在ecere IDE中实现翻译工作 要下载的文件已经在上一个贴中指出,这里就再不提了. #include <locale.h> #include <libintl.h> #define PACKAGE "hello" #define LOCALEDIR "languages" #define N_(msgid) gettext(msgid) import "ecere" class helloApp : Application { void Main() { setlocale(LC_ALL, ""); bindt...
- Sat Aug 20, 2011 9:44 am
- Forum: 欢迎使用中文讨论
- Topic: gettext在windows下成功
- Replies: 2
- Views: 35712
gettext在windows下成功
过程 1.准备软件.下载从mingw官方 gettext-0.17-1-mingw32-dev.tar.lzma libiconv-1.13.1-1-mingw32-dev.tar.lzma libintl-0.17-1-mingw32-dll-8.tar.lzma libgettextpo-0.17-1-mingw32-dll-0.tar.lzma libasprintf-0.17-1-mingw32-dll-0.tar.lzma libcharset-1.13.1-1-mingw32-dll-1.tar.lzma poedit 解压到mingw目录下bin,lib,include,shar...
- Thu Aug 18, 2011 5:38 am
- Forum: 欢迎使用中文讨论
- Topic: 在windows下测试gettext没成功
- Replies: 3
- Views: 38682
Re: 在windows下测试gettext没成功
收获
解压ecere_sdk
进入运行
dir *.ec /s /b >filelist.txt
f:\poedit\bin\xgettext -a -f filelist.txt -o ecere.po -from-code=utf-8
将列表中Menu.ec去除,要不会出错
得到字符串列表
MYecere.po.7z
解压ecere_sdk
进入运行
dir *.ec /s /b >filelist.txt
f:\poedit\bin\xgettext -a -f filelist.txt -o ecere.po -from-code=utf-8
将列表中Menu.ec去除,要不会出错
得到字符串列表
MYecere.po.7z