Move all language strings to locale file

feature/node-rewrite
Sven Slootweg 12 years ago
parent 188f31c3ac
commit ce15d85913

@ -22,3 +22,65 @@ event-1month-ago; 1 month ago
event-months-ago; %1$d months ago
event-1year-ago; 1 year ago
event-years-ago; %1$d years ago
title-overview; Overview
title-login; Login to your VPS panel
title-reinstall; Reinstall your VPS
button-login; Login
button-reinstall; Reinstall
notfound; The specified VPS was not found.
footer; CPHP is a free and open source VPS control panel. <a href="http://cvm.cryto.net/trac/wiki/Contribute">Want to contribute?</a>
userbox-loggedin; You are logged in as <strong><%?username></strong>.
userbox-account; Account settings
userbox-list; My VPSes
userbox-logout; Log out
menu-overview; Overview
menu-statistics; Statistics
menu-reinstall; Reinstall
menu-backups; Backups
menu-console; Console
menu-ip; IP Allocation
menu-alerts; Alerts
menu-api; API
login-username; Username
login-password; Password
overview-quota-title-disk; Disk space
overview-quota-title-ram; RAM
overview-quota-title-traffic; Traffic
overview-title-configuration; VPS configuration
overview-title-status; Status
overview-title-location; Server location
overview-title-node; Host node
overview-title-os; Operating system
overview-title-ipv4; IPv4 addresses
overview-title-ipv6; IPv6 addresses
overview-title-guaranteed; Guaranteed RAM
overview-title-burstable; Burstable RAM
overview-title-disk; Disk space
overview-title-traffic; Traffic
overview-title-bandwidth; Bandwidth
overview-status-running; Running
overview-status-stopped; Stopped
overview-status-suspended; Suspended
overview-status-unknown; Unknown
overview-button-start; Start VPS
overview-button-restart; Restart VPS
overview-button-stop; Stop VPS
list-column-hostname; Hostname
list-column-platform; Platform
list-column-node; Node
list-column-disk; Disk space
list-column-ram; RAM
list-column-template; Template
list-status-running; Running
list-status-stopped; Stopped
list-status-suspended; Suspended
reinstall-warning; I understand that by reinstalling my VPS, <strong>all data on the VPS is permanently lost</strong> and cannot be recovered. There will be no further confirmations, <strong>after clicking the Reinstall button the reinstallation process cannot be aborted.</strong>

@ -1 +1 @@
The specified VPS was not found.
<%!notfound>

@ -1,22 +1,22 @@
<table class="vpslist">
<tr>
<th></th>
<th>Hostname</th>
<th>Platform</th>
<th>Node</th>
<th>Disk space</th>
<th>RAM</th>
<th>Template</th>
<th><%!list-column-hostname></th>
<th><%!list-column-platform></th>
<th><%!list-column-node></th>
<th><%!list-column-disk></th>
<th><%!list-column-ram></th>
<th><%!list-column-template></th>
</tr>
<%foreach container in containers>
<tr class="clickable" data-url="/<%?container[id]>/">
<td class="container-status">
<%if container[status] == running>
<img src="/images/icon_online.png" alt="Running">
<img src="/images/icon_online.png" alt="<%!list-status-running>">
<%/if><%if container[status] == stopped>
<img src="/images/icon_offline.png" alt="Stopped">
<img src="/images/icon_offline.png" alt="<%!list-status-stopped>">
<%/if><%if container[status] == suspended>
<img src="/images/icon_suspended.png" alt="Suspended">
<img src="/images/icon_suspended.png" alt="<%!list-status-suspended>">
<%/if>
</td>
<td>

@ -1,18 +1,18 @@
<h1>Login to your VPS panel</h1>
<h1><%!title-login></h1>
<%?error>
<form method="post" action="/login/" class="col_12">
<div class="col_3"></div>
<label class="col_2" for="field_username">Username</label>
<label class="col_2" for="field_username"><%!login-username></label>
<input class="col_4" type="text" name="username" id="field_username" value="">
<div class="clear"></div>
<div class="col_3"></div>
<label class="col_2" for="field_password">Password</label>
<label class="col_2" for="field_password"><%!login-password></label>
<input class="col_4" type="password" name="password" id="field_password">
<div class="clear"></div>
<div class="col_7"></div>
<button class="col_2" type="submit" name="submit">Login</button>
<button class="col_2" type="submit" name="submit"><%!button-login></button>
</form>

@ -16,10 +16,10 @@
<img src="/images/logo.png">
<%if logged-in == true>
<div class="userbox">
<div>You are logged in as <strong><%?username></strong>.</div>
<a href="/account/">Account settings</a>
<a href="/">My VPSes</a>
<a href="/logout/">Log out</a>
<div><%!userbox-loggedin></div>
<a href="/account/"><%!userbox-account></a>
<a href="/"><%!userbox-list></a>
<a href="/logout/"><%!userbox-logout></a>
</div>
<%/if>
</div>
@ -27,7 +27,7 @@
<%?main>
</div>
<div class="footer">
CPHP is a free and open source VPS control panel. <a href="http://cvm.cryto.net/trac/wiki/Contribute">Want to contribute?</a>
<%!footer>
</div>
</div>
<img class="preload" src="images/loading.gif">

@ -1,12 +1,12 @@
<div class="sidebar">
<a class="sidebutton" id="button_overview" href="/<%?id>/">Overview</a>
<!-- <a class="sidebutton" id="button_statistics" href="/<%?id>/statistics/">Statistics</a> -->
<a class="sidebutton" id="button_reinstall" href="/<%?id>/reinstall/">Reinstall</a>
<!-- <a class="sidebutton" id="button_backup" href="/<%?id>/backup/">Backups</a> -->
<a class="sidebutton" id="button_webshell" href="/<%?id>/console/">Console</a>
<a class="sidebutton" id="button_ip" href="/<%?id>/ip/">IP Allocation</a>
<!-- <a class="sidebutton" id="button_alerts" href="/<%?id>/alerts/">Alerts</a>
<a class="sidebutton" id="button_api" href="/<%?id>/api/">API</a> -->
<a class="sidebutton" id="button_overview" href="/<%?id>/"><%!menu-overview></a>
<!-- <a class="sidebutton" id="button_statistics" href="/<%?id>/statistics/"><%!menu-statistics></a> -->
<a class="sidebutton" id="button_reinstall" href="/<%?id>/reinstall/"><%!menu-reinstall></a>
<!-- <a class="sidebutton" id="button_backup" href="/<%?id>/backup/"><%!menu-backups></a> -->
<a class="sidebutton" id="button_webshell" href="/<%?id>/console/"><%!menu-console></a>
<a class="sidebutton" id="button_ip" href="/<%?id>/ip/"><%!menu-ip></a>
<!-- <a class="sidebutton" id="button_alerts" href="/<%?id>/alerts/"><%!menu-alerts></a>
<a class="sidebutton" id="button_api" href="/<%?id>/api/"><%!menu-api></a> -->
</div>
<%?error>

@ -1,23 +1,22 @@
<h1>Overview</h1>
<h1><%!title-overview></h1>
<!-- <h2>Consolidated traffic example</h2> -->
<div class="quota">
<div class="quota-item">
<h3>Disk space</h3>
<h3><%!overview-quota-title-disk></h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: <%?disk-percentage>%;"></div>
<div class="quota-bar-label"><%?disk-used>/<%?disk-total><%?disk-unit></div>
</div>
</div>
<div class="quota-item">
<h3>RAM</h3>
<h3><%!overview-quota-title-ram></h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: <%?ram-percentage>%;"></div>
<div class="quota-bar-label"><%?ram-used>/<%?ram-total><%?ram-unit></div>
</div>
</div>
<div class="quota-item last">
<h3>Traffic</h3>
<h3><%!overview-quota-title-traffic></h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: <%?traffic-percentage>%;"></div>
<div class="quota-bar-label"><%?traffic-used>/<%?traffic-total><%?traffic-unit></div>
@ -29,69 +28,69 @@
<div class="controlbox">
<a class="controlbutton button-loader" href="/<%?id>/start/">
<img src="/images/button_start.png" class="button-icon">
Start VPS
<%!overview-button-start>
</a>
<a class="controlbutton button-loader" href="/<%?id>/restart/">
<img src="/images/button_restart.png" class="button-icon">
Restart VPS
<%!overview-button-restart>
</a>
<a class="controlbutton button-loader last" href="/<%?id>/stop/">
<img src="/images/button_stop.png" class="button-icon">
Stop VPS
<%!overview-button-stop>
</a>
<div class="clear"></div>
</div>
<h2>VPS configuration</h2>
<h2><%!overview-title-configuration></h2>
<table class="vpsinfo vertical">
<tr>
<th>Status</th>
<th><%!overview-title-status></th>
<td>
<%if status == running>
<span class="online">Running</span>
<span class="online"><%!overview-status-running></span>
<%/if><%if status == stopped>
<span class="offline">Stopped</span>
<span class="offline"><%!overview-status-stopped></span>
<%/if><%if status == suspended>
<span class="suspended">Suspended</span>
<span class="suspended"><%!overview-status-suspended></span>
<%/if><%if status == unknown>
<span class="unknown">Unknown</span>
<span class="unknown"><%!overview-status-unknown></span>
<%/if>
</td>
</tr>
<tr>
<th>Server location</th>
<th><%!overview-title-location></th>
<td><%?server-location></td>
</tr>
<tr>
<th>Operating system</th>
<th><%!overview-title-os></th>
<td><%?operating-system></td>
</tr>
<tr>
<th>IPv4 Addresses</th>
<th><%!overview-title-ipv4></th>
<td></td>
</tr>
<tr>
<th>IPv6 Addresses</th>
<th><%!overview-title-ipv6></th>
<td></td>
</tr>
<tr>
<th>Guaranteed RAM</th>
<th><%!overview-title-guaranteed></th>
<td><%?guaranteed-ram></td>
</tr>
<tr>
<th>Burstable RAM</th>
<th><%!overview-title-burstable></th>
<td><%?burstable-ram></td>
</tr>
<tr>
<th>Disk space</th>
<th><%!overview-title-disk></th>
<td><%?disk-space></td>
</tr>
<tr>
<th>Traffic</th>
<th><%!overview-title-traffic></th>
<td><%?total-traffic-limit></td>
</tr>
<tr>
<th>Bandwidth</th>
<th><%!overview-title-bandwidth></th>
<td><%?bandwidth-limit></td>
</tr>
</table>

@ -1,4 +1,4 @@
<h1>Reinstall your VPS</h1>
<h1><%!title-reinstall></h1>
<%foreach template in templates>
<div class="template-option">
@ -12,9 +12,9 @@
<div class="confirm">
<input type="checkbox" name="confirm" value="true" id="confirm_reinstall">
<label for="confirm_reinstall" class="confirm-text">I understand that by reinstalling my VPS, <strong>all data on the VPS is permanently lost</strong> and cannot be recovered. There will be no further confirmations, <strong>after clicking the Reinstall button the reinstallation process cannot be aborted.</strong></label>
<label for="confirm_reinstall" class="confirm-text"><%!reinstall-warning></label>
</div>
<div class="centered">
<button type="submit" name="submit" value="submit" class="padded spaced">Reinstall</button>
<button type="submit" name="submit" value="submit" class="padded spaced"><%!button-reinstall></button>
</div>

Loading…
Cancel
Save