summaryrefslogtreecommitdiff
path: root/tools/inc/lib/jsgettext
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-07-03 00:50:43 -0400
committerczaks <marcin@6irc.net>2013-07-03 00:50:43 -0400
commit3fc38cb55277098e234734baa5bb7513cc974109 (patch)
tree1faaadba5485408ca122c53e334ad537f16ecb60 /tools/inc/lib/jsgettext
parent21f6799617677d536fa4e724212e72a1f2625fde (diff)
tools/inc/lib/jsgettext/: misc fixes
Diffstat (limited to 'tools/inc/lib/jsgettext')
-rw-r--r--tools/inc/lib/jsgettext/JSParser.php4
-rw-r--r--tools/inc/lib/jsgettext/PoeditParser.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/inc/lib/jsgettext/JSParser.php b/tools/inc/lib/jsgettext/JSParser.php
index f3cec7f7..adba59bc 100644
--- a/tools/inc/lib/jsgettext/JSParser.php
+++ b/tools/inc/lib/jsgettext/JSParser.php
@@ -41,7 +41,7 @@ class JSParser {
}
public function parse() {
- $output = htmlspecialchars($this->content, ENT_NOQUOTES);
+ $output = $this->content; //htmlspecialchars($this->content, ENT_NOQUOTES);
// extract reg exps
$output = preg_replace_callback(
@@ -91,4 +91,4 @@ class JSParser {
return $strings;
}
}
-?> \ No newline at end of file
+?>
diff --git a/tools/inc/lib/jsgettext/PoeditParser.php b/tools/inc/lib/jsgettext/PoeditParser.php
index 5ed0ac00..eebd816e 100644
--- a/tools/inc/lib/jsgettext/PoeditParser.php
+++ b/tools/inc/lib/jsgettext/PoeditParser.php
@@ -66,7 +66,7 @@ class PoeditParser {
}
public function toJSON($outputFilename, $varName = 'l10n') {
- $str = "$varName = " . $this->getJSON();
+ $str = "$varName = " . $this->getJSON() . ";";
return file_put_contents($outputFilename, $str) !== false;
}
@@ -80,4 +80,4 @@ class PoeditParser {
}
-?> \ No newline at end of file
+?>