Hello everyone, koha-plugin-pay-via-paypal uses Vue to display frontend, and automatically chooses the language based on the lang attribute of html tag.
Here https://gitlab.com/thekesolutions/plugins/koha-plugin-pay-via-paypal/-/blob/master/src/plugins/i18n.js adds the i18n module, and detects the language based on the tag. Here https://gitlab.com/thekesolutions/plugins/koha-plugin-pay-via-paypal/-/tree/master/Koha/Plugin/Com/Theke/PayViaPayPal/locales are placed the locale files. After that, you can use $t function in vue templates. If anyone needs more details of implementation, I gladly can explain further. Cheers On Mon, Jun 15, 2020 at 6:43 AM Jonathan Druart < jonathan.dru...@bugs.koha-community.org> wrote: > https://gitlab.com/thekesolutions/plugins/koha-plugin-pay-via-paypal > > Le lun. 15 juin 2020 à 11:05, Fridolin SOMERS < > fridolin.som...@biblibre.com> a écrit : > >> >> >> Le 15/06/2020 à 10:47, Jonathan Druart a écrit : >> > There is koha-plugin-pay-via-paypal. >> >> I cant find this plugin. Is it on GitHub or somewhere ? >> >> > >> > Le lun. 15 juin 2020 à 10:19, Fridolin SOMERS >> > <fridolin.som...@biblibre.com <mailto:fridolin.som...@biblibre.com>> a >> > écrit : >> > >> > Hi, >> > >> > Unfortunably I think there is not. >> > >> > I know plugins like Inlibro Carrousel did it manually : >> > >> > >> https://git.biblibre.com/biblibre/koha-plugin-inlibro-carrousel/src/branch/master/Koha/Plugin/Carrousel >> > >> > We should provide a common way to do this. >> > >> > Best regards, >> > >> > Le 11/06/2020 à 02:13, dc...@prosentient.com.au >> > <mailto:dc...@prosentient.com.au> a écrit : >> > > Hi all, >> > > >> > > Is there an existing mechanism for translating Koha Plugins? >> > > >> > > I’m (slowly) working on some plugins, and there are folk in the >> > Czech >> > > Republic who would like to use them but not in English. >> > > >> > > David Cook >> > > >> > > Systems Librarian >> > > >> > > Prosentient Systems >> > > >> > > 72/330 Wattle St >> > > >> > > Ultimo, NSW 2007 >> > > >> > > Australia >> > > >> > > Office: 02 9212 0899 >> > > >> > > Online: 02 8005 0595 >> > > >> > > >> > > _______________________________________________ >> > > Koha-devel mailing list >> > > Koha-devel@lists.koha-community.org >> > <mailto:Koha-devel@lists.koha-community.org> >> > > >> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel >> > > website : http://www.koha-community.org/ >> > > git : http://git.koha-community.org/ >> > > bugs : http://bugs.koha-community.org/ >> > > >> > >> > -- >> > Fridolin SOMERS <fridolin.som...@biblibre.com >> > <mailto:fridolin.som...@biblibre.com>> >> > Software and system maintainer 🦄 >> > BibLibre, France >> > _______________________________________________ >> > Koha-devel mailing list >> > Koha-devel@lists.koha-community.org >> > <mailto:Koha-devel@lists.koha-community.org> >> > >> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel >> > website : http://www.koha-community.org/ >> > git : http://git.koha-community.org/ >> > bugs : http://bugs.koha-community.org/ >> > >> >> -- >> Fridolin SOMERS <fridolin.som...@biblibre.com> >> Software and system maintainer 🦄 >> BibLibre, France >> _______________________________________________ >> Koha-devel mailing list >> Koha-devel@lists.koha-community.org >> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel >> website : http://www.koha-community.org/ >> git : http://git.koha-community.org/ >> bugs : http://bugs.koha-community.org/ >> > _______________________________________________ > Koha-devel mailing list > Koha-devel@lists.koha-community.org > https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel > website : http://www.koha-community.org/ > git : http://git.koha-community.org/ > bugs : http://bugs.koha-community.org/ >
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/