Changeset 5537 in subversion
- Timestamp:
- Dec 3, 2011 10:37:31 AM (18 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/bin/exportgettext.sh (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/bin/exportgettext.sh
r5507 r5537 28 28 29 29 $srcdir = unslashify(realpath($argv[1])); 30 $destdir = slashify($argv[2]);31 $layout = 'launchpad' # or 'narro';30 $destdir = unslashify($argv[2]); 31 $layout = 'launchpad'; # or 'narro'; 32 32 33 33 … … 84 84 global $layout; 85 85 86 $outdir = unslashify($outdir);87 86 if (!is_dir($outdir)) // attempt to create destination dir 88 87 mkdir($outdir, 0777, true); … … 116 115 $basename = basename($fn); 117 116 $srcname = str_replace(INSTALL_PATH, '', $fn); 117 $product = preg_match('!plugins/(\w+)!', $srcname, $m) ? 'roundcube-plugin-' . $m[1] : 'roundcubemail'; 118 118 $lang = preg_match('!/([a-z]{2}(_[A-Z]{2})?)[./]!', $outfn, $m) ? $m[1] : ''; 119 119 $labels = $messages = $seen = array(); … … 148 148 msgid "" 149 149 msgstr "" 150 "Project-Id-Version: roundcubemail\\n"150 "Project-Id-Version: %s\\n" 151 151 "Report-Msgid-Bugs-To: \\n" 152 152 "POT-Creation-Date: %s\\n" … … 159 159 EOF; 160 160 161 $out = sprintf($header, $srcname, date('c'), date('c'), $lang);161 $out = sprintf($header, $srcname, $product, date('c'), date('c'), $lang); 162 162 $out .= "\n"; 163 163 … … 188 188 { 189 189 $out = ""; 190 $lines = explode("\n", $str);190 $lines = explode("\n", stripslashes($str)); 191 191 $suffix = count($lines) > 1 ? '\n' : ''; 192 192 foreach ($lines as $line)
Note: See TracChangeset
for help on using the changeset viewer.
