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