diff --git a/admin/admin.php b/admin/admin.php index 666b47d..ca459af 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -25,7 +25,7 @@ if ($user->isAdmin()) { - gelato :: admin users + gelato :: <?=__("admin users")?> @@ -49,13 +49,13 @@ if ($user->isAdmin()) { - +
@@ -63,36 +63,36 @@ if ($user->isAdmin()) {

 

The user has been added successfully.
"; + echo "
".__("The user has been added successfully.")."
"; } } if (isset($_GET["delete"])) { if ($_GET["delete"]=="true") { - echo "
The user has been eliminated successfully.
"; + echo "
".__("The user has been eliminated successfully.")."
"; } } if (isset($_GET["modified"])) { if ($_GET["modified"]=="true") { - echo "
The user has been modified successfully.
"; + echo "
".__("The user has been modified successfully.")."
"; } } if (isset($_GET["error"])) { if ($_GET["error"]==1) { - echo "
The username is not available.
"; + echo "
".__("The username is not available.")."
"; } elseif ($_GET["error"]==2) { - echo "
Error on the database server: ".$_GET["des"]."
"; + echo "
".__("Error on the database server:.")." ".$_GET["des"]."
"; } } ?> @@ -100,9 +100,9 @@ if ($user->isAdmin()) { - - - + + + @@ -120,10 +120,10 @@ if ($user->isAdmin()) { isAdmin()) { else { ?> - + closeSession()) { - echo " ending session..."; + echo __(" ending session..."); } else { - echo " failure ending session..."; + echo __(" failure ending session..."); } } // $_GET["action"] == "close" if ($_GET["action"] == "verify") { if ($_GET["login"]=="") { - echo "
Required field cannot be left blank.
"; + echo "
".__("Required field cannot be left blank.")."
"; } else { if (!$user->userExist($_GET["login"])) { - echo "
Username available.
"; + echo "
".__("Username available.")."
"; } else { - echo "
The username is not available.
"; + echo "
".__("The username is not available.")."
"; } } } // $_GET["action"] == "verify" diff --git a/admin/close.php b/admin/close.php index 0c101b1..e5aa6dd 100644 --- a/admin/close.php +++ b/admin/close.php @@ -24,7 +24,7 @@ $user->closeSession() - gelato :: logout + gelato :: <?=__("logout")?> @@ -36,17 +36,17 @@ $user->closeSession()
@@ -54,11 +54,11 @@ $user->closeSession() -

Ending session...

+

-

Has happened an error when closing the session.

+

diff --git a/admin/index.php b/admin/index.php index 29816a5..c222437 100644 --- a/admin/index.php +++ b/admin/index.php @@ -101,7 +101,7 @@ if ($user->isAdmin()) { - gelato :: control panel + gelato :: <?=__("control panel")?> @@ -138,68 +138,68 @@ if ($user->isAdmin()) { - +

 

A new gelato version has been released and is ready for download.

"; + echo "
".__("A new gelato version has been released and is ready for download.")."

"; } if (isset($_GET["deleted"])) { if ($_GET["deleted"]=="true") { - echo "
The post has been eliminated successfully.
"; + echo "
".__("The post has been eliminated successfully.")."
"; } } if (isset($_GET["modified"])) { if ($_GET["modified"]=="true") { - echo "
The post has been modified successfully.
"; + echo "
".__("The post has been modified successfully.")."
"; } } if (isset($_GET["added"])) { if ($_GET["added"]=="true") { - echo "
The post has been added successfully.
"; + echo "
".__("The post has been added successfully.")."
"; } } if (isset($_GET["error"])) { if ($_GET["error"]==2) { - echo "
Error on the database server: ".$_GET["des"]."
"; + echo "
".__("Error on the database server:")." ".$_GET["des"]."
"; } } if (isset($_GET["mp3"])) { if ($_GET["mp3"]=="false") { - echo "
Not an MP3 file or an upload problem.
"; + echo "
".__("Not an MP3 file or an upload problem.")."
"; } } if (isset($_GET["photo"])) { if ($_GET["photo"]=="false") { - echo "
Not a photo file or an upload problem.
"; + echo "
".__("Not a photo file or an upload problem.")."
"; } } ?> @@ -302,7 +302,7 @@ if ($user->isAdmin()) { } ?>

- Textile syntax is supported. + Textile

post" /> @@ -318,10 +318,10 @@ if ($user->isAdmin()) {

isAdmin()) { } else { - $template->renderizaEtiqueta("No posts in this tumblelog.", "div","error"); + $template->renderizaEtiqueta(__("No posts in this tumblelog."), "div","error"); } ?> diff --git a/login.php b/login.php index 1e47656..81fe16c 100644 --- a/login.php +++ b/login.php @@ -16,7 +16,7 @@ require( dirname(__FILE__) . '/config.php' ); include(dirname(__FILE__)."/classes/functions.php"); include(dirname(__FILE__)."/classes/user.class.php"); require_once(dirname(__FILE__)."/classes/configuration.class.php"); - + $user = new user(); $conf = new configuration(); if ($user->isAdmin()) { @@ -34,7 +34,7 @@ if ($user->isAdmin()) { - gelato :: login screen + gelato :: <?=__("login screen")?> @@ -46,20 +46,20 @@ if ($user->isAdmin()) { - +
@@ -67,11 +67,11 @@ if ($user->isAdmin()) {
    -
  • +
  • -
  • +
  • -
  • +
@@ -82,14 +82,14 @@ if ($user->isAdmin()) { if ($_GET["error"]==1) { ?>
-  You must be registered to use gelato. +
-  You must be logged on the system. +
LoginNameActions
- ">Edit + "> - ">Delete + ">
No users available.