Przeglądaj źródła

tools/inc/lib/jsgettext/: misc fixes

tags/vichan-devel-4.4.92
czaks Michael Foster 11 lat temu
rodzic
commit
291a0f02cb
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +2
    -2
      tools/inc/lib/jsgettext/JSParser.php
  2. +2
    -2
      tools/inc/lib/jsgettext/PoeditParser.php

+ 2
- 2
tools/inc/lib/jsgettext/JSParser.php Wyświetl plik

@@ -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;
}
}
?>
?>

+ 2
- 2
tools/inc/lib/jsgettext/PoeditParser.php Wyświetl plik

@@ -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 {
}


?>
?>

Ładowanie…
Anuluj
Zapisz