Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] how to set specific LINGUAS for specific softs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 85
Location: JiangSu,China

PostPosted: Sun Apr 07, 2013 7:30 am    Post subject: [Solved] how to set specific LINGUAS for specific softs Reply with quote

I use en_US as the default value for LINGUAS.
but when use some specific softs ,like gimp,or some others,my English is so poor that I can't always understand the meaning of menus immediately,without the help of stardict.

so I emerge like this ,LINGUAS=zh_CN emerge gimp,
and my question is ,how to set LINGUAS=zh_CN for gimp while keep other soft LINGUAS=en_US in /etc/make.conf.

in /etc/portage ,there're portage.keywords,license,use,unmask
which is the right one to set LINGUAS ? and how to set?

thank you


Last edited by double_crane on Sun Apr 07, 2013 10:10 am; edited 1 time in total
Back to top
View user's profile Send private message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 85
Location: JiangSu,China

PostPosted: Sun Apr 07, 2013 7:40 am    Post subject: Reply with quote

#: LINGUAS=zh_CN emerge gimp , doesn't work
menu is still in English
now I'm trying # LINGUAS=zh_CN emerge -uDN gimp

#####################################

still failed.

####################################

sorry, I had forgot to set LANG=zh_CN when use gimp
it works


Last edited by double_crane on Sun Apr 07, 2013 10:12 am; edited 1 time in total
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Sun Apr 07, 2013 8:33 am    Post subject: Reply with quote

You can set per-package LINGUAS in /etc/portage/package.use:

Code:
media-gfx/gimp linguas_zh_CN

_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
hdcg
n00b
n00b


Joined: 07 Apr 2013
Posts: 26

PostPosted: Sun Apr 07, 2013 8:33 am    Post subject: Reply with quote

Hi,

see here http://wiki.gentoo.org/wiki//etc/portage/env for how to set variables on per package base.

Kind Regards
Back to top
View user's profile Send private message
fpemud
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2012
Posts: 123

PostPosted: Sun Apr 07, 2013 9:02 am    Post subject: Reply with quote

I think you should set LINGUAS="en_US zh_CN" in make.conf, so every package can have both english and chinese locale.

when running gimp, use:
Code:
LC_ALL="zh_CN.UTF-8" gimp
Back to top
View user's profile Send private message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 85
Location: JiangSu,China

PostPosted: Sun Apr 07, 2013 10:09 am    Post subject: Reply with quote

yes,I have forgot to set LANG=zh_CN when use gimp
it works.

thank you all.
Back to top
View user's profile Send private message
double_crane
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2011
Posts: 85
Location: JiangSu,China

PostPosted: Sun Apr 07, 2013 10:18 am    Post subject: Reply with quote

nice

hdcg wrote:
Hi,

see here http://wiki.gentoo.org/wiki//etc/portage/env for how to set variables on per package base.

Kind Regards


you register today,but with so experience. admire...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum