[Koha-bugs] [Bug 12017] Move language description out of database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 26 02:36:38 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12017

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #100 from David Cook <dcook at prosentient.com.au> ---
Thanks for working on this, Bernardo. I think I ignored the language* tables
for years until I needed to work on them this past Friday...

I'm not sure I follow all the changes across all the patches though.

Overall, I was thinking that we could keep a database table in Koha with
language codes and the native name for the language. Examples: en, eng,
English; zh, chi, 中文. 

Then we could have a template that defines a hash map which can be used to
provide translated versions. 

For example:
[% BLOCK en %]Anglais[% END %]
[% BLOCK fr %]Français[% END %]
[% langs.en = INCLUDE en %]
[% langs.fr = INCLUDE fr %]

We could then iterate through the database list and show translated names where
possible based on the hash map lookup using the code.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list