|
@@ -101,7 +101,7 @@ if ($user->isAdmin()) {
|
101
|
101
|
<head>
|
102
|
102
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
103
|
103
|
<meta name="generator" content="gelato cms <?php echo version();?>" />
|
104
|
|
- <title>gelato :: control panel</title>
|
|
104
|
+ <title>gelato :: <?=__("control panel")?></title>
|
105
|
105
|
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
106
|
106
|
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
107
|
107
|
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
|
@@ -138,68 +138,68 @@ if ($user->isAdmin()) {
|
138
|
138
|
</head>
|
139
|
139
|
|
140
|
140
|
<body>
|
141
|
|
- <div id="div-process" style="display:none;">Processing request...</div>
|
|
141
|
+ <div id="div-process" style="display:none;"><?=__("Processing request...")?></div>
|
142
|
142
|
<div id="cont">
|
143
|
143
|
<div id="head">
|
144
|
|
- <h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
|
144
|
+ <h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?=__("home")?>">gelato cms</a></h1>
|
145
|
145
|
<ul id="nav">
|
146
|
|
- <li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
147
|
|
- <li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
|
146
|
+ <li><a href="<?php echo $conf->urlGelato;?>/" title="<?=__("Take me to the tumblelog")?>"><?=__("View Tumblelog")?></a></li>
|
|
147
|
+ <li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');"><?=__("Log out")?></a></li>
|
148
|
148
|
</ul>
|
149
|
149
|
</div>
|
150
|
150
|
<div id="main">
|
151
|
151
|
<div class="box">
|
152
|
152
|
<ul class="menu">
|
153
|
|
- <h3>New Post</h3>
|
154
|
|
- <li<?php echo ($_GET["new"]=="conversation") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> Chat</a></li>
|
155
|
|
- <li<?php echo ($_GET["new"]=="quote") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/quote.png" alt="New qoute" /> Quote</a></li>
|
156
|
|
- <li<?php echo ($_GET["new"]=="url") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> Link</a></li>
|
157
|
|
- <li<?php echo ($_GET["new"]=="mp3") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> Audio</a></li>
|
158
|
|
- <li<?php echo ($_GET["new"]=="video") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> Video</a></li>
|
159
|
|
- <li<?php echo ($_GET["new"]=="photo") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> Picture</a></li>
|
160
|
|
- <li<?php echo ($_GET["new"]=="post") ? " class=\"selected\"" : ""; echo (!isset($_GET["new"])) ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page.png" alt="New post" /> Regular</a></li>
|
|
153
|
+ <h3><?=__("New Post")?></h3>
|
|
154
|
+ <li<?php echo ($_GET["new"]=="conversation") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> <?=__("Chat")?></a></li>
|
|
155
|
+ <li<?php echo ($_GET["new"]=="quote") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/quote.png" alt="New qoute" /> <?=__("Quote")?></a></li>
|
|
156
|
+ <li<?php echo ($_GET["new"]=="url") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> <?=__("Link")?></a></li>
|
|
157
|
+ <li<?php echo ($_GET["new"]=="mp3") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> <?=__("Audio")?></a></li>
|
|
158
|
+ <li<?php echo ($_GET["new"]=="video") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> <?=__("Video")?></a></li>
|
|
159
|
+ <li<?php echo ($_GET["new"]=="photo") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> <?=__("Picture")?></a></li>
|
|
160
|
+ <li<?php echo ($_GET["new"]=="post") ? " class=\"selected\"" : ""; echo (!isset($_GET["new"])) ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page.png" alt="New post" /> <?=__("Regular")?></a></li>
|
161
|
161
|
</ul>
|
162
|
162
|
<p> </p>
|
163
|
163
|
<?php
|
164
|
164
|
$present = version();
|
165
|
165
|
$lastest = _file_get_contents("http://www.gelatocms.com/vgel.txt");
|
166
|
166
|
if ($present < $lastest) {
|
167
|
|
- echo "<div class=\"information\" id=\"update\">A new gelato version has been released and is ready <a href=\"http://www.gelatocms.com/\">for download</a>.</div><br />";
|
|
167
|
+ echo "<div class=\"information\" id=\"update\">".__("A new gelato version has been released and is ready <a href=\"http://www.gelatocms.com/\">for download</a>.")."</div><br />";
|
168
|
168
|
}
|
169
|
169
|
|
170
|
170
|
if (isset($_GET["deleted"])) {
|
171
|
171
|
if ($_GET["deleted"]=="true") {
|
172
|
|
- echo "<div class=\"exito\" id=\"divMessages\">The post has been eliminated successfully.</div>";
|
|
172
|
+ echo "<div class=\"exito\" id=\"divMessages\">".__("The post has been eliminated successfully.")."</div>";
|
173
|
173
|
}
|
174
|
174
|
}
|
175
|
175
|
|
176
|
176
|
if (isset($_GET["modified"])) {
|
177
|
177
|
if ($_GET["modified"]=="true") {
|
178
|
|
- echo "<div class=\"exito\" id=\"divMessages\">The post has been modified successfully.</div>";
|
|
178
|
+ echo "<div class=\"exito\" id=\"divMessages\">".__("The post has been modified successfully.")."</div>";
|
179
|
179
|
}
|
180
|
180
|
}
|
181
|
181
|
|
182
|
182
|
if (isset($_GET["added"])) {
|
183
|
183
|
if ($_GET["added"]=="true") {
|
184
|
|
- echo "<div class=\"exito\" id=\"divMessages\">The post has been added successfully.</div>";
|
|
184
|
+ echo "<div class=\"exito\" id=\"divMessages\">".__("The post has been added successfully.")."</div>";
|
185
|
185
|
}
|
186
|
186
|
}
|
187
|
187
|
|
188
|
188
|
if (isset($_GET["error"])) {
|
189
|
189
|
if ($_GET["error"]==2) {
|
190
|
|
- echo "<div class=\"error\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
|
190
|
+ echo "<div class=\"error\"><strong>".__("Error on the database server:")." </strong>".$_GET["des"]."</div>";
|
191
|
191
|
}
|
192
|
192
|
}
|
193
|
193
|
|
194
|
194
|
if (isset($_GET["mp3"])) {
|
195
|
195
|
if ($_GET["mp3"]=="false") {
|
196
|
|
- echo "<div class=\"error\" id=\"divMessages\">Not an MP3 file or an upload problem.</div>";
|
|
196
|
+ echo "<div class=\"error\" id=\"divMessages\">".__("Not an MP3 file or an upload problem.")."</div>";
|
197
|
197
|
}
|
198
|
198
|
}
|
199
|
199
|
|
200
|
200
|
if (isset($_GET["photo"])) {
|
201
|
201
|
if ($_GET["photo"]=="false") {
|
202
|
|
- echo "<div class=\"error\" id=\"divMessages\">Not a photo file or an upload problem.</div>";
|
|
202
|
+ echo "<div class=\"error\" id=\"divMessages\">".__("Not a photo file or an upload problem.")."</div>";
|
203
|
203
|
}
|
204
|
204
|
}
|
205
|
205
|
?>
|
|
@@ -302,7 +302,7 @@ if ($user->isAdmin()) {
|
302
|
302
|
}
|
303
|
303
|
?>
|
304
|
304
|
<p>
|
305
|
|
- <span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;"><a href="http://hobix.com/textile/">Textile</a> syntax is supported.</span>
|
|
305
|
+ <span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;"><a href="http://hobix.com/textile/">Textile</a> <?=__("syntax is supported.")?></span>
|
306
|
306
|
</p>
|
307
|
307
|
<p>
|
308
|
308
|
<input class="btn" type="submit" name="btnAdd" value="<?php echo ($isEdition) ? "Modify" : "Create"; ?> post" />
|
|
@@ -318,10 +318,10 @@ if ($user->isAdmin()) {
|
318
|
318
|
<div class="box">
|
319
|
319
|
<ul class="menu manage">
|
320
|
320
|
<h3>Manage</h3>
|
321
|
|
- <li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php">Settings</a></li>
|
322
|
|
- <li><a href="<?php echo $conf->urlGelato;?>/admin/options.php">Options</a></li>
|
323
|
|
- <li><a href="<?php echo $conf->urlGelato;?>/admin/admin.php">Users</a></li>
|
324
|
|
- <li class="selected"><a>Posts</a></li>
|
|
321
|
+ <li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php"><?=__("Settings")?></a></li>
|
|
322
|
+ <li><a href="<?php echo $conf->urlGelato;?>/admin/options.php"><?=__("Options")?></a></li>
|
|
323
|
+ <li><a href="<?php echo $conf->urlGelato;?>/admin/admin.php"><?=__("Users")?></a></li>
|
|
324
|
+ <li class="selected"><a><?=__("Posts")?></a></li>
|
325
|
325
|
</ul>
|
326
|
326
|
|
327
|
327
|
<?php
|
|
@@ -424,7 +424,7 @@ if ($user->isAdmin()) {
|
424
|
424
|
|
425
|
425
|
|
426
|
426
|
} else {
|
427
|
|
- $template->renderizaEtiqueta("No posts in this tumblelog.", "div","error");
|
|
427
|
+ $template->renderizaEtiqueta(__("No posts in this tumblelog."), "div","error");
|
428
|
428
|
}
|
429
|
429
|
|
430
|
430
|
?>
|