Bugzilla – Attachment 76334 Details for
Bug 20988
[OMNIBUS] Internationalization: wrap all translatable text inside t() calls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20988: Allow to create po for all languages at once
Bug-20988-Allow-to-create-po-for-all-languages-at-.patch (text/plain), 1.19 KB, created by
Julian Maurice
on 2018-06-25 07:20:50 UTC
(
hide
)
Description:
Bug 20988: Allow to create po for all languages at once
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-06-25 07:20:50 UTC
Size:
1.19 KB
patch
obsolete
>From adba120d55e52ce959adb033a2935b8385c424be Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 25 Jun 2018 08:23:01 +0200 >Subject: [PATCH] Bug 20988: Allow to create po for all languages at once > >This is required for the script that comes with koha-i18n, which creates >the new PO files and fill them with existing translations. >--- > misc/translator/LangInstaller.pm | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm >index 59754a748c..36235168a5 100644 >--- a/misc/translator/LangInstaller.pm >+++ b/misc/translator/LangInstaller.pm >@@ -766,10 +766,13 @@ sub update { > > sub create { > my ($self, $files) = @_; >- return unless $self->{lang}; >- $self->create_tmpl($files) unless $self->{pref_only}; >- $self->create_prefs(); >- $self->create_messages(); >+ my @langs = $self->{lang} ? ($self->{lang}) : $self->get_all_langs(); >+ for my $lang ( @langs ) { >+ $self->set_lang( $lang ); >+ $self->create_tmpl($files) unless $self->{pref_only}; >+ $self->create_prefs(); >+ $self->create_messages(); >+ } > $self->remove_pot(); > } > >-- >2.17.1
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 20988
:
76333
| 76334 |
76335
|
76336
|
76337
|
76338
|
76339
|
76340
|
76341
|
76342
|
76343
|
76344
|
76345
|
76346
|
76347
|
76348
|
76349
|
76350
|
76351
|
76352
|
76353
|
76354
|
76355
|
76356
|
76357
|
76358
|
76359
|
76360
|
76361
|
76362
|
76363
|
76364
|
76365
|
76934
|
76935