From 976f4506050370cfef991da2d56e786c2e7de9d1 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 23 Jan 2024 12:50:48 +0100 Subject: [PATCH] Qual: Make some translation strings more generic # Qual: Make some translation strings more generic Provide variable values as parameters to translation string so that they can be generally translated --- htdocs/modulebuilder/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index bed53dd9aab..114fc8ddba2 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -2,6 +2,7 @@ /* Copyright (C) 2004-2023 Laurent Destailleur * Copyright (C) 2018-2019 Nicolas ZABOURI * Copyright (C) 2023 Alexandre Janniaux + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -4634,14 +4635,14 @@ if ($module == 'initmodule') { print ''; } } - print ''.$langs->trans('Property $field not found into the class. The class was probably not generated by modulebuilder.').''; + print ''.$langs->trans('Property %s not found in the class. The class was probably not generated by modulebuilder.', $field).''; } print ''; print ''; print ''; } else { - print ''.$langs->trans('Failed to init the object with the new '.$tabobj.'($db)').''; + print ''.$langs->trans('Failed to init the object with the new %s (%s)', $tabobj, (string) $db).''; } } catch (Exception $e) { print $e->getMessage();