Changeset 9960

Show
Ignore:
Timestamp:
06/26/10 08:32:21 (2 years ago)
Author:
mickecarlsson
Message:

Updated language tool

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.8/update_i18n.sh

    r9373 r9960  
    7070echo "Creating new POT template files for core" 
    7171# spit out the module.xml for core to amp.i18.php so that we can grab it with the find 
    72 /var/lib/asterisk/bin/module_admin i18n core > admin/modules/core/core.i18n.php 
    73 find admin/*.php admin/cdr/*.php admin/views/*.php admin/common/*.php admin/modules/core/*.php -maxdepth 0 | xargs xgettext --no-location -L PHP -o admin/i18n/amp.pot --keyword=_ - 
     72echo -e "<?php \nif (false) {" >> admin/modules/core/core.i18n.php 
     73/var/lib/asterisk/bin/module_admin i18n core >> admin/modules/core/core.i18n.php 
     74echo -e "}\n?>\n" >> admin/modules/core/core.i18n.php 
     75find admin/*.php admin/cdr/*.php admin/views/*.php admin/common/*.php admin/modules/core/*.php -maxdepth 0 | xargs xgettext --no-location -L PHP -o admin/i18n/amp.tmp --keyword=_ - 
     76echo "# This file is part of FreePBX." > admin/i18n/amp.pot 
     77echo "#" >> admin/i18n/amp.pot 
     78echo "#    FreePBX is free software: you can redistribute it and/or modify" >> admin/i18n/amp.pot 
     79echo "#    it under the terms of the GNU General Public License as published by" >> admin/i18n/amp.pot 
     80echo "#    the Free Software Foundation, either version 2 of the License, or" >> admin/i18n/amp.pot 
     81echo "#    (at your option) any later version." >> admin/i18n/amp.pot 
     82echo "#" >> admin/i18n/amp.pot 
     83echo "#    FreePBX is distributed in the hope that it will be useful," >> admin/i18n/amp.pot 
     84echo "#    but WITHOUT ANY WARRANTY; without even the implied warranty of" >> admin/i18n/amp.pot 
     85echo "#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the" >> admin/i18n/amp.pot 
     86echo "#    GNU General Public License for more details." >> admin/i18n/amp.pot 
     87echo "#" >> admin/i18n/amp.pot 
     88echo "#    You should have received a copy of the GNU General Public License" >> admin/i18n/amp.pot 
     89echo "#    along with FreePBX.  If not, see <http://www.gnu.org/licenses/>." >> admin/i18n/amp.pot 
     90echo "#" >> admin/i18n/amp.pot 
     91echo "# FreePBX language template for amp" >> admin/i18n/amp.pot 
     92echo "# Copyright (C) 2008, 2009, 2010 Bandwith.com" >> admin/i18n/amp.pot 
     93echo "#" >> admin/i18n/amp.pot 
    7494# remove the <modulename>.i18.php 
    7595rm admin/modules/core/core.i18n.php 
     96# Remove the first six lines of the .tmp file and put it in the -pot file 
     97/bin/sed '1,6d' admin/i18n/amp.tmp >> admin/i18n/amp.pot 
     98echo "Removing temp files" 
     99rm admin/i18n/amp.tmp 
    76100echo "Done, now don't forget to commit your work!"