Browse Source

tools/inc/lib/jsgettext/: misc fixes

pull/40/head
czaks 11 years ago
parent
commit
3fc38cb552
  1. 4
      tools/inc/lib/jsgettext/JSParser.php
  2. 4
      tools/inc/lib/jsgettext/PoeditParser.php

4
tools/inc/lib/jsgettext/JSParser.php

@ -41,7 +41,7 @@ class JSParser {
} }
public function parse() { public function parse() {
$output = htmlspecialchars($this->content, ENT_NOQUOTES); $output = $this->content; //htmlspecialchars($this->content, ENT_NOQUOTES);
// extract reg exps // extract reg exps
$output = preg_replace_callback( $output = preg_replace_callback(
@ -91,4 +91,4 @@ class JSParser {
return $strings; return $strings;
} }
} }
?> ?>

4
tools/inc/lib/jsgettext/PoeditParser.php

@ -66,7 +66,7 @@ class PoeditParser {
} }
public function toJSON($outputFilename, $varName = 'l10n') { public function toJSON($outputFilename, $varName = 'l10n') {
$str = "$varName = " . $this->getJSON(); $str = "$varName = " . $this->getJSON() . ";";
return file_put_contents($outputFilename, $str) !== false; return file_put_contents($outputFilename, $str) !== false;
} }
@ -80,4 +80,4 @@ class PoeditParser {
} }
?> ?>

Loading…
Cancel
Save