LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2010, 07:44 AM   #1
zauberliu
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
problem for display chinese in gedit


Hi everybody,
Here is a very strange thing. First, I have used Chinese simplified language as default language, at that time I can use gedit to open some chinese file, also at panel of gedit, there were Chinese like open blah blah.
After I closed it and open it again, strange things happened, there were no Chinese words at panel , and could not display Chinese.....

Later, i have tried to logout session and login with Gnome session and set the default language as Chinese. This time, file names , program names can be showed in Chinese perfectly, somehow for gedit, nothing has changed, and English panel, no Chinese can be displayed.

Could anybody help me for that? Any suggestion?
 
Old 01-31-2010, 06:53 AM   #2
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
Quote:
Could anybody help me for that? Any suggestion?
Use smaller fonts, those fonts are huge.
It doesn't matter what language (as long as you have the fonts for it), if you started the x session (if using gnome, probably gdm?) with a locale (language), everything supporting it will be shown in that language.

What Linux distribution are you using?

If you have problems with your X session, maybe you should start specific programs by the terminal.
1) Choose a locale:
Code:
locale -a
I use Japanese, so I'd choose ja_JP.utf8 or something.
2) Run the program like, LANG="chosen_locale" program_name. For example:
Code:
LANG=ja_JP.utf8 gedit &
So, if you close your gnome-panel (you can do that in gnome-session-properties by removing gnome-panel and clicking on apply), and do
Code:
 LANG="chosen_locale" gnome-panel &
your panel would be in the chosen language too.
 
Old 01-31-2010, 10:40 AM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Just a shot in the dark, but maybe installing scim and scim-pinyin would help. Also, the package canna helps with Japanese letters (I don't know if canna does anything for Chinese letters, though). Make sure you've got some Chinese fonts, like xfonts-intl-chinese, installed, too. Note: I'm referencing Debian packages here, but I'm sure the packages in whatever distribution you're using will have similar names.
 
Old 02-08-2010, 04:45 AM   #4
zauberliu
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
about the display problem

Hi together, thank you
About this problem, we have tried this script:
LANG=zh_CN.GB18030
LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
export LANG LANGUAGE
it works.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(gedit:6540): Gtk-WARNING **: cannot open display: :0 jax8 Programming 3 05-07-2009 07:57 AM
How to display Chinese in Linux dragondeer Red Hat 1 07-31-2008 05:16 AM
Chinese font display problem Jiawen Linux - General 1 12-02-2005 02:53 AM
could not display chinese so-fish Linux - Software 8 06-04-2004 06:44 PM
How to display chinese filename kevin_liu Linux - Software 2 09-29-2003 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration