Changeset 9258

Show
Ignore:
Timestamp:
03/17/10 02:06:11 (3 years ago)
Author:
mickecarlsson
Message:

Updated tool with --no-location option when creating .pot files

Files:

Legend:

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

    r8880 r9258  
    3838  echo "Creating ${modules%%/}.pot file, extracting text strings" 
    3939  # Save the file as a temp file 
    40   find ${modules%%/}/*.php | xargs xgettext -L PHP -o ${modules%%/}/i18n/${modules%%/}.tmp --keyword=_ - 
     40  find ${modules%%/}/*.php | xargs xgettext --no-location -L PHP -o ${modules%%/}/i18n/${modules%%/}.tmp --keyword=_ - 
    4141  # Now add the copyright and the license info to the.pot file 
    4242  # Again, could be done better, but I lack the time and really need this out now 
     
    7171# spit out the module.xml for core to amp.i18.php so that we can grab it with the find 
    7272/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 -L PHP -o admin/i18n/amp.pot --keyword=_ - 
     73find 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=_ - 
    7474# remove the <modulename>.i18.php 
    7575rm admin/modules/core/core.i18n.php