[Bug 3754] New: Language detection doesn't take really care of syspref
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 Summary: Language detection doesn't take really care of syspref Product: Koha Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: I18N/L10N AssignedTo: nahuel.angelinetti@biblibre.com ReportedBy: nahuel.angelinetti@biblibre.com Estimated Hours: 0.0 Change sponsored?: --- If you choose only english in "opaclanguage" or "language" syspref, and theme is translated in spanish and french. The frenchies and spanishes browsers will use french and spanish translated files, instead of use only english files ans specified in syspref. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 Nahuel Angelinetti <nahuel.angelinetti@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal Status|NEW |ASSIGNED Priority|P5 |PATCH-Sent -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 --- Comment #1 from Ricardo Dias Marques <ricmarques@spamcop.net> 2009-11-17 13:55:57 --- Created an attachment (id=1248) --> (http://bugs.koha.org/cgi-bin/bugzilla3/attachment.cgi?id=1248) Look of Koha staff client in Koha 3.0.4, with pt-BR folder, before Nahuel patch -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 --- Comment #2 from Ricardo Dias Marques <ricmarques@spamcop.net> 2009-11-17 14:34:15 --- Created an attachment (id=1249) --> (http://bugs.koha.org/cgi-bin/bugzilla3/attachment.cgi?id=1249) Look of Koha staff client in Koha 3.0.4, with pt-BR folder, AFTER Nahuel patch Staff client looks much better, after applying Nahuel's patch! :) However, I can't switch language from Português (Portuguese) to English -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 Ricardo Dias Marques <ricmarques@spamcop.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #1249 is|0 |1 obsolete| | --- Comment #3 from Ricardo Dias Marques <ricmarques@spamcop.net> 2009-11-17 14:36:38 --- Created an attachment (id=1250) --> (http://bugs.koha.org/cgi-bin/bugzilla3/attachment.cgi?id=1250) Look of Koha staff client in Koha 3.0.4, with pt-BR folder, AFTER Nahuel patch Staff client looks much better, after applying Nahuel's patch! :) However, I can't switch language from Português (Portuguese) to English -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 --- Comment #4 from Ricardo Dias Marques <ricmarques@spamcop.net> 2009-11-17 14:47:19 --- Created an attachment (id=1251) --> (http://bugs.koha.org/cgi-bin/bugzilla3/attachment.cgi?id=1251) Look of Koha staff client in Koha 3.0.4, with pt-BR folder, AFTER Nahuel patch AND my patch After applying my patch, as a follow-up to Nahuel's patch, I get the same correct look of the "staff client" (thanks to Nahuel's patch) *and* I can now switch between "Português" (Portuguese) and English (thanks to my patch). -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 --- Comment #5 from Ricardo Dias Marques <ricmarques@spamcop.net> 2009-11-17 14:50:14 --- Created an attachment (id=1252) --> (http://bugs.koha.org/cgi-bin/bugzilla3/attachment.cgi?id=1252) [Koha-patches] [PATCH] Bug 3754: Follow-up patch My follow-up patch (to Nahuel's patch) that enables the switch between "Português" (Portuguese) and English -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3754 Ricardo Dias Marques <ricmarques@spamcop.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ricmarques@spamcop.net --- Comment #6 from Ricardo Dias Marques <ricmarques@spamcop.net> 2009-11-17 15:38:05 --- Nahuel Angelinneti has submitted a patch that solves this problem and that was committed for the 3.0.x branch of Koha. The patch is available here: ---------------------------------------- (bug #3754) fix language choose http://git.koha.org/cgi-bin/gitweb.cgi?p=Koha;a=commit;h=df25509e8c500c0e91b... author Nahuel ANGELINETTI <nahuel.angelinetti@biblibre.com> Tue, 3 Nov 2009 15:30:22 +0000 (16:30 +0100) committer Henri-Damien LAURENT <henridamien.laurent@biblibre.com> Tue, 3 Nov 2009 15:47:46 +0000 (16:47 +0100) commit df25509e8c500c0e91b9f2343ebca1c7c98238cf ---------------------------------------- This patch solved a problem that I was having, in the Intranet (Staff) interface in a Koha 3.0.4 setup (UNIMARC and NoZebra installation, running in a SLES 11 virtual machine - SUSE Linux Enterprise Server 11). That installation had "Português" (Portuguese, "pt-PT") and also "Português (Brasil)" (Brazilian Portuguese, "pt-BR") template folders. After I logged in to the staff client, I got the *very weird* screenshot (in Mozilla Firefox 3.5.5, in Windows XP Professional) that's available at: http://bugs.koha.org/cgi-bin/bugzilla3/attachment.cgi?id=1248 The languages set in Firefox (under "Tools", "Options", "Content" tab, "Languages" section) were these (in the following order): - Portuguese [pt] - English/United States [en-us] - French [fr] - English [en] The problem was correctly traced by Chris Cormack that pointed that, for "pt-BR", there's no "includes" directory under: /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/pt-BR However, my System Preferences that are related to language have the following values (none of them mentions pt-BR): mysql> select variable, value from systempreferences where variable LIKE '%lang%'; +----------------------+----------+ | variable | value | +----------------------+----------+ | language | pt-PT,en | | opaclanguages | pt-PT,en | | opaclanguagesdisplay | 1 | +----------------------+----------+ 3 rows in set (0.00 sec) The weird look of the screenshot went away when applying Nahuel's patch. Thanks Nahuel! :) HOWEVER, I was unable to switch between "Português" (Portuguese) and "English". I created a follow-up patch to Nahuel's (that "builds" on his patch) and that solved the problem of being unable to switch. I sent the patch to the "Koha Patches" mailing list and the patch is available at: [Koha-patches] [PATCH] Bug 3754: Follow-up patch http://bugs.koha.org/cgi-bin/bugzilla3/attachment.cgi?id=1252 So, I would like to ask you to also apply ("commit") my patch to the 3.0.x branch, so that it gets included for the 3.0.5 release. I don't have a git setup for the "master" branch but I suspect that these problems also happen for that one, and so the two patches should also be applied to that branch (as two patches or as a single patch). On a related note, could you also commit the following patch (also for 3.0.5): [Koha-patches] [PATCH] Fix for Bug 3730 - Wrong ISO 639-2 Language Code for Portuguese in database http://lists.koha.org/pipermail/koha-patches/2009-October/004766.html Thanks and congratulations for the work already done! :) -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@kohaorg.ec2.liblime.com