]> git.koha-community.org Git - koha.git/commit
Bug 13728: koha-translate -l -a shows po files instead of language codes
authorTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 18 Feb 2015 15:27:20 +0000 (12:27 -0300)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 22 Feb 2015 23:03:34 +0000 (12:03 +1300)
commit1d9f869040bda7f626a3052451b84b4ade014e73
tree90bad4455fa58d49687394a650817fe4ffd8a9d5
parentdd43df588e39b2d4b379d3ed11e5381bd8a881e0
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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 6b26f8858e5069a2fae21fb28692a8eeb37fa0a8)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
debian/scripts/koha-translate