bibletime
bibletime copied to clipboard
New entries for the missing languages - refactor of LAfricain's PR
Re-factored the pull request from LAfricain (bibletime#237).
Please Note: This is not my work - it's just a re-factor of the work LAfricain has done in the mentioned pull request but taking into account the changes in master.
I wonder whether it were possible to automatically generate these language structures from some official ISO 639 tables.
To be honest, I'm not sure what our acceptance criteria for this PR should be. I feel that I'm not sufficiently familiar with the abbreviations used by Sword modules (including historic modules people might still use on their systems), and with all the ISO-639 / BCP 47 peculiarities. 😟
Maybe the best way forward would be to skip those translations alltogether, and use iso-codes (LGPL2.1+) for both data and translations.
I can have a look at https://salsa.debian.org/iso-codes-team/iso-codes and see what would be involved in linking it in if you like. It would probably make more sense to use that, though there may be some cases where older codes are used and are not in there, but they could be handled on a case-by-case basis.
I can have a look at https://salsa.debian.org/iso-codes-team/iso-codes and see what would be involved in linking it in if you like. It would probably make more sense to use that, though there may be some cases where older codes are used and are not in there, but they could be handled on a case-by-case basis.
I'm quite certain that using the codes and translations provided by the iso-codes team would be the best for BibleTime, but switching to use iso-codes is also not a simple task. Either way, I don't think this should be part of this PR, so I filed #347 for switching to iso-codes. You're welcome to work on that, if you like. If you do, please let us know so we won't duplicate the work.
That said, I think it might still make sense at this point to finish and merge this pull request, lest we also fail to have #347 ready for BibleTime 3.1 (probably coming in 2022 Q3 or later).