From 3ca3ad6e7376f54b8b197c427ba84824dbf1c62e Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 10 Mar 2015 15:03:26 +0000 Subject: [PATCH] routeSQL : Allow the user to change the Actions links (to images, UTF-8 chars...) git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1999 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- routeSQL.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/routeSQL.php b/routeSQL.php index cdffd5a..8416951 100644 --- a/routeSQL.php +++ b/routeSQL.php @@ -19,6 +19,10 @@ class routeSQL public $deleteConfirm = true; /** Push the actions buttons at end of line */ public $actionsAtEnd = false; + /** The Text to Delete */ + public $textDelete = ""; + /** The Text to Edit */ + public $textEdit = ""; /** The model file containing the database description */ private $model_file = ""; /** The model class included in the model file */ @@ -49,6 +53,8 @@ class routeSQL $this->username = $username; $this->password = $password; $this->driver_options = $driver_options; + $this->textDelete = dgettext("domframework","Delete"); + $this->textEdit = dgettext("domframework","Edit"); } /** Connect to the database */ @@ -137,15 +143,14 @@ class routeSQL $content .= ""; $content .= " ". - dgettext("domframework","Edit").""; + $this->textEdit.""; $content .= " deleteConfirm) $content .= " onclick=\"return confirm('". dgettext("domframework", "Are you sure to delete this entry?")."')\""; - $content .= ">". - dgettext("domframework","Delete").""; + $content .= ">".$this->textDelete.""; $content .= ""; } foreach ($line as $col) @@ -155,15 +160,14 @@ class routeSQL $content .= ""; $content .= " ". - dgettext("domframework","Edit").""; + $this->textEdit.""; $content .= " deleteConfirm) $content .= " onclick=\"return confirm('". dgettext("domframework", "Are you sure to delete this entry?")."')\""; - $content .= ">". - dgettext("domframework","Delete").""; + $content .= ">".$this->textDelete.""; $content .= ""; } $content .= "\n";