root/modules/branches/bootstrap-2.9/mk_i18n_structure

Revision 7250, 0.7 kB (checked in by p_lindheimer, 5 years ago)

Merged revisions 7202-7210,7212-7224,7226-7249 via svnmerge from
http://svn.freepbx.org/modules/branches/2.5

Updated localizations

........

r7238 | mickecarlsson | 2008-11-08 10:07:01 -0800 (Sat, 08 Nov 2008) | 1 line


Addresses #3380, some text strings did not translate

........

r7245 | ethans | 2008-11-09 18:40:54 -0800 (Sun, 09 Nov 2008) | 2 lines


Closes #3384

........

r7248 | p_lindheimer | 2008-11-12 07:05:29 -0800 (Wed, 12 Nov 2008) | 1 line


fixes #3392 can't edit or delete conference if numbered 0

........

  • Property svn:executable set to *
Line 
1 #!/bin/bash
2 #
3 # Helper utility to create directory structure add a bunch of translation files for the modules
4 #
5 # usage looks like:
6 #
7 # ./mk_i18n_structure ru_RU /tmp/Russian
8 #
9 # where ru_RU would be the language, and /tmp/Russian whould be where all the files
10 # have been placed
11
12 for i in *; do
13   echo $i:
14   if [ -d $i ] && [ -a ${2}/${i}.mo ] && [ -a ${2}/${i}.po ]; then
15     if [ ! -d ${i}/i18n ]; then
16       svn mkdir ${i}/i18n
17     fi
18     if [ ! -d ${i}/i18n/$1 ]; then
19       svn mkdir ${i}/i18n/$1
20       svn mkdir ${i}/i18n/$1/LC_MESSAGES
21     fi
22     mv $2/$i.mo $i/i18n/$1/LC_MESSAGES/
23     mv $2/$i.po $i/i18n/$1/LC_MESSAGES/
24     svn add $i/i18n/$1/LC_MESSAGES/$i.mo
25     svn add $i/i18n/$1/LC_MESSAGES/$i.po
26   fi
27 done
28
Note: See TracBrowser for help on using the browser.