Hi there. I've a Koha installation with portuguese and english languages installed, but by default the OPAC and Staff Client appears in english and then it's possible to change to Portuguese. There is anyway to set the default language of Koha? I want that OPAC and Staff Client appears in Portuguese and then can change to English. Regards. Vitor Fernandes
I noted that. If my broswer (Chrome, Firefox, etc.) are in English the language of the OPAC load in English. I installed Spanish version of crhome and the degault language is set to spanish. By the way... are you delete the history, cookies, etc. of your browser and restart it. Could help. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
If my broswer (Chrome, Firefox, etc.) are in English the language of the OPAC load in English. I installed Spanish version of crhome and the degault language is set to spanish. Hi, Adalid! Did this work? Do you know since which version? I just read from 3.10. release newfeatures that: /// 'I18N/L10N • Preserve language choice between Browser sessions (bug #8019) If I select a language in Staff client or Opac, I expect it to be persistent between browser sessions. This is not the case. Koha forgets the selection as soon as all Broser instances are closed, and starts up the next session with the Browser's preferred language. With this patch, the language choice is stored for up to 3 years from the last login. /// So was this browserdetection workin already 2 years behind? cheers, Gary ----- (Mr.) Kari Blomster, librarian Hailuoto Public Library, Finland | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... Profiles | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... -- View this message in context: http://koha.1045719.n5.nabble.com/Set-principal-language-tp4263943p5733808.h... Sent from the Koha-general mailing list archive at Nabble.com.
Kari Blomster wrote
So was this browserdetection workin already 2 years behind?
Note to self: read carefully. Sorr, this question was answered already.
cheers, Gary
----- (Mr.) Kari Blomster, librarian Hailuoto Public Library, Finland | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... Profiles | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... -- View this message in context: http://koha.1045719.n5.nabble.com/Set-principal-language-tp4263943p5733810.h... Sent from the Koha-general mailing list archive at Nabble.com.
In my Koha installation the Spanish language translation was not complete by my system administration so i have a "spanglish" OPAC. Recently I turned off the language selection and set the default language "spanish" for the OPAC and see that this work and the language of firefox, chrome, etc. are in spanish. I have no administrative access to my koha server. Maybe this work but i'm not sure because the incomplete translation process. I noted in others koha opacs that send the language selection as a "parameter"like http://koha..../?language?Es or somehting like that. I don't know if that work but will be a good solution. Saludos. Kari Blomster <m.kirjasto.hailuoto@gmail.com> escribió:
If my broswer (Chrome, Firefox, etc.) are in English the language of the OPAC load in English. I installed Spanish version of crhome and the degault language is set to spanish.
Hi, Adalid! Did this work? Do you know since which version? I just read from 3.10. release newfeatures that: /// 'I18N/L10N • Preserve language choice between Browser sessions (bug #8019) If I select a language in Staff client or Opac, I expect it to be persistent between browser sessions.
This is not the case. Koha forgets the selection as soon as all Broser instances are closed, and starts up the next session with the Browser's preferred language. With this patch, the language choice is stored for up to 3 years from the last login. ///
So was this browserdetection workin already 2 years behind?
cheers, Gary
----- (Mr.) Kari Blomster, librarian Hailuoto Public Library, Finland | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... Profiles | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... -- View this message in context: http://koha.1045719.n5.nabble.com/Set-principal-language-tp4263943p5733808.h... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Vitor, please try my (raw?) solution adding the following JS code to sysprefs opacuserjs and intranetuserjs. Ensure you deleted cookie KohaOpacLanguage from your browser before testing it. var lang = readCookie('KohaOpacLanguage'); if (!lang) { // no language specified, change to Italian setCookie('KohaOpacLanguage','it-IT',null,'/'); window.location.href=location.href; // reload page } function setCookie(name, value, expires, path, domain, secure) { // set time, it's in milliseconds var today = new Date(); today.setTime( today.getTime() ); /* if the expires variable is set, make the correct expires time, the current script below will set it for x number of days, to make it for hours, delete * 24, for minutes, delete * 60 * 24 */ if ( expires ) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date( today.getTime() + (expires) ); document.cookie = name + "=" +escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" ); } Function readCookie is defined in tags.js, already loaded by Koha, while I'm not sure of something similar for setCookie. Maybe developers can tell us more, to avoid reinvent the wheel. HTH. Stefano On Mar 25, 2011, at 12:55 , Vitor Fernandes wrote:
Hi there.
I've a Koha installation with portuguese and english languages installed, but by default the OPAC and Staff Client appears in english and then it's possible to change to Portuguese. There is anyway to set the default language of Koha? I want that OPAC and Staff Client appears in Portuguese and then can change to English.
Regards. Vitor Fernandes _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hi Stefano e Vitor! Did this workaround do ok? ----- (Mr.) Kari Blomster, librarian Hailuoto Public Library, Finland | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... Profiles | http://www.hailuoto.fi/sivu/fi/kuntapalvelut/perus/Sivistyspalvelut/kirjasto... -- View this message in context: http://koha.1045719.n5.nabble.com/Set-principal-language-tp4263943p5733809.h... Sent from the Koha-general mailing list archive at Nabble.com.
participants (4)
-
adalid@tij.uia.mx -
Kari Blomster -
Stefano Bargioni -
Vitor Fernandes