[Koha-devel] Translate Koha Plugins?
Agustin Moyano
agustinmoyano at theke.io
Mon Jun 15 16:16:45 CEST 2020
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.druart at 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.somers at 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.somers at biblibre.com <mailto:fridolin.somers at 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, dcook at prosentient.com.au
>> > <mailto:dcook at 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 at lists.koha-community.org
>> > <mailto:Koha-devel at 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.somers at biblibre.com
>> > <mailto:fridolin.somers at biblibre.com>>
>> > Software and system maintainer 🦄
>> > BibLibre, France
>> > _______________________________________________
>> > Koha-devel mailing list
>> > Koha-devel at lists.koha-community.org
>> > <mailto:Koha-devel at 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.somers at biblibre.com>
>> Software and system maintainer 🦄
>> BibLibre, France
>> _______________________________________________
>> Koha-devel mailing list
>> Koha-devel at 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 at 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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200615/1fb41ac8/attachment-0001.htm>
More information about the Koha-devel
mailing list