#!/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 pot model.' if [ -f "codingteam.pot" ] ; then rm codingteam.pot fi find ../../ -name '*.php' | grep -v '../../public' | grep -v '../../inc/libs/' > file_list.txt xgettext -o codingteam.pot -f file_list.txt --from-code=utf-8 --language=PHP --copyright-holder=CodingTeam --keyword=i18n rm file_list.txt