Plugin::I18N languages files

14 views
Skip to first unread message

Michel BEGUE

unread,
Oct 21, 2019, 6:50:25 AM10/21/19
to Mojolicious
Hi,

Is it possible for the I18N plugin to have more than one file per language ?

The idea is to associate optional modules and their languages files and to install or uninstall them as needed within a global project.

thanks

Michel

Luc Didry

unread,
Oct 21, 2019, 9:37:47 AM10/21/19
to mojol...@googlegroups.com, Michel BEGUE
Hello,

I don’t know if you can have more than one file per language in the
same directory but you can load have multiple directories containing
translation files. I did that for one of my app:
https://framagit.org/fiat-tux/hat-softwares/lstu/blob/master/themes/milligram/lib/Lstu/I18N.pm

Regards,
--
Luc
https://fiat-tux.fr/
https://luc.frama.io/
Internet n'est pas compliqué, Internet est ce que vous en faites.



Reply all
Reply to author
Forward
0 new messages