Bugzilla – Attachment 81742 Details for
Bug 15395
Internationalization: plural forms, context, and more
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15395: Use POSIX::setlocale
Bug-15395-Use-POSIXsetlocale.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2018-10-31 15:03:05 UTC
(
hide
)
Description:
Bug 15395: Use POSIX::setlocale
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-10-31 15:03:05 UTC
Size:
1.19 KB
patch
obsolete
>From 7c2da5dd2f7b68dfa2bcc8b12a33f33c1012f483 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 31 Oct 2018 11:02:56 -0300 >Subject: [PATCH] Bug 15395: Use POSIX::setlocale > >To keep compatibility with jessie (that have Message::Locales 1.23, so >without setlocale) > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/I18N.pm | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/Koha/I18N.pm b/Koha/I18N.pm >index 2152654d5a..72062239d8 100644 >--- a/Koha/I18N.pm >+++ b/Koha/I18N.pm >@@ -24,7 +24,8 @@ use C4::Languages; > use C4::Context; > > use Encode; >-use Locale::Messages qw(:locale_h setlocale LC_MESSAGES); >+use Locale::Messages qw(:locale_h LC_MESSAGES); >+use POSIX qw( setlocale ); > use Koha::Cache::Memory::Lite; > > use parent 'Exporter'; >@@ -55,7 +56,7 @@ sub init { > # LANG needs to be set to a valid locale, > # otherwise LANGUAGE is ignored > $ENV{LANG} = $system_locales[0]; >- setlocale(LC_MESSAGES, ''); >+ POSIX::setlocale(LC_MESSAGES, ''); > > my $langtag = C4::Languages::getlanguage; > my @subtags = split /-/, $langtag; >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15395
:
45797
|
45798
|
45799
|
46337
|
50023
|
50024
|
50025
|
50026
|
61873
|
61874
|
61875
|
61876
|
61934
|
61935
|
61977
|
62008
|
62041
|
62326
|
62327
|
62328
|
62329
|
62330
|
62331
|
62332
|
62333
|
62335
|
62709
|
65894
|
70974
|
70975
|
70976
|
71940
|
71941
|
71942
|
71943
|
71944
|
71945
|
71946
|
71947
|
71948
|
71949
|
71950
|
71951
|
71952
|
73901
|
73902
|
73903
|
73904
|
73905
|
73906
|
73907
|
73908
|
73909
|
73910
|
73911
|
73912
|
73913
|
76328
|
76329
|
76330
|
77475
|
77476
|
81152
|
81153
|
81154
|
81155
|
81156
|
81157
|
81158
|
81159
|
81167
|
81734
|
81735
|
81736
|
81737
|
81738
|
81739
|
81741
| 81742 |
81743