#!/bin/bash # ***** BEGIN LICENSE BLOCK ***** # # This file is a part of CodingTeam. See . # Copyright (C) 2007-2008 CodingTeam (See AUTHORS and THANKS for details) # # 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 . # # ***** END LICENSE BLOCK ***** echo 'Starting creation of the mo binary.' echo -n 'Language [en_GB]:' read -e GETTEXTLANG if [ ! $GETTEXTLANG ] ; then GETTEXTLANG='en_GB' fi if [ -d "../../i18n/$GETTEXTLANG" ] ; then if [ -f "../../i18n/$GETTEXTLANG/LC_MESSAGES/codingteam.mo" ] ; then rm ../../i18n/$GETTEXTLANG/LC_MESSAGES/codingteam.mo fi msgfmt ../../i18n/$GETTEXTLANG/LC_MESSAGES/codingteam.po -o ../../i18n/$GETTEXTLANG/LC_MESSAGES/codingteam.mo -v fi