?>
<h1><?php echo $app["name"]; ?></h1>
<?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%">
<td class="description" valign="top">
<?php echo $app["description"]; ?>
<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 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>
</table>
* Template for Apps
*/
?>
-<h1>Apps Repository</h1>
+<h1><?php echo $l->t( 'Apps Repository' ); ?></h1>
<table cellspacing="0">
<thead>
<tr>
<th></th>
- <th>Name</th>
- <th>Modified</th>
+ <th><?php echo $l->t( 'Name' ); ?></th>
+ <th><?php echo $l->t( 'Modified' ); ?></th>
</tr>
</thead>
<tbody>
<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 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>
<?php endforeach; ?>
</tbody>
<table id="usertable">
<thead>
<tr>
- <th>Name</th>
+ <th><?php echo $l->t( 'Name' ); ?></th>
<th>Groups</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr id="createuseroption">
- <td><button id="createuseroptionbutton">Add user</button></td>
+ <td><button id="createuseroptionbutton"><?php echo $l->t( 'Add user' ); ?></button></td>
<td> </td>
<td> </td>
</tr>
<form id="createuserdata">
<tr id="createuserform" style="display:none;">
<td>
- Name <input x-use="createuserfield" type="text" name="username" /><br>
- Password <input x-use="createuserfield" type="password" name="password" />
+ <?php echo $l->t( 'Name' ); ?> <input x-use="createuserfield" type="text" name="username" /><br>
+ <?php echo $l->t( 'Password' ); ?> <input x-use="createuserfield" type="password" name="password" />
</td>
<td id="createusergroups">
<?php foreach($_["groups"] as $i): ?>
<?php endforeach; ?>
</td>
<td>
- <button id="createuserbutton">Create user</button>
+ <button id="createuserbutton"><?php echo $l->t( 'Create user' ); ?></button>
</td>
</tr>
</form>
<tr x-uid="<?php echo $user["name"] ?>">
<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 " ";} ?></div></td>
- <td><a class="removeuserbutton" href="">remove</a></td>
+ <td><a class="removeuserbutton" href=""><?php echo $l->t( 'remove' ); ?></a></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
-<h2>Groups</h2>
+<h2><?php echo $l->t( 'Groups' ); ?></h2>
<table id="grouptable">
<thead>
<tr>
- <th>Name</th>
+ <th><?php echo $l->t( 'Name' ); ?></th>
<th></th>
</tr>
</thead>
<form id="creategroupdata">
<tr>
<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>
</form>
</tfoot>
<td><?php echo $group["name"] ?></td>
<td>
<?php if( $group["name"] != "admin" ): ?>
- <a class="removegroupbutton" href="">remove</a>
+ <a class="removegroupbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
<?php else: ?>
<?php endif; ?>
<div id="changepassword" style="display:none">
<form id="changepasswordform">
<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="" />
- <button id="changepasswordbutton">Set</button>
+ <button id="changepasswordbutton"><?php echo $l->t( 'Set' ); ?></button>
</form>
</div>
<div id="removeuserform" title="Remove user">
<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="">
</form>
</div>
<div id="removegroupform" title="Remove Group">
<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="">
</form>
</div>