1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/noalyss-6.9.0.0/dev/extract_text.sh
Laurent Peuch fce579e032 init
2015-09-27 00:42:21 +02:00

23 lines
769 B
Bash

#!/bin/bash
# Brief : extract strings from the file, in order to update a
# po file. It is used for the translation
#
#
# This file is a part of NOALYSS under GPL
# Author D. DE BONTRIDDER danydb@aevalys.eu
echo "Extract"
cd ..
# CATALOG
xgettext -L PHP -j --from-code=UTF-8 -p html/lang/ html/*.php include/*.php include/template/*.php include/ext/*/*.php include/ext/*/include/*.php include/ext/*/include/template/*.php
# For dutch
echo "Dutch"
msgmerge -U -s html/lang/nl_NL/LC_MESSAGES/messages.po html/lang/messages.po
#For english
echo "English"
msgmerge -U -s html/lang/en_US/LC_MESSAGES/messages.po html/lang/messages.po
#For new language
# export LOCAL=nl_NL
# msginit --locale=$LOCAL -i html/lang/messages.po -o html/lang/$LOCAL/LC_MESSAGES/messages.po