mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Improve handling of translations with '
This commit is contained in:
@@ -82,6 +82,7 @@ function lang($idf, $number = null) {
|
||||
; // http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
|
||||
$translation = $translation[$pos];
|
||||
}
|
||||
$translation = str_replace("'", '’', $translation); // translations can contain HTML or be used in optionlist (we couldn't escape them here) but they can also be used e.g. in title='' //! escape plaintext translations
|
||||
$args = func_get_args();
|
||||
array_shift($args);
|
||||
$format = str_replace("%d", "%s", $translation);
|
||||
|
Reference in New Issue
Block a user