And an article on the GTK +

Category: Linux/Unix Community -> Applications Author: loveqiao2 Date: 2001-07-09 17:03:17
 
loveqiao2
2001-07-09 17:03:17
In IBM dw site:

please correct me
beabball
2001-07-09 17:20:30
really hope you can Chapter VI of 6.2 on the mapping of some function or macro that can talk in detail , the Chinese about this stuff, I did not find the English did not find an API. Look at the English GDK API scratch a little read.
colourwol
2001-07-09 17:26:40
$ msgfmt-o hello.mo hello.po
msgfmt: hello.po: warning: Charset "CHARSET" is not a portable encoding name.
Message conversion to user's charset might not work.
wrong, please Song teacher guidance.
hello.po content:
------------------------------------ ---------------------------------------------
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <[email protected]>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION \ n"
"POT-Creation-Date: 2003-04-26 09:59 +0800 \ n "
" PO-Revision-Date: YEAR-MO-DA HO: MI + ZONE \ n "
" Last-Translator: FULL NAME <[email protected]> \ n "
" Language-Team: LANGUAGE <[email protected]> \ n "
" MIME-Version: 1.0 \ n "
" Content-Type: text / plain; charset = CHARSET \ n "
" Content-Transfer-Encoding: 8bit \ n "

#: hello.c: 41 hello.c: 44
msgid" Hello World! "
msgstr" Hello World ! "

#: Hello.c: 46
msgid" hello! \ NFree world. "
Msgstr" Hello \ n free World! "
-------------------------------------------- ------------------------
$ ls
hello hello.c hello.mo hello.po locale Makefile
hello.c part of the contents:
---------------------- -------------------------------------
button = gtk_button_new_with_label (_ ("Hello ; World! "));
g_signal_connect (G_OBJECT (button)," clicked ",
G_CALLBACK (on_button_clicked), (gpointer) _ (" hello! \ nFree world. ") );
-------------------------------------------- -----------------------------
lwqlwq721286868
2001-07-09 17:46:17
"Project-Id-Version: PACKAGE VERSION \ n "
" POT-Creation-Date: 2003-04-26 09:59 +0800 \ n "
" PO-Revision-Date: YEAR-MO-DA HO: MI + ZONE \ n "
" Last-Translator: FULL NAME <[email protected]> \ n "
" Language-Team: LANGUAGE <LL @ li.org> \ n "
" MIME-Version: 1.0 \ n "
" Content-Type: text / plain; charset = CHARSET \ n "

the previous line CHARSET UTF8 instead try
can also look to upgrade gettext package

"Content-Transfer-Encoding: 8bit \ n"
qq385979679
2001-07-09 17:48:53
Thank you, one more thing, I ask you to write that book about "GTK +2.0" of the book, on the Internet
modify pages? I did write the book examples have two wrong. For one, the book printing error. Another
months I have not found what the problem is.
kingwolfbill
2001-07-09 18:05:03
$ msgfmt-o hello.mo hello.po
msgfmt: hello.po: warning: Charset "UTF8" is not a portable encoding name.
Message conversion to user's charset might not work.
error, there
stu20071812
2001-07-09 18:14:05
should be able to run it
readme72
2001-07-09 18:27:07
can not, I'll try it on the book this example, the top is done according to the Internet, books have not seen this yet.