Skip to content

Commit 8d93774

Browse files
committed
Upgrade Spanish to a 'complete' language in the tests
1 parent 9a4523c commit 8d93774

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

check_postgres.pl

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ package check_postgres;
369369
'bloat-table' => q{(bd $1) tabla $2.$3 filas:$4 páginas:$5 deberíaser:$6 ($7X) bytes desperdiciados:$8 ($9)},
370370
'bug-report' => q{Por favor reporte estos detalles a check_postgres@bucardo.org:},
371371
'checkcluster-id' => q{Identificador de la base de datos:},
372-
'checkcluster-msg' => q{cluster_id: $1},
372+
'checkcluster-msg' => q{cluster_id: $1},
373373
'checkcluster-nomrtg'=> q{Debe proporcionar un número con la opción --mrtg},
374374
'checkmode-prod' => q{en producción},
375375
'checkmode-recovery' => q{en recuperación de archivo},
@@ -414,9 +414,9 @@ package check_postgres;
414414
'hs-future-replica' => q{El esclavo reporta que el reloj del maestro está adelantado, comprobar sincronización de tiempo},
415415
'hs-no-role' => q{No es un par maestro/esclavo},
416416
'hs-no-location' => q{No pude obtener ubicación actual de xlog en $1},
417-
'hs-receive-delay' => q{receive-delay},
418-
'hs-replay-delay' => q{replay_delay},
419-
'hs-time-delay' => q{time_delay},
417+
'hs-receive-delay' => q{receive-delay},
418+
'hs-replay-delay' => q{replay_delay},
419+
'hs-time-delay' => q{time_delay},
420420
'hs-time-version' => q{La base de datos debes ser versión 9.1 or superior para comprobar el tiempo de retraso del esclavo},
421421
'index' => q{Indice},
422422
'invalid-option' => q{Opción inválida},
@@ -470,7 +470,7 @@ package check_postgres;
470470
'pgb-backends-msg' => q{$1 de $2 conexiones ($3%)},
471471
'pgb-backends-none' => q{No nay conexiones},
472472
'pgb-backends-users' => q{$1 debe ser un número o porcentaje de usuarios},
473-
'PID' => q{PID},
473+
'PID' => q{PID},
474474
'port' => q{puerto},
475475
'preptxn-none' => q{No se encontraron transacciones preparadas},
476476
'psa-disabled' => q{No hay consultas - están deshabilitados stats_command_string o track_activities?},
@@ -483,7 +483,7 @@ package check_postgres;
483483
'qtime-none' => q{no hay consultas},
484484
'query' => q{consulta},
485485
'queries' => q{consultas},
486-
'query-time' => q{query_time},
486+
'query-time' => q{query_time},
487487
'range-badcs' => q{Opción '$1' inválida: debe ser un "checksum"},
488488
'range-badlock' => q{Opción '$1' inválida: debe ser el número de bloqueos, o "type1=#:type2=#"},
489489
'range-badpercent' => q{Opción '$1' inválida: debe ser un porcentaje},
@@ -514,6 +514,7 @@ package check_postgres;
514514
'relsize-msg-reli' => q{la relación más grande es el índice "$1": $2},
515515
'relsize-msg-relt' => q{la relación más grande es la tabla "$1": $2},
516516
'relsize-msg-tab' => q{la tabla más grande es "$1": $2},
517+
'relsize-msg-indexes' => q{table with largest indexes is "$1": $2},
517518
'rep-badarg' => q{Parámetro invalido para repinfo: se esperan 6 valores separados por coma},
518519
'rep-duh' => q{No tiene sentido probar la replicación con los mismos valores},
519520
'rep-fail' => q{Fila no replicada en el esclavo $1},
@@ -538,6 +539,7 @@ package check_postgres;
538539
'runtime-badname' => q{Opción queryname inválida: debe ser el nombre de una única vista},
539540
'runtime-msg' => q{tiempo de la consulta: $1 seg},
540541
'schema' => q{Esquema},
542+
'ss-badobject' => q{Unrecognized object types: $1},
541543
'ss-createfile' => q{Archivo creado $1},
542544
'ss-different' => q{"$1" es diferente:},
543545
'ss-existson' => q{Existe en:},
@@ -553,7 +555,7 @@ package check_postgres;
553555
'size' => q{tamaño},
554556
'slony-noschema' => q{No fue posible determinar el esquema para Slony},
555557
'slony-nonumber' => q{El llamado a sl_status no devolvió un número},
556-
'slony-lagtime' => q{Slony lag time: $1},
558+
'slony-lagtime' => q{Slony lag time: $1},
557559
'symlink-create' => q{Creado "$1"},
558560
'symlink-done' => q{No se crea "$1": El enlace $2 ya apunta a "$3"},
559561
'symlink-exists' => q{No se crea "$1": El archivo $2 ya existe},
@@ -562,13 +564,13 @@ package check_postgres;
562564
'symlink-name' => q{Este comando no va a funcionar a menos que el programa tenga la palabra "postgres" en su nombre},
563565
'symlink-unlink' => q{Desvinculando "$1":$2 },
564566
'table' => q{Tabla},
565-
'testmode-end' => q{END OF TEST MODE},
567+
'testmode-end' => q{END OF TEST MODE},
566568
'testmode-fail' => q{Connexión fallida: $1 $2},
567569
'testmode-norun' => q{No puede ejecutar "$1" en $2: versión debe ser >= $3, pero es $4},
568570
'testmode-noset' => q{No puede ejecutar "$1" en $2: la opción $3 no está activa},
569-
'testmode-nover' => q{Could not find version for $1},
570-
'testmode-ok' => q{Connection ok: $1},
571-
'testmode-start' => q{BEGIN TEST MODE},
571+
'testmode-nover' => q{Could not find version for $1},
572+
'testmode-ok' => q{Connection ok: $1},
573+
'testmode-start' => q{BEGIN TEST MODE},
572574
'time-day' => q{día},
573575
'time-days' => q{días},
574576
'time-hour' => q{hora},
@@ -583,11 +585,11 @@ package check_postgres;
583585
'time-weeks' => q{semanas},
584586
'time-year' => q{año},
585587
'time-years' => q{años},
586-
'timesync-diff' => q{diff},
588+
'timesync-diff' => q{diff},
587589
'timesync-msg' => q{timediff=$1 BD=$2 Local=$3},
588590
'transactions' => q{transacciones},
589591
'trigger-msg' => q{Disparadores desactivados: $1},
590-
'txn-time' => q{transaction_time},
592+
'txn-time' => q{transaction_time},
591593
'txnidle-count-msg' => q{Total transacciones inactivas: $1},
592594
'txnidle-count-none' => q{no más de $1 transacciones inactivas},
593595
'txnidle-for-msg' => q{$1 transacciones inactivas mayores que $2s, más larga: $3s$4 $5},
@@ -800,6 +802,7 @@ package check_postgres;
800802
'runtime-badname' => q{Option invalide pour queryname option : doit être le nom d'une vue},
801803
'runtime-msg' => q{durée d'exécution de la requête : $1 secondes},
802804
'schema' => q{Schéma},
805+
'ss-badobject' => q{Unrecognized object types: $1},
803806
'ss-createfile' => q{Création du fichier $1},
804807
'ss-different' => q{"$1" est différent:},
805808
'ss-existson' => q{Existe sur :},

t/03_translations.t

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ BEGIN {
1111
%complete_langs = (
1212
'en' => 'English',
1313
'fr' => 'French',
14+
'es' => 'Spanish',
1415
);
1516
}
1617
use Test::More;
@@ -178,13 +179,17 @@ for my $l (sort keys %complete_langs) {
178179
my $lval = $msg{$l}{$msg}->[1];
179180
my $indent = $msg{$l}{$msg}->[0];
180181
next if 'French' eq $language and (
181-
'PID' eq $msg
182-
or 'port' eq $msg
183-
or 'pgbouncer-pool' eq $msg
184-
or 'index' eq $msg
185-
or 'table' eq $msg
186-
or 'transactions' eq $msg
187-
or 'mode' eq $msg
182+
'PID' eq $msg
183+
or 'port' eq $msg
184+
or 'pgbouncer-pool' eq $msg
185+
or 'index' eq $msg
186+
or 'table' eq $msg
187+
or 'transactions' eq $msg
188+
or 'mode' eq $msg
189+
);
190+
next if 'Spanish' eq $language and (
191+
'checksum-msg' eq $msg
192+
or 'pgbouncer-pool' eq $msg
188193
);
189194
if ($val eq $lval and $indent) {
190195
fail qq{Message '$msg' in language $language appears to not be translated, but it not marked as such};

0 commit comments

Comments
 (0)