[Koha] Installation of additional languages for OPAC and Intranet

毛慶禎 mao at lins.fju.edu.tw
Tue May 17 22:05:58 NZST 2011


Hi all,

I need your help to install additional languages for OPAC and Intranet
after installing Koha.

I have fellowed this page, but did not work.
http://wiki.koha-community.org/wiki/Installation_of_additional_languages_for_OPAC_and_INTRANET_staff_client

For the teaching purpose, I use this Live CD,
Koha Live CD by Mizstik: Easiest way to try or install Koha,
release-6, 2010-10-22, Koha 3.2.0 and Ubuntu 10.10

First,  adding Traditional Chinese interface and IBus, I have Chinese
interface of Ubuntu.

System/Administration/Synaptic Package Manager - >
Setting/Repositories/updates, backports
sudo apt-get update
sudo apt-get upgrade
sudo dpkg-reconfigure locales
sudo apt-get install language-support-zh
sudo apt-get install language-selector
log out / log in -> Chinese
System/Administration/Language Support -> ...

$ sudo add-apt-repository ppa:shawn-p-huang/ppa
$ sudo apt-get update
$ sudo apt-get upgrade
$ im-switch -s ibus

So far so good.

Then, I could not add Traditional Chinese.

After this three actions.
$ cd /usr/share/koha/misc/translator
$ mkdir /usr/share/koha/opac/htdocs/opac-tmpl/prog/zh-Hans-TW/
$ mkdir /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/zh-Hans-TW/ /

It suppose only two command line:

$ perl translate install zh-Hans-TW
$ KOHA_CONF=/etc/koha/koha-conf.xml perl -I /usr/share/koha/lib/
translate install zh-Hans-TW

But, it return fellowing messages.

$ /usr/share/koha/misc/translator$ perl translate install zh-Hans-TW
readdir() attempted on invalid dirhandle $fh at LangInstaller.pm line 62.
closedir() attempted on invalid dirhandle $fh at LangInstaller.pm line 63.
Install templates
  Install templates 'opac
    From: /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/
    To  : /usr/share/koha/opac/htdocs/opac-tmpl/prog/zh-Hans-TW
    With: /usr/share/koha/intranet/cgi-bin/misc/translator/po/zh-Hans-TW-i-opac-t-prog-v-3002000.po
Can't exec "/usr/share/koha/intranet/cgi-bin/misc/translator/tmpl_process3.pl":
沒有此一檔案或目錄 at LangInstaller.pm line 286.
  Install templates 'intranet
    From: /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/
    To  : /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/zh-Hans-TW
    With: /usr/share/koha/intranet/cgi-bin/misc/translator/po/zh-Hans-TW-i-staff-t-prog-v-3002000.po
Can't exec "/usr/share/koha/intranet/cgi-bin/misc/translator/tmpl_process3.pl":
沒有此一檔案或目錄 at LangInstaller.pm line 286.
Koha directories hierarchy for zh-Hans-TW must be created first

This is my directory.

$ /etc/koha$ ls
koha-conf.xml  koha-httpd.conf  pazpar2  README.txt  zebradb

Another command still not working.

$ KOHA_CONF=/etc/koha/koha-conf.xml perl -I /usr/share/koha/lib/
translate install
zh-Hans-TW
$ /usr/share/koha/misc/translator$ KOHA_CONF=/etc/koha/koha-conf.xml
perl -I /usr/share/koha/lib/ translate install readdir() attempted on
invalid dirhandle $fh at LangInstaller.pm line 62.
closedir() attempted on invalid dirhandle $fh at LangInstaller.pm line 63.

-- 
Wishing you all the best. . . .


Anthony Mao 毛慶禎 http://bit.ly/maolins
Department of Library and Information Science
Fu Jen Catholic University  http://bit.ly/lins
510 Jhongjheng Rd., Sinjhuang City,
Taipei County 24205,
Taiwan


More information about the Koha mailing list