[Koha-bugs] [Bug 12017] Move language description out of database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 2 19:57:54 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12017

--- Comment #15 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 26770
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26770&action=edit
Bug 12017 - Followup to set one location for languages.inc

This patch implements things that needs their own reports.
Just consider it a proof of concept. Don't sign

It:
1) Adds a new function to Koha.tt plugin to get any value
of config variable
(needs own report)

2) Create a include dir on opachtdocs to be used as a
general include dir for all interefaces and themes
I opted for opachtdocs in the thinking that it's has
more public access than intrahtdocs
(needs own report)

3) Adds "USE Koha" in doc-head-close.inc on every interface/theme
to use Koha template plugin. It's used in almost all
opac files, and many staff. So make it universal
I suppose there is a better way
(needs own report)

4) Copy languages.inc to new created general include dir
and rewrite all relevant files to find and use this only file
looking for it by PATH. Removed all other languages.inc files.

Main idea is remove the need to n-plicate template files of general use.

If you want to test:
1) Apply the patch
2) Check that all works as first patch test plan, EXCEPT for
translations because strings to translate are looked only on
theme dir. But if Bug 7939 pass, an arbitrary dir can be
searched and its strings added to some OPAC po file to
be translated. Another solution is to use as general include
dir en/bootstrap's

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list