You are not logged in.
Hi !
Following the documentation, it says I should use gettext to make my plugin translatable but it gives not example on how to actually create the pot file
I'm working on the reservation plugin and tried to call
xgettext -L PHP -o locales/reservation.pot */*.php
but it seems nothing is extracted.
In the plugin, the translatable texts have the form __('Current Reservations') or _sx('button','Add') for example
What am I doing wrong ?
Offline
Hi
you may have a look to an other plugin to use an already built shell script which extracts strings and generate a .pot for you
For example the (dead) plugin Simcards: https://github.com/pluginsGLPI/simcard/ … emplate.sh
Note: Dead because the simcards are now in the core of GLPI 9.2.1+ .
No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!
Offline
That's what I needed !
Thanks !
Offline