Bug 36039: (QA follow-up): Address i18n for print messages

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-12-24 12:37:29 +00:00 committed by Katrin Fischer
parent 534fba2691
commit 42c1e109af
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,8 @@ use SQL::Translator::Diff;
use C4::Context;
use Koha::I18N qw(__);
=head1 NAME
Koha::Database::Auditor
@ -86,7 +88,7 @@ sub _get_db {
my ($self) = @_;
my $database_name = C4::Context->config("database");
print "Parsing schema for database '$database_name'\n" if $self->{is_cli};
print sprintf( __("Parsing schema for database %s\n"), $database_name ) if $self->{is_cli};
my $dbh = C4::Context->dbh;
my $parser = SQL::Translator->new(
parser => 'DBI',
@ -126,7 +128,7 @@ Retrieves and returns the schema using SQL::Translator for the given file
sub _get_kohastructure {
my ($self) = @_;
print "Parsing schema for file $self->{filename} \n" if $self->{is_cli};
print sprintf( __("Parsing schema for file %s\n"), $self->{filename} ) if $self->{is_cli};
my $translator = SQL::Translator->new();
$translator->parser("MySQL");
my $schema = $translator->translate( $self->{filename} );