Go to file
Mathieu Saby 7c428e6ea0 Bug 8954: Make languages list in advanced search translatable (revision 1)
In opac-search.pl and search.pl, this patch moves the $lang variable from the end to the begining of the script, and use it as a parameter for getAllLanguages.
In Languages.pm, getAllLanguages function is modified :
- if no parameter is passed to the function, it returns english languages names
- if a $lang parameter conforming to RFC4646 syntax is passed :
-- the function returns languages names translated in $lang if possible
-- if a language name is not translated in $lang in database, the function returns english language name
To test, set your opac and staff interface in english and in other languages and check search.pl and opac-search.pl :
- If language names in your languages_description table are translated in the same language you use for your GUI, the language names in dropdown list will be translated in this language (+native name).
- If your GUI is in english, or in a language into whitch languages names are not translated in languages_description, the dropdown list will stay in english (+native name).

Signed-off-by: Marc Veron <veron@veron.ch>

Patch behaves as expected.

With Opac language set to French I got all languages with French language name.
With German (de-DE), I got only a few with German language names (and all other with English ones),
this was due to missing entries for de-DE in table language_descriptions.
This behaviour is consistent with the description above.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

Tested language list in OPAC and staff advanced search is translated
properly after applying the patch. Checked that language switcher still
works like it should.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Fixed typo in POD.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-11-28 14:12:45 +13:00
C4 Bug 8954: Make languages list in advanced search translatable (revision 1) 2012-11-28 14:12:45 +13:00
Koha/Template/Plugin Bug 929 : Followup fixing date formatting 2012-01-16 15:59:41 -05:00
acqui Bug 8439 - Printing basketgroup does not work on plack 2012-09-13 19:16:10 -04:00
admin Bug 8772 - Uninitialized variable triggers error log entry in smart_rules.pl 2012-10-12 22:01:14 -04:00
authorities Bug 8744: Thesaurus in authorities should not lock fields 2012-10-12 22:00:54 -04:00
basket Bug 6050 Make calls to GetItemsInfo consistent 2011-06-14 14:12:02 +12:00
catalogue Bug 8954: Make languages list in advanced search translatable (revision 1) 2012-11-28 14:12:45 +13:00
cataloguing Bug 8862 follow-up s/\t/4spaces/g 2012-11-15 16:26:07 +13:00
circ Bug 2505 : Switch on warnings in circ/returns.pl 2012-08-11 07:13:41 -04:00
debian Bug 8806 - [3.6.x] Update changelog for 3.6.5-3.6.9, dependencies. 2012-10-12 22:01:46 -04:00
docs Bug 7143: Adding Kathryn Tyree to the history and About page. 2012-10-12 21:59:23 -04:00
errors Housekeeping in errors scripts 2010-05-12 07:29:03 -04:00
etc Bug 7586 - Search: Language restriction does NOT show expected results (no items shown) 2012-08-11 07:29:16 -04:00
install_misc Bug 8489: Revise Ubuntu install files 2012-07-21 13:41:10 -04:00
installer Bug 9024: Fix typo 2012-11-28 13:56:33 +13:00
koha-tmpl Bug 8983: Typo in UNIMARCslim2OPACResults.xsl 2012-11-28 13:57:16 +13:00
labels Bug 8140 - [SIGNED-OFF] Error when exporting label xml 2012-07-12 21:15:41 -04:00
members Bug 7068 - autobarcode not working when duplicating patrons 2012-10-12 21:59:26 -04:00
misc Merge remote-tracking branch 'tamil/3.6.10-translate' into 3.6.x 2012-10-23 07:13:14 -04:00
offline_circ Bug 4976 - Status of item returned with process_koc.pl is empty in Intranet 2012-05-08 17:48:59 -04:00
opac Bug 8954: Make languages list in advanced search translatable (revision 1) 2012-11-28 14:12:45 +13:00
patroncards bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
reports Bug 4330 : Fixing FSF address and copyright headers 2012-07-12 21:15:39 -04:00
reserve Bug 8455 - Check ins processed through "Check Out" tab of the Patron Record ignore Circulation System Preferences 2012-10-12 21:18:12 -04:00
reviews Bug 1623 - Provide view of approved comments 2012-01-16 15:47:29 -05:00
rotating_collections Bug 6553 : Follow up adding license statements 2011-08-13 19:54:38 +12:00
selenium Adding selenium tests for filterMembers 2009-09-30 11:30:37 +02:00
serials Bug 7753: serials-home displays library name instead of code 2012-05-08 17:49:12 -04:00
skel installer: fixed chown invocation; added skel for KOHA_LOG_DIR 2007-12-17 09:13:53 -06:00
sms Bug 2505 - Add commented use warnings where missing in the sms/ directory 2010-04-21 20:25:08 +12:00
suggestion Bug 6894: Order from suggestion defaulting to wrong currency 2011-12-02 15:47:24 -05:00
svc Bug 6752: Be stricter with utf-8 encoding of output 2012-02-19 15:51:19 -05:00
t Bug 8594 - prevent the report system from breaking some subqueries 2012-10-12 21:59:10 -04:00
tags Bug 8315 - fix 'C4::Output 3.02' errors in Koha 2012-08-11 07:29:37 -04:00
test Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
tmp/modified_authorities changing DO_NOT_REMOVE to README.txt 2007-10-21 19:14:41 -05:00
tools Bug 7833 - unique holiday link broken 2012-06-21 10:09:05 -04:00
virtualshelves Fix for Bug 6957, authors disappearing when emailing lists 2011-10-20 11:34:39 +13:00
xt Bug 8470: remove depreciated H:T:P test 2012-09-13 19:16:11 -04:00
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap Bug 7439 Follow up for mailmap 2012-01-18 10:11:06 -05:00
INSTALL Bug 1577 - update INSTALL to mention need to translate templates 2012-06-21 10:09:08 -04:00
INSTALL.debian Updating distro specific install files 2011-10-22 09:12:15 +13:00
INSTALL.fedora7 Bug 7532 - remove dependency on Date::ICal 2012-02-19 21:00:38 -05:00
INSTALL.opensuse Bug 7356 - Fix various typos and mis-spellings 2012-01-18 10:10:53 -05:00
INSTALL.ubuntu Bug 7858 - Missing packages from install_misc/ubuntu.packages 2012-05-08 17:49:36 -04:00
INSTALL.ubuntu.lucid Updating distro specific install files 2011-10-22 09:12:15 +13:00
LICENSE Update LICENSE with a fresh copy from upstream. This updates the FSF address, and refers to the LGPL with its current name, and changes a few other minor things of the typographical sort. No semantic changes. 2010-03-16 20:17:48 -04:00
MANIFEST.SKIP Bug Fixing : 3334 2009-06-19 06:33:34 -05:00
Makefile.PL Bug 7359 - Begin migration to a new "Koha" namespace from the old "C4" namespace 2012-02-19 15:54:00 -05:00
README updated links in README 2010-05-24 08:14:16 -04:00
README.robots Bug 6411 add another example to README.robots 2011-07-05 14:48:05 +12:00
about.pl Bug 8910 - silent warnings triggered in about.pl 2012-11-19 12:33:43 +13:00
changelanguage.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
edithelp.pl Bug 7038 Contextual help is always in English 2011-10-18 16:01:25 +13:00
fix-perl-path.PL installer: improvements to fix-path-perl.PL on Win32 2007-12-20 19:20:12 -06:00
help.pl Bug 8705: Software error on help of main page 2012-10-12 22:00:25 -04:00
install-CPAN.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
koha_perl_deps.pl Bug 6914 - fixes for the color option of koha_perl_deps.pl 2011-12-03 07:13:03 -05:00
kohaversion.pl Bump version number for 3.6.10 release 2012-10-23 07:17:35 -04:00
mainpage.pl Revert "Bug 6875 cleaning mainpage.pl" 2012-02-22 14:44:06 -05:00
rewrite-config.PL Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00

README

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/