From 2f150108c308e363bbd0db6c78038ce37c40eaa6 Mon Sep 17 00:00:00 2001 From: Victor De la Rocha Date: Fri, 20 Jul 2007 08:14:07 +0000 Subject: [PATCH] added __("text") function for the gettext class --- admin/options.php | 34 +++++++++++++++++----------------- admin/settings.php | 36 ++++++++++++++++++------------------ admin/user.php | 32 ++++++++++++++++---------------- 3 files changed, 51 insertions(+), 51 deletions(-) diff --git a/admin/options.php b/admin/options.php index 5ceacf2..963f284 100644 --- a/admin/options.php +++ b/admin/options.php @@ -32,7 +32,7 @@ if ($user->isAdmin()) { - gelato :: options + gelato :: <?=__("options")?> @@ -55,34 +55,34 @@ if ($user->isAdmin()) { - +

 

The configuration has been modified successfully.
"; + echo "
".__("The configuration has been modified successfully.")."
"; } } if (isset($_GET["error"])) { if ($_GET["error"]==1) { - echo "
Error on the database server: ".$_GET["des"]."
"; + echo "
".__("Error on the database server: ")."".$_GET["des"]."
"; } } ?> @@ -91,22 +91,22 @@ if ($user->isAdmin()) {
    -
  • +

- + " class="submit"/>

diff --git a/admin/settings.php b/admin/settings.php index e6aaa6a..1b73e0f 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -32,7 +32,7 @@ if ($user->isAdmin()) { - gelato :: settings + gelato :: <?=__("settings")?> @@ -55,34 +55,34 @@ if ($user->isAdmin()) { - +

 

The configuration has been modified successfully.
"; + echo "
".__("The configuration has been modified successfully.")."
"; } } if (isset($_GET["error"])) { if ($_GET["error"]==1) { - echo "
Error on the database server: ".$_GET["des"]."
"; + echo "
".__("Error on the database server: ")."".$_GET["des"]."
"; } } ?> @@ -91,20 +91,20 @@ if ($user->isAdmin()) {
    -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • + " class="submit"/>

  • diff --git a/admin/user.php b/admin/user.php index 2bea1da..1bc83c3 100644 --- a/admin/user.php +++ b/admin/user.php @@ -53,7 +53,7 @@ if ($user->isAdmin()) { - gelato :: add user + gelato :: <?php echo __("add user")?> @@ -65,22 +65,22 @@ if ($user->isAdmin()) { - +
    @@ -96,7 +96,7 @@ if ($user->isAdmin()) { } ?>
  • - + " /> isAdmin()) {
  • - +
  • - +
  • - + " />
  • - + " />
  • - + " />
  • -
    +
  • - user" /> + user" />