Ticket #102: gettext_sprintf.patch
| File gettext_sprintf.patch, 2.2 KB (added by hjansen, 5 years ago) |
|---|
-
Dialog/Find.pm
256 256 eval { $regex = qr/$search_term/m }; 257 257 if ($@) { 258 258 my $main_window = Padre->ide->wx->main_window; 259 Wx::MessageBox( gettext("Cannot build regex for '%s'", $search_term), gettext("Search error"), Wx::wxOK, $main_window);259 Wx::MessageBox(sprintf(gettext("Cannot build regex for '%s'"), $search_term), gettext("Search error"), Wx::wxOK, $main_window); 260 260 return; 261 261 } 262 262 return $regex; -
Dialog/ModuleStart.pm
118 118 my @fields = qw(_module_name_ _author_name_ _email_ _builder_choice_ _license_choice_); 119 119 foreach my $f (@fields) { 120 120 if (not $data->{$f}) { 121 Wx::MessageBox( gettext("Field %s was missing. Module not created.", $f), gettext("missing field"), Wx::wxOK, $main_window);121 Wx::MessageBox(sprintf(gettext("Field %s was missing. Module not created."), $f), gettext("missing field"), Wx::wxOK, $main_window); 122 122 return; 123 123 } 124 124 } … … 135 135 Module::Starter::App->run; 136 136 @ARGV = (); 137 137 chdir $pwd; 138 Wx::MessageBox( gettext("%s apparantly created.", $data->{_module_name_}), gettext("Done"), Wx::wxOK, $main_window);138 Wx::MessageBox(sprintf(gettext("%s apparantly created."), $data->{_module_name_}), gettext("Done"), Wx::wxOK, $main_window); 139 139 140 140 return; 141 141 } -
MainWindow.pm
918 918 } 919 919 920 920 if (not $file) { 921 Wx::MessageBox( gettext("Could not find file '%s'", $selection), gettext("Open Selection"), Wx::wxOK, $self);921 Wx::MessageBox(sprintf(gettext("Could not find file '%s'"), $selection), gettext("Open Selection"), Wx::wxOK, $self); 922 922 return; 923 923 } 924 924 … … 1369 1369 my $code = $doc->text_get; 1370 1370 eval $code; 1371 1371 if ( $@ ) { 1372 Wx::MessageBox( gettext("Error: %s", $@), gettext("Self error"), Wx::wxOK, $self);1372 Wx::MessageBox(sprintf(gettext("Error: %s"), $@), gettext("Self error"), Wx::wxOK, $self); 1373 1373 return; 1374 1374 } 1375 1375 return;
