admin templates are now translateable

This commit is contained in:
Kamil Domanski 2011-06-19 22:15:38 +02:00
parent c26719a10d
commit 80257558af
5 changed files with 25 additions and 25 deletions

View File

@ -6,7 +6,7 @@ $app=$_['app'];
?> ?>
<h1><?php echo $app["name"]; ?></h1> <h1><?php echo $app["name"]; ?></h1>
<?php echo('<span class="type">'.$app['typename'].'</span>'); ?><br /> <?php echo('<span class="type">'.$app['typename'].'</span>'); ?><br />
<span class="date"><?php echo OC_UTIL::formatdate($app["changed"]); ?></span><br /> <span class="date"><?php echo $l->l('datetime', $app["changed"]); ?></span><br />
<table cellspacing="6" border="0" width="100%"> <table cellspacing="6" border="0" width="100%">
@ -19,9 +19,9 @@ $app=$_['app'];
<td class="description" valign="top"> <td class="description" valign="top">
<?php echo $app["description"]; ?> <?php echo $app["description"]; ?>
<br /> <br />
<?php echo('<a class="description" target="_blank" href="'.$app["detailpage"].'">read more</a><br />'); ?> <?php echo('<a class="description" target="_blank" href="'.$app["detailpage"].'">'.$l->t( 'read more' ).'</a><br />'); ?>
</td> </td>
<td width="1" valign="top"><a class="prettybutton" href="">INSTALL</a></td> <td width="1" valign="top"><a class="prettybutton" href=""><?php echo $l->t( 'INSTALL' ); ?></a></td>
</tr> </tr>
</table> </table>

View File

@ -3,5 +3,5 @@
* Template for Apps when can't connect to app store * Template for Apps when can't connect to app store
*/ */
?> ?>
<h1>Apps Repository</h1> <h1><?php echo $l->t( 'Apps Repository' ); ?></h1>
<h2>Cannot connect to apps repository</h2> <h2><?php echo $l->t( 'Cannot connect to apps repository' ); ?></h2>

View File

@ -3,15 +3,15 @@
* Template for Apps * Template for Apps
*/ */
?> ?>
<h1>Apps Repository</h1> <h1><?php echo $l->t( 'Apps Repository' ); ?></h1>
<table cellspacing="0"> <table cellspacing="0">
<thead> <thead>
<tr> <tr>
<th></th> <th></th>
<th>Name</th> <th><?php echo $l->t( 'Name' ); ?></th>
<th>Modified</th> <th><?php echo $l->t( 'Modified' ); ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -19,7 +19,7 @@
<tr> <tr>
<td width="1"><?php if($app["preview"] <> "") { echo('<a href="'.OC_HELPER::linkTo( "admin", "apps.php" ).'?id='.$app['id'].'"><img class="preview" border="0" src="'.$app["preview"].'" /></a>'); } ?> </a></td> <td width="1"><?php if($app["preview"] <> "") { echo('<a href="'.OC_HELPER::linkTo( "admin", "apps.php" ).'?id='.$app['id'].'"><img class="preview" border="0" src="'.$app["preview"].'" /></a>'); } ?> </a></td>
<td class="name"><a href="<?php echo(OC_HELPER::linkTo( "admin", "apps.php" ).'?id='.$app['id']); ?>" title=""><?php echo $app["name"]; ?></a><br /><?php echo('<span class="type">'.$app['typename'].'</span>'); ?></td> <td class="name"><a href="<?php echo(OC_HELPER::linkTo( "admin", "apps.php" ).'?id='.$app['id']); ?>" title=""><?php echo $app["name"]; ?></a><br /><?php echo('<span class="type">'.$app['typename'].'</span>'); ?></td>
<td class="date"><?php echo OC_UTIL::formatdate($app["changed"]); ?></td> <td class="date"><?php echo $l->l('datetime', $app["changed"]); ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>

View File

@ -3,6 +3,6 @@
* Template for admin pages * Template for admin pages
*/ */
?> ?>
<h1>Administration</h1> <h1><?php echo $l->t( 'Administration' ); ?></h1>
<h2>System Settings</h2> <h2><?php echo $l->t( 'System Settings' ); ?></h2>
#TBD #TBD

View File

@ -3,22 +3,22 @@
<table id="usertable"> <table id="usertable">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th><?php echo $l->t( 'Name' ); ?></th>
<th>Groups</th> <th>Groups</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tfoot> <tfoot>
<tr id="createuseroption"> <tr id="createuseroption">
<td><button id="createuseroptionbutton">Add user</button></td> <td><button id="createuseroptionbutton"><?php echo $l->t( 'Add user' ); ?></button></td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<form id="createuserdata"> <form id="createuserdata">
<tr id="createuserform" style="display:none;"> <tr id="createuserform" style="display:none;">
<td> <td>
Name <input x-use="createuserfield" type="text" name="username" /><br> <?php echo $l->t( 'Name' ); ?> <input x-use="createuserfield" type="text" name="username" /><br>
Password <input x-use="createuserfield" type="password" name="password" /> <?php echo $l->t( 'Password' ); ?> <input x-use="createuserfield" type="password" name="password" />
</td> </td>
<td id="createusergroups"> <td id="createusergroups">
<?php foreach($_["groups"] as $i): ?> <?php foreach($_["groups"] as $i): ?>
@ -27,7 +27,7 @@
<?php endforeach; ?> <?php endforeach; ?>
</td> </td>
<td> <td>
<button id="createuserbutton">Create user</button> <button id="createuserbutton"><?php echo $l->t( 'Create user' ); ?></button>
</td> </td>
</tr> </tr>
</form> </form>
@ -37,17 +37,17 @@
<tr x-uid="<?php echo $user["name"] ?>"> <tr x-uid="<?php echo $user["name"] ?>">
<td x-use="username"><div x-use="usernamediv"><?php echo $user["name"]; ?></div></td> <td x-use="username"><div x-use="usernamediv"><?php echo $user["name"]; ?></div></td>
<td x-use="usergroups"><div x-use="usergroupsdiv"><?php if( $user["groups"] ){ echo $user["groups"]; }else{echo "&nbsp";} ?></div></td> <td x-use="usergroups"><div x-use="usergroupsdiv"><?php if( $user["groups"] ){ echo $user["groups"]; }else{echo "&nbsp";} ?></div></td>
<td><a class="removeuserbutton" href="">remove</a></td> <td><a class="removeuserbutton" href=""><?php echo $l->t( 'remove' ); ?></a></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
</table> </table>
<h2>Groups</h2> <h2><?php echo $l->t( 'Groups' ); ?></h2>
<table id="grouptable"> <table id="grouptable">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th><?php echo $l->t( 'Name' ); ?></th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -55,7 +55,7 @@
<form id="creategroupdata"> <form id="creategroupdata">
<tr> <tr>
<td><input x-use="creategroupfield" type="text" name="groupname" /></td> <td><input x-use="creategroupfield" type="text" name="groupname" /></td>
<td><button id="creategroupbutton">Create group</button></td> <td><button id="creategroupbutton"><?php echo $l->t( 'Create group' ); ?></button></td>
</tr> </tr>
</form> </form>
</tfoot> </tfoot>
@ -65,7 +65,7 @@
<td><?php echo $group["name"] ?></td> <td><?php echo $group["name"] ?></td>
<td> <td>
<?php if( $group["name"] != "admin" ): ?> <?php if( $group["name"] != "admin" ): ?>
<a class="removegroupbutton" href="">remove</a> <a class="removegroupbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
<?php else: ?> <?php else: ?>
&nbsp; &nbsp;
<?php endif; ?> <?php endif; ?>
@ -91,22 +91,22 @@
<div id="changepassword" style="display:none"> <div id="changepassword" style="display:none">
<form id="changepasswordform"> <form id="changepasswordform">
<input id="changepassworduid" type="hidden" name="username" value="" /> <input id="changepassworduid" type="hidden" name="username" value="" />
Force new password: <?php echo $l->t( 'Force new password:' ); ?>
<input id="changepasswordpwd" type="password" name="password" value="" /> <input id="changepasswordpwd" type="password" name="password" value="" />
<button id="changepasswordbutton">Set</button> <button id="changepasswordbutton"><?php echo $l->t( 'Set' ); ?></button>
</form> </form>
</div> </div>
<div id="removeuserform" title="Remove user"> <div id="removeuserform" title="Remove user">
<form id="removeuserdata"> <form id="removeuserdata">
Do you really want to delete user <span id="deleteuserusername">$user</span>? <?php echo $l->t( 'Do you really want to delete user' ); ?> <span id="deleteuserusername">$user</span>?
<input id="deleteusernamefield" type="hidden" name="username" value=""> <input id="deleteusernamefield" type="hidden" name="username" value="">
</form> </form>
</div> </div>
<div id="removegroupform" title="Remove Group"> <div id="removegroupform" title="Remove Group">
<form id="removegroupdata"> <form id="removegroupdata">
Do you really want to delete group <span id="removegroupgroupname">$group</span>? <?php echo $l->t( 'Do you really want to delete group' ); ?> <span id="removegroupgroupname">$group</span>?
<input id="removegroupnamefield" type="hidden" name="groupname" value=""> <input id="removegroupnamefield" type="hidden" name="groupname" value="">
</form> </form>
</div> </div>