mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-07-01 08:18:41 +02:00
gettext for plugin example + tools
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@179 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
18
tools/extract_template.sh
Executable file
18
tools/extract_template.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
soft='GLPI - Example plugin'
|
||||
version='0.84'
|
||||
email=glpi-translation@gna.org
|
||||
copyright='INDEPNET Development Team'
|
||||
|
||||
#xgettext *.php */*.php -copyright-holder='$copyright' --package-name=$soft --package-version=$version --msgid-bugs-address=$email -o locales/en_GB.po -L PHP --from-code=UTF-8 --force-po -i --keyword=_n:1,2 --keyword=__ --keyword=_e
|
||||
|
||||
xgettext *.php */*.php --exclude-file=../../locales/glpi.pot -o locales/glpi.pot -L PHP --add-comments=TRANS --from-code=UTF-8 --force-po --keyword=_n:1,2 --keyword=__s --keyword=__ --keyword=_e
|
||||
|
||||
|
||||
### for using tx :
|
||||
##tx set --execute --auto-local -r GLPI.glpipot 'locales/<lang>.po' --source-lang en --source-file locales/glpi.pot
|
||||
## tx push -s
|
||||
## tx pull -a
|
||||
|
||||
|
Reference in New Issue
Block a user