mirror of
https://github.com/unraid/webgui.git
synced 2026-05-22 06:09:35 -05:00
Multi-language support
This commit is contained in:
@@ -35,6 +35,6 @@ $tmp = $_GET['tmp'] ? '/var/tmp' : '/tmp/plugins/';
|
||||
|
||||
if (file_exists($file) && strpos(realpath($file),$tmp)===0 && substr($file,-4)=='.txt') echo Markdown(file_get_contents($file)); else echo Markdown("*"._('No release notes available')."!*");
|
||||
?>
|
||||
<br><div style="text-align:center"><input type="button" value="Done" onclick="top.Shadowbox.close()"></div>
|
||||
<br><div style="text-align:center"><input type="button" value="_(Done)_" onclick="top.Shadowbox.close()"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -60,4 +60,4 @@ To see natural IOMMU groups for your hardware, go to the <b><a href="/Settings/V
|
||||
> Note that linux groups ATA, SATA and SAS devices with true SCSI devices.
|
||||
|
||||
<pre><table id='t4' class='pre'><tr><td><div class="spinner"></div></td></tr></table></pre>
|
||||
<input type="button" value="Done" onclick="done()">
|
||||
<input type="button" value="_(Done)_" onclick="done()">
|
||||
|
||||
@@ -14,13 +14,11 @@ Tag="user"
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
?>
|
||||
|
||||
<?if (!array_key_exists($name, $users)):?>
|
||||
<p class="notice">User <?=htmlspecialchars($name)?> has been deleted.</p><br>
|
||||
<input type="button" value="Done" onClick="done()">
|
||||
<p class="notice"><?=sprintf(_('User %s has been deleted'),htmlspecialchars($name))?>.</p><br>
|
||||
<input type="button" value="_(Done)_" onClick="done()">
|
||||
<?return;?>
|
||||
<?endif;?>
|
||||
|
||||
<?
|
||||
$user = "/boot/config/plugins/dynamix/users/$name.png";
|
||||
$void = "<img src='/webGui/images/user.png' width='48' height='48' id='image' onclick='$("#drop").click()' style='cursor:pointer' title='Click to select PNG file'>";
|
||||
@@ -122,7 +120,7 @@ $(function(){
|
||||
data:{"csrf_token":"<?=$var['csrf_token']?>"},
|
||||
beforeEach:function(file) {
|
||||
if (!file.type.match(/^image\/png/)) {
|
||||
swal({title:"Warning",text:"Only PNG images are allowed!",type:"warning",confirmButtonText:'_(Ok)_'});
|
||||
swal({title:"Warning",text:"_(Only PNG images are allowed)_!",type:"warning",confirmButtonText:'_(Ok)_'});
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user