#!/bin/bash # This file is a part of CodingTeam. Take a look at . # Copyright © 2007-2014 Erwan Briand # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, version 3 only. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public # License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . echo 'Starting creation of the po localisation for translaters (if the po already exist, it is updated).' echo -n 'Language [fr]:' read -e GETTEXTLANG if [ ! $GETTEXTLANG ] ; then GETTEXTLANG='fr' fi if [ -d "../../i18n/$GETTEXTLANG" ] ; then if [ -f "../../i18n/$GETTEXTLANG/LC_MESSAGES/codingteam.po" ] ; then msgmerge -U ../../i18n/$GETTEXTLANG/LC_MESSAGES/codingteam.po codingteam.pot else msginit -i codingteam.pot -o ../../i18n/$GETTEXTLANG/LC_MESSAGES/codingteam.po --locale=$GETTEXTLANG fi fi