How do I control the language used by gtk ?
- From: Ionutz Borcoman <borco borco-ei eng hokudai ac jp>
- To: gtk-i18n-list <gtk-i18n-list redhat com>
- Subject: How do I control the language used by gtk ?
- Date: Mon, 04 Jan 1999 18:21:23 +0900
Hi,
In order to be able to use the fontset and the capability to automatic
switch between Romaji/Japanese I have done these:
1. Added to my .bashrc and .bashrc_profile the line:
export LANG=ja_JP.ujis
2. added:
gtk_set_locale ();
before anything else in my main function.
3. created a rc file which is loaded and parsed at start time. (rc file
is attached)
Everything is OK with the fontset but I have a problem now: the gtk load
file dialog is displayed now with Japanese text. How do I force it to
use English text ? How do I prevent other applications using Japanese
for messages, etc. ? How do I set locale at running time ?
setlocale(LC_ALL,"ja_JP.ujis") doesn't work correctly :-(
TIA,
Ionutz
PS: my system is Debian Potato with gtk 1.1.11.
style "default"
{
fontset=
"-adobe-times-medium-r-normal--12-*-*-*-*-*-*-*,
-jis-gothic-medium-r-normal--18-*-*-*-*-*-jisx0208.1983-0"
}
# it seem require to put `*' before class name...
widget_class "*GtkLabel" style "default"
widget_class "*GtkButton" style "default"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]