Re: [Koha-devel] Template::Toolkit and Translations

2021-04-27 Thread Julian Maurice
About the different translation functions, here's a tip: just remember "__npx" where each letter is an optional flag n for Numbers (plural forms) p for Particular context x for eXtra variables And in templates, where functions starting with '_' are considered private, the '__' prefix was replac

Re: [Koha-devel] Optimizing Starman startup

2021-04-27 Thread dcook
Based on my request, Jan has added an option to skip validation (https://github.com/jhthorsen/mojolicious-plugin-openapi/commit/673079d19f827ce8c8ab3a2943a4abc798fa1e18). However, he doesn't seem to want to implement my cache idea. He has said that he's willing to consider a PR, so I'll look a

Re: [Koha-devel] Optimizing Starman startup

2021-04-27 Thread dcook
But now that I think about it again... Jan's change is actually all we need. Within Koha, we could do the checksum calculation, and then skip the validation if we have a local record that our schema has already been validated. (I guess we'd set the cache after Mojoliciou::Plugin::OpenAPI success

Re: [Koha-devel] Template::Toolkit and Translations

2021-04-27 Thread dcook
I think I'll leave the internationalization to folk who can remember it better than me. As for lists... the key thing is supplying the full ISO 639-2 (or MARC Code List for Languages) to Koha, since that's what is being used to populate the bibliographic records. David Cook Software Engineer P