root/freepbx/tags/2.6.0beta2/update_i18n.sh

Revision 7346, 2.2 kB (checked in by p_lindheimer, 4 years ago)

Merged revisions 7088-7102,7104-7345 via svnmerge from
http://svn.freepbx.org/freepbx/branches/2.5

........

r7111 | p_lindheimer | 2008-10-23 13:52:50 -0700 (Thu, 23 Oct 2008) | 1 line


#3271 add some noloads that ABE is not happy with apparently (sounds liek an ABE bug that should be addressed)

........

r7125 | mickecarlsson | 2008-10-24 10:51:15 -0700 (Fri, 24 Oct 2008) | 1 line


Updated amp.pot and swedish language files

........

r7139 | p_lindheimer | 2008-10-25 11:38:33 -0700 (Sat, 25 Oct 2008) | 1 line


typo in variable name resulting in error report missing problem module name, re #3324 but not causing that issue

........

r7140 | sasargen | 2008-10-25 13:33:46 -0700 (Sat, 25 Oct 2008) | 1 line


ARI: add tooltips to Call Me Number and Call Screening labels

........

r7141 | p_lindheimer | 2008-10-25 18:32:38 -0700 (Sat, 25 Oct 2008) | 1 line


closes #3327 user will be required to edit the vm_general.inc if running 1.6 and desires this enabled

........

r7142 | mickecarlsson | 2008-10-26 01:13:13 -0700 (Sun, 26 Oct 2008) | 1 line


Fixed spelling errir and tidy up tabs formatting in vm_general.inc

........

r7157 | p_lindheimer | 2008-10-27 10:53:03 -0700 (Mon, 27 Oct 2008) | 1 line


don't include libfreepbx.confgen.php unless needed, since the functions are deprecated and no longer used except during upgrade transitions

........

r7208 | mickecarlsson | 2008-11-02 09:01:56 -0800 (Sun, 02 Nov 2008) | 1 line


Enabled Bulgarian language in language selector, added Bulgarian language to amp

........

r7210 | mickecarlsson | 2008-11-02 09:13:28 -0800 (Sun, 02 Nov 2008) | 1 line


Sorted the languages in alfabetic order, english on top

........

r7221 | mickecarlsson | 2008-11-04 10:59:28 -0800 (Tue, 04 Nov 2008) | 1 line


Updated readme for i18n

........

r7222 | mickecarlsson | 2008-11-04 11:59:44 -0800 (Tue, 04 Nov 2008) | 1 line


Closes #3368 fixes various errors in css, html and javascript

........

r7223 | mickecarlsson | 2008-11-05 06:57:54 -0800 (Wed, 05 Nov 2008) | 1 line


Updated pot file and swedish language for amp

........

r7226 | mickecarlsson | 2008-11-05 08:36:03 -0800 (Wed, 05 Nov 2008) | 1 line


Added a tool to autocreate all .pot files for amp and all modules

........

r7231 | mickecarlsson | 2008-11-05 09:38:27 -0800 (Wed, 05 Nov 2008) | 1 line


Add Bulgarian language to core from ticket #3373

........

r7233 | mickecarlsson | 2008-11-06 10:44:52 -0800 (Thu, 06 Nov 2008) | 1 line


Closes #3379 updates French language for core

........

r7234 | mickecarlsson | 2008-11-06 11:09:22 -0800 (Thu, 06 Nov 2008) | 1 line


Correction in bulgarian language files for core

........

r7235 | mickecarlsson | 2008-11-06 13:33:34 -0800 (Thu, 06 Nov 2008) | 1 line


Fixes VmX module, settings were revered against extension settings for VmX

........

r7236 | mickecarlsson | 2008-11-06 22:24:36 -0800 (Thu, 06 Nov 2008) | 1 line


Really fixes the amp.po for swedish language

........

r7237 | mickecarlsson | 2008-11-06 22:28:53 -0800 (Thu, 06 Nov 2008) | 1 line


Removed freepbx.pot, file is obsolete, .pot file is now in i18n instead

........

r7239 | mickecarlsson | 2008-11-08 10:15:24 -0800 (Sat, 08 Nov 2008) | 1 line


Addresses #3381 updates Italian language for core and ari

........

r7241 | mickecarlsson | 2008-11-08 10:21:35 -0800 (Sat, 08 Nov 2008) | 1 line


Addresses #3380 enclosed test string for translation

........

r7247 | mickecarlsson | 2008-11-10 09:42:01 -0800 (Mon, 10 Nov 2008) | 1 line


Closes #3358 updates Italian language for core. Thank you francesco_r

........

r7259 | mickecarlsson | 2008-11-12 12:43:54 -0800 (Wed, 12 Nov 2008) | 1 line


Closes #3389 updating Bulgarian language files

........

r7261 | mickecarlsson | 2008-11-12 13:41:50 -0800 (Wed, 12 Nov 2008) | 1 line


Closes #3380 fixes various string enclosures for localization. Thank you chocho

........

r7262 | mickecarlsson | 2008-11-12 23:02:52 -0800 (Wed, 12 Nov 2008) | 1 line


Merged 2.5 amp.pot with 2.6 amp.pot so that there is only one with all text strings from both versions

........

r7303 | mickecarlsson | 2008-11-23 06:32:05 -0800 (Sun, 23 Nov 2008) | 1 line


Updated amp.pot and swedish language files for core

........

r7309 | mickecarlsson | 2008-12-06 06:05:37 -0800 (Sat, 06 Dec 2008) | 1 line


Updates #3224 removes hard coded cdr database

........

r7312 | mickecarlsson | 2008-12-07 04:00:20 -0800 (Sun, 07 Dec 2008) | 1 line


Added ari.pot for localization of ARI

........

r7336 | mickecarlsson | 2008-12-26 00:36:36 -0800 (Fri, 26 Dec 2008) | 1 line


Closes #3453 adds Chinese language to core. Thank you edwardbadboy

........

r7337 | mickecarlsson | 2008-12-26 02:30:43 -0800 (Fri, 26 Dec 2008) | 1 line


Remove Chinese language in #3453 from core as it was not a proper FreePBX translation

........

r7341 | mickecarlsson | 2009-01-06 11:36:02 -0800 (Tue, 06 Jan 2009) | 1 line


Closes #3462, put double quote in javascript so that languages with single quote in text does not interfere with code

........

  • Property svn:executable set to *
Line 
1 #! /bin/sh
2 # Copyright (c) 2008 Mikael Carlsson
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12
13 #
14 # The purpose of this script is to extract all text strings from all FreePBX code that can
15 # be translated and create template files under each modules/<module>/i18n directory.
16 # For this script to work you need to so svn co for for branch and for modules and
17 # install this in the same tree so that the script can do all extraction at once.
18 #
19
20 echo "Creating new POT template files for modules"
21 # go down to modules directory
22 cd amp_conf/htdocs/admin/modules
23 for modules in $(ls -d */);
24 do
25   echo "Checking if module ${modules%%/} has an i18n directory"
26   # spit out the module.xml in a <modulename>.i18.php so that we can grab it with the find
27   # all modules from svn MUST be installed as module_admin reads from
28   # the installed modules NOT from the directory itself
29   if [ -d ${modules}i18n ]; then
30   echo "Found directory ${modules}i18n, creating temp file"
31   /var/lib/asterisk/bin/module_admin i18n ${modules%%/} > $modules${modules%%/}.i18n.php
32   echo "Creating ${modules%%/}.pot file, extracting text strings"
33   find ${modules%%/}/*.php | xargs xgettext -L PHP -o ${modules%%/}/i18n/${modules%%/}.pot --keyword=_ -
34   echo "Removing temp file"
35   rm $modules${modules%%/}.i18n.php
36   fi
37 done
38 # Go back two directory levels
39 cd ../..
40 echo "Creating new POT template files for core"
41 # spit out the module.xml for core to amp.i18.php so that we can grab it with the find
42 /var/lib/asterisk/bin/module_admin i18n core > admin/modules/core/core.i18n.php
43 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=_ -
44 # remove the <modulename>.i18.php
45 rm admin/modules/core/core.i18n.php
46 echo "Done, now don't forget to commit your work!"
Note: See TracBrowser for help on using the browser.