1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Improve handling of translations with '

This commit is contained in:
Jakub Vrana
2025-03-24 15:57:46 +01:00
parent 4df205d4ec
commit 078a8b3d6b
5 changed files with 5 additions and 4 deletions

View File

@@ -82,6 +82,7 @@ function lang($idf, $number = null) {
; // http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html ; // http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
$translation = $translation[$pos]; $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(); $args = func_get_args();
array_shift($args); array_shift($args);
$format = str_replace("%d", "%s", $translation); $format = str_replace("%d", "%s", $translation);

View File

@@ -256,7 +256,7 @@ $translations = array(
// in-place editing in select // in-place editing in select
'Modify' => 'Промяна', 'Modify' => 'Промяна',
'Ctrl+click on a value to modify it.' => 'Ctrl+щракване в стойността, за да я промените.', 'Ctrl+click on a value to modify it.' => 'Ctrl+щракване в стойността, за да я промените.',
'Use edit link to modify this value.' => 'Използвайте "редакция" за промяна на данните.', 'Use edit link to modify this value.' => 'Използвайте \'редакция\' за промяна на данните.',
// %s can contain auto-increment value // %s can contain auto-increment value
'Item%s has been inserted.' => 'Елементи%s бяха вмъкнати.', 'Item%s has been inserted.' => 'Елементи%s бяха вмъкнати.',

View File

@@ -242,7 +242,7 @@ $translations = array(
'Type has been dropped.' => 'Le type a été supprimé.', 'Type has been dropped.' => 'Le type a été supprimé.',
'Type has been created.' => 'Le type a été créé.', 'Type has been created.' => 'Le type a été créé.',
'Ctrl+click on a value to modify it.' => 'Ctrl+cliquez sur une valeur pour la modifier.', 'Ctrl+click on a value to modify it.' => 'Ctrl+cliquez sur une valeur pour la modifier.',
'Use edit link to modify this value.' => 'Utilisez le lien "modifier" pour modifier cette valeur.', 'Use edit link to modify this value.' => 'Utilisez le lien \'modifier\' pour modifier cette valeur.',
'last' => 'dernière', 'last' => 'dernière',
'From server' => 'Depuis le serveur', 'From server' => 'Depuis le serveur',
'System' => 'Système', 'System' => 'Système',

View File

@@ -243,7 +243,7 @@ $translations = array(
'Type has been dropped.' => 'Tips dzēsts.', 'Type has been dropped.' => 'Tips dzēsts.',
'Type has been created.' => 'Tips izveidots.', 'Type has been created.' => 'Tips izveidots.',
'Ctrl+click on a value to modify it.' => 'Lai izmainītu vērtību, izmanto Ctrl + peles klikšķi.', 'Ctrl+click on a value to modify it.' => 'Lai izmainītu vērtību, izmanto Ctrl + peles klikšķi.',
'Use edit link to modify this value.' => 'Izmainīt vērtību var tikai ar saiti "Izmainīt".', 'Use edit link to modify this value.' => 'Izmainīt vērtību var tikai ar saiti \'Izmainīt\'.',
'last' => 'pēdējā', 'last' => 'pēdējā',
'From server' => 'No servera', 'From server' => 'No servera',
'System' => 'Sistēma', 'System' => 'Sistēma',

View File

@@ -243,7 +243,7 @@ $translations = array(
'Type has been dropped.' => 'Type verwijderd.', 'Type has been dropped.' => 'Type verwijderd.',
'Type has been created.' => 'Type aangemaakt.', 'Type has been created.' => 'Type aangemaakt.',
'Ctrl+click on a value to modify it.' => 'Ctrl+klik op een waarde om deze te bewerken.', 'Ctrl+click on a value to modify it.' => 'Ctrl+klik op een waarde om deze te bewerken.',
'Use edit link to modify this value.' => 'Gebruik de link "bewerk" om deze waarde te wijzigen.', 'Use edit link to modify this value.' => 'Gebruik de link \'bewerk\' om deze waarde te wijzigen.',
'last' => 'laatste', 'last' => 'laatste',
'From server' => 'Van server', 'From server' => 'Van server',
'System' => 'Databasesysteem', 'System' => 'Databasesysteem',