Installation of additional languages for OPAC and Intranet
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... 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
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.
It's a known and resolved bug (#5506). You need to upgrade to last Koha 3.2.9 version. -- Frédéric DEMIANS http://www.tamil.fr/u/fdemians.html
2011/5/17 Frédéric Demians <frederic@tamil.fr>:
> 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.
It's a known and resolved bug (#5506). You need to upgrade to last Koha 3.2.9 version.
-- Frédéric DEMIANS
Thanks. Any other ways to add languages? also get wrong message $ cd /usr/share/koha/misc/translator mkdir /usr/share/koha/opac/htdocs/opac-tmpl/prog/zh-Hans-TW/ $ sudo ./tmpl_process3.pl install \ -i /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/ \ -o /usr/share/koha/opac/htdocs/opac-tmpl/prog/zh-Hans-TW/ \ -s /home/koha/zh-Hans-TW-i-opac-t-prog-v-3002000.po \ -r -- 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
Dear Frédéric, Can not install Chinese after upgrade to Koha 3.02.09.000. Make two subdirectories. $ mkdir /usr/share/koha/opac/htdocs/opac-tmpl/prog/zh-Hans-TW/ $ mkdir /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/zh-Hans-TW/ Move to $ cd /usr/share/koha/misc/translator root@debian:/usr/share/koha/misc/translator# perl translate install zh-Hans-TW Still could not make it. Any solution? Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at LangInstaller.pm line 23. BEGIN failed--compilation aborted at LangInstaller.pm line 23. Compilation failed in require at translate line 25. BEGIN failed--compilation aborted at translate line 25. 2011/5/17 Frédéric Demians <frederic@tamil.fr>:
> 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.
It's a known and resolved bug (#5506). You need to upgrade to last Koha 3.2.9 version.
-- Frédéric DEMIANS http://www.tamil.fr/u/fdemians.html _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- 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
$ cd /usr/share/koha/misc/translator
root@debian:/usr/share/koha/misc/translator# perl translate install zh-Hans-TW
Still could not make it. Any solution? Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
This error message means that your PERL5LIB environment variable doesn't point to C4 Koha sub-directory. See installation note to set properly this variable. -- Frédéric DEMIANS http://www.tamil.fr/u/fdemians.html
Thank you all. Special thanks to Frédéric. I have Chinese interface both OPAC and Intranet. 2011/5/18 Frédéric Demians <frederic@tamil.fr>:
> $ cd /usr/share/koha/misc/translator > > root@debian:/usr/share/koha/misc/translator# perl translate install zh-Hans-TW > > Still could not make it. > Any solution? > Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
This error message means that your PERL5LIB environment variable doesn't point to C4 Koha sub-directory. See installation note to set properly this variable.
-- Frédéric DEMIANS http://www.tamil.fr/u/fdemians.html
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- 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
participants (2)
-
Frédéric Demians -
毛慶禎