[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 關¤_dselect和apt-setup/perl的問題



Well, thank you very much for your reply. I know some of the locale stuff.
I didn't mean to ask perl itself to show me Chinese msg but applications
based on it to show me the specified msg. :) OK, have a look into the
perled apt-setup and you could get some "Description" there. Guys
programmed it and I thought it would be useful or it would not be there.
I don't think apt-setup is similar with C-binary programs. I did search
via google.com and got some in the perl official documentation but all
were NOT exactly what I wanted. Bad news. :( Any other better advice? :)

Dec 19, 2000

On Mon, 18 Dec 2000, Alex Lau wrote:

> The way I handle it is use dselect do the update.. and then select.. you can
> choice to unselect the updated new package... that way you won't get the
> problem..but very slow :) also..  as I remeber.. debian provide something call
> majoy update ( which mean it only update the essential package ) you may check
> that out also.
> Perl just like C you can set your locale by using gettext and set locale..that's
> why you get the error...(so do I) the problem is the program itself didn't
> (perl)
> come with a chinese locale interface..when the program look for
> (/usr/share/locale/"your-locale"/"your-app".mo) is not there.. then they use the
> default locale..that's what I understand... hope it will help you..
> so if you really want perl to show chinese message..then you may build the mo
> file form Perl source code and put it in that location. Or you can search in the
> net and see anyone already did that...  :)
> Not all app using gettext..  == Not all app can use locale.
> But I think Perl use gettext.
> Good luck
> Alex
> 
> > On Tue, Dec 19, 2000 at 12:16:17AM +0800, linuxrat@gnuchina.org wrote:
> > > 1. 使用dselect upgrade/apt-get upgrade選定一些更新的軟件之後並
> > >    執行了install,但是有一些軟件我並不想安裝,立刻就終止了. 但是
> > >    以後執行安裝的時候apt-get這些包管理程序總是抱怨而且試圖安裝
> > >    下去. 我想恢復沒有upgrade之前的狀態, 有沒有什麼比較方便直接
> > >    的命令行呢? 也就是說, 我如何取消dselect的upgrade並不讓其提示
> > >    upgrade? 我手工編輯/var/cache和/var/state,/var/lib下面apt,
> > >    dpkg相關的文件來解決是問題不大的, 只是好麻煩的說. clean, autoclean,
> > >    check這些動作都執行啦. 我想我的方式是最接近底層的了. apt的
> > >    source都打開來看了. 呵呵...
> >
> > 我好象是用 dselect ,把搗亂的包 _ 了. apt-get 應該沒有取消
> > 選擇的方法.不想升級的包使用 hold 把它懸起來.
> > >
> > > 2. apt-setup是一個perl程序, 我看到與它相關的一個信息提示模板文件
> > >    有好幾個語種的信息, 只是根據/usr/share/locale/下面的language.codeset
> > >    修改之後運行apt-setup竟然會報錯並執著地使用LANG=C. 我看了perl
> > >    doc,也沒有看出來能用其它的語種包括it,de,pl,fr等都不靈光了. 不
> > >    知道哪位道友有過給perl設置可用的i18n/l10n環境變量的沒有? 給小弟
> > >    說說何如?
> >
> > perl 就不知道了,好象它也可以用 gettext 吧?
> >
> > --
> > Best regard
> > hashao
> >
> > --
> > | This message was re-posted from debian-chinese-gb@lists.debian.org
> > | and converted from gb2312 to big5 by an automatic gateway.
> >
> > --
> > To UNSUBSCRIBE, email to debian-chinese-big5-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> --
> To UNSUBSCRIBE, email to debian-chinese-big5-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> -- 
> | This message was re-posted from debian-chinese-big5@lists.debian.org
> | and converted from big5 to gb2312 by an automatic gateway.
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: