Bugzilla – Attachment 36036 Details for
Bug 13728
koha-translate -l -a shows po files instead of language codes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13728: koha-translate -l -a shows po files instead of language codes
Bug-13728-koha-translate--l--a-shows-po-files-inst.patch (text/plain), 1.52 KB, created by
Jonathan Druart
on 2015-02-19 13:58:04 UTC
(
hide
)
Description:
Bug 13728: koha-translate -l -a shows po files instead of language codes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-02-19 13:58:04 UTC
Size:
1.52 KB
patch
obsolete
>From ec935ca403b8e4fd4b83e5a4c6ffeea282bdce33 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 18 Feb 2015 12:27:20 -0300 >Subject: [PATCH] Bug 13728: koha-translate -l -a shows po files instead of > language codes > >This patch corrects the call to 'basename' inside the script so it correctly >shows the language code when asked to list the available languages. > >To test: >- On a packages install, run: > $ koha-translate --list --available >=> FAIL: It shows: >am-Ethi-opac-bootstrap.po >ar-Arab-opac-bootstrap.po >az-AZ-opac-bootstrap.po >be-BY-opac-bootstrap.po >ben-opac-bootstrap.po >... > >- Apply the patch >- Copy the patched debian/scripts/koha-translate script to your packages setup. >- Run: > $ koha-translate --list --available >=> SUCCESS: It shows: >am-Ethi >ar-Arab >az-AZ >be-BY >ben >... > >- Sign off :-D > >Sponsored-by: Universidad Nacional de Cordoba >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > debian/scripts/koha-translate | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-translate b/debian/scripts/koha-translate >index 88f90e8..0d978a3 100755 >--- a/debian/scripts/koha-translate >+++ b/debian/scripts/koha-translate >@@ -73,7 +73,7 @@ print_available() > { > # Loop over only one opac theme > for i in $( ls $PO_DIR | grep opac-bootstrap ); do >- echo `basename $i -i-opac-bootstrap.po` | \ >+ echo `basename $i -opac-bootstrap.po` | \ > grep -v -x -e en > done > } >-- >2.1.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 13728
:
35993
|
36013
| 36036