Skip to content

Commit

Permalink
Remove debug stuff to force exception in f_()
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Nov 12, 2023
1 parent 1098d25 commit e640b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/apphelpers.pas
Expand Up @@ -2671,7 +2671,7 @@ function f_(const Pattern: string; const Args: array of const): string;
// Helper for translation, replacement for Format(_())
try
TranslatedPattern := _(Pattern);
Result := Format(TranslatedPattern+' %s %d', Args);
Result := Format(TranslatedPattern, Args);
except
on E:Exception do begin
MainForm.LogSQL(E.ClassName+' in translation string with invalid format arguments: "'+TranslatedPattern+'"', lcError);
Expand Down

0 comments on commit e640b8d

Please sign in to comment.