[Koha] Language instalation problem installing an adtional language

David Liddle david at liddles.net
Thu Feb 22 03:58:03 NZDT 2024


Hello Paulo, you can certainly put the folder 'pic_dgadr' in the
'htdocs'. However, that directory is not included in the normal Koha
backup routine. For the system I manage, I created a 'web' directory
(among others) in the following location, in which '{instance}' is not
literal but a representation of the Koha instance's name:

/var/lib/koha/{instance}/

and added the following directive (exactly as shown) in
/etc/koha/apache-shared-opac.conf:

# Add '/web' directory to the OPAC interface
Alias /web "/var/lib/koha/${instance}/web"
<Directory "/var/lib/koha/${instance}/web">
    Require all granted
  <FilesMatch "README">
    Require all denied
  </FilesMatch>
</Directory>

With respect to the language directories, this is what appears on our
test system – which is also multilingual and runs Koha 22.11.14 – when
I run the 'tree' command (must be installed):

$ sudo tree -d -L 2 /usr/share/koha/opac/htdocs/opac-tmpl/
/usr/share/koha/opac/htdocs/opac-tmpl/
├── bootstrap
│   ├── css
│   ├── de-DE
│   ├── en
│   ├── fr-FR
│   ├── id-ID
│   ├── images
│   ├── itemtypeimg
│   ├── js
│   ├── lib
│   ├── th-TH
│   ├── zh-Hans-CN
│   └── zh-Hant-TW
├── lib
│   ├── Chocolat
│   ├── dayjs
│   ├── emoji-picker
│   ├── famfamfam
│   ├── flatpickr
│   ├── jquery
│   ├── js-cookie
│   ├── kjua
│   └── verovio
└── xslt

$ sudo tree -d -L 2 /usr/share/koha/intranet/htdocs/intranet-tmpl/
/usr/share/koha/intranet/htdocs/intranet-tmpl/
├── js
├── lib
│   ├── bootstrap
│   ├── Chocolat
│   ├── codemirror
│   ├── d3c3
│   ├── datatables
│   ├── dayjs
│   ├── flatpickr
│   ├── font-awesome
│   ├── greybox
│   ├── jquery
│   ├── js-cookie
│   ├── jsdiff
│   ├── keyboard
│   ├── koha
│   ├── leaflet
│   ├── linters
│   ├── select2
│   ├── shortcut
│   └── tiny_mce
└── prog
    ├── css
    ├── de-DE
    ├── en
    ├── fr-FR
    ├── id-ID
    ├── img
    ├── js
    ├── pdf
    ├── sound
    ├── th-TH
    ├── zh-Hans-CN
    └── zh-Hant-TW

You can see the directory's layout and contents quite clearly. The
error you received appears to have a mixup, since the 'opac-tmpl'
directory does not contain one named 'prog'; that can be found under
'intranet-tmpl'. If my assessment is incorrect about something not
being right in your installation, I hope that someone more
knowledgeable will point that out. If your installation is truly a
test, then I might be tempted to back up the data and reinstall Koha.

Regards,

David Liddle
System Administrator
david.liddle at wycliff.de (but not for this list)

Wycliff e.V., https://wycliff.de
Seminar für Sprache und Kultur, https://spracheundkultur.org
Internationales Tagungszentrum Karimu, https://karimu.de

On Wed, Feb 21, 2024 at 2:02 PM Paulo Neto <pneto at dgadr.pt> wrote:
>
> Hello  David,
>
>
> I think there is no reason for that, the person that personalized Opac just put the pics there the folder pic_dgadr insisde the directory  /usr/share/koha/opac/htdocs/opac-tmpl/prog
> The directory only contains pics used in our opac view.
>
> Probably the best place to hold the directory would be /usr/share/koha/opac/htdocs , if i am not wrong.
>
> Running dpkg -C i dont get any error at all , it gives me a blank response, no erros/warning shown.
>
> Regards,
>
> Paulo Neto
>
> DSIGA / DPGI
> Tel. (+351) 21 844 2228
> http://www.dgadr.gov.pt
>
>
>
>
>
>
>
>
>
> -----Mensagem original-----
> De: David Liddle <david at liddles.net>
> Enviada: 21 de fevereiro de 2024 11:48
> Para: Paulo Neto <pneto at dgadr.pt>
> Cc: koha <koha at lists.katipo.co.nz>
> Assunto: Re: [Koha] Language instalation problem installing an adtional language
>
> Hello Paul,
>
> Did you put the folder with pictures in that directory for a particular reason? Unless I'm mistaken:
> - that pictures folder would be better placed in another directory, and
> - that directory should have other directories in it.
>
> It makes me wonder if you have a complete installation of Koha. As a basic check, see what the following command produces:
>
> dpkg -C
>
> Regards,
>
> David Liddle
> System Administrator
> david.liddle at wycliff.de (but not for this list)
>
> Wycliff e.V., https://wycliff.de
> Seminar für Sprache und Kultur, https://spracheundkultur.org Internationales Tagungszentrum Karimu, https://karimu.de
>
> On Tue, Feb 20, 2024 at 11:06 AM Paulo Neto <pneto at dgadr.pt> wrote:
> >
> > Hello all,
> >
> > I have got a test machine with koha 22.11.14
> >
> > When i run
> >
> > koha at gbiblio2:~$ koha-translate --list pic_dgadr
> >
> > showing me pic_dgadr , thats a directory i created to put my koha pictures used o the opac.
> >
> > I wanted to install pt-PT language and then i run:
> >
> > koha at gbiblio2:~$ sudo koha-translate --install pt-PT
> >
> > Then obtained this messages:
> >
> > /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/: Input must be a directory.
> > (Symbolic links are not supported at the moment) Try `/usr/share/koha/misc/translator/tmpl_process3.pl --help for more information.
> > /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/: Input must be a directory.
> > (Symbolic links are not supported at the moment) Try `/usr/share/koha/misc/translator/tmpl_process3.pl --help for more information.
> > /usr/share/koha/opac/htdocs/opac-tmpl/prog/en/: Input must be a directory.
> > (Symbolic links are not supported at the moment) Try `/usr/share/koha/misc/translator/tmpl_process3.pl --help for more information.
> >
> > Connection to the memcached servers '__MEMCACHED_SERVERS__' failed. Are the unix socket permissions set properly? Is the host reachable?
> > If you ignore this warning, you will face performance issues
> >
> > Note: I dont have the "en" directory in "/usr/share/koha/opac/htdocs/opac-tmpl/prog"
> >
> > Running the comand mentioned above - usr/share/koha/misc/translator/tmpl_process3.pl --help - :
> >
> > root at gbiblio2:~# /usr/share/koha/misc/translator/tmpl_process3.pl --help Can't locate C4/TmplTokenType.pm in @INC (you may need to install the C4::TmplTokenType module) (@INC contains: /usr/share/koha/misc/translator /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/koha/misc/translator/TmplTokenizer.pm line 4.
> > BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/TmplTokenizer.pm line 4.
> > Compilation failed in require at /usr/share/koha/misc/translator/tmpl_process3.pl line 22.
> > BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 22.
> >
> > After all this It seems to have instaled the pt-Pt language:
> >
> > root at gbiblio2:~# koha-translate --list pic_dgadr pt-PT
> >
> > The PT language shows on the opac and on intranet view and it seems to have translated correctly.
> >
> > Running  the comand koha-translate and trying to uninstall/remove  the
> > language installed pt-PT it doesnt get removed and it doesnt show a
> > warning/error message
> >
> > Command used to remove pt-PT language: koha-translate --remove pt-PT
> >
> > The upgrade command also doesnt seem to have any efect koha-translate --update pt-PT doesnt show any warning/error message at all.
> >
> > Any sugestions that could solve my problem?
> > Any way to verify the translated version?
> > And if i cant remove the pt-PT language  how can i manually remove it from koha language list? This is particulary usefull on a upgrade when i will need to reinstall or upgrade the langauge or languages installed.
> >
> >
> > Best regards,
> >
> > Paulo Neto
> >
> > DSIGA / DPGI
> > Tel. (+351) 21 844 2228
> > http://www.dgadr.gov.pt
> >
> >
> >
> >
> > Running the comand mentioned above:
> >
> > "root at gbiblio2:~# /usr/share/koha/misc/translator/tmpl_process3.pl --help Can't locate C4/TmplTokenType.pm in @INC (you may need to install the C4::TmplTokenType module) (@INC contains: /usr/share/koha/misc/translator /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/koha/misc/translator/TmplTokenizer.pm line 4.
> > BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/TmplTokenizer.pm line 4.
> > Compilation failed in require at /usr/share/koha/misc/translator/tmpl_process3.pl line 22.
> > BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 22."
> >
> > It seems to have instaled the pt-Pt language:
> >
> > root at gbiblio2:~# koha-translate --list pic_dgadr pt-PT
> >
> >
> > Any sugestions that could solve my problem?
> >
> > The directory /usr/share/koha/opac/htdocs/opac-tmpl/prog
> > Has this two folders:
> >
> > pic_dgadr  pt-PT
> >
> > Best regards,
> >
> > Paulo Neto
> >
> > DSIGA / DPGI
> > Tel. (+351) 21 844 2228
> > http://www.dgadr.gov.pt
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Koha mailing list  http://koha-community.org Koha at lists.katipo.co.nz
> > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list