From ce15d85913df4ee5412d743144f1aebbd436c3fd Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 9 May 2012 04:47:46 +0200 Subject: [PATCH] Move all language strings to locale file --- frontend/locales/english.lng | 62 +++++++++++++++++++++++ frontend/templates/error.vps.notfound.tpl | 2 +- frontend/templates/list.tpl | 18 +++---- frontend/templates/login.tpl | 8 +-- frontend/templates/main.tpl | 10 ++-- frontend/templates/main.vps.tpl | 16 +++--- frontend/templates/vps.overview.tpl | 45 ++++++++-------- frontend/templates/vps.reinstall.tpl | 6 +-- 8 files changed, 114 insertions(+), 53 deletions(-) diff --git a/frontend/locales/english.lng b/frontend/locales/english.lng index 804b8ce..c4d4069 100644 --- a/frontend/locales/english.lng +++ b/frontend/locales/english.lng @@ -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. Want to contribute? + +userbox-loggedin; You are logged in as <%?username>. +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, all data on the VPS is permanently lost and cannot be recovered. There will be no further confirmations, after clicking the Reinstall button the reinstallation process cannot be aborted. diff --git a/frontend/templates/error.vps.notfound.tpl b/frontend/templates/error.vps.notfound.tpl index 9bd0a88..eab1e3b 100644 --- a/frontend/templates/error.vps.notfound.tpl +++ b/frontend/templates/error.vps.notfound.tpl @@ -1 +1 @@ -The specified VPS was not found. +<%!notfound> diff --git a/frontend/templates/list.tpl b/frontend/templates/list.tpl index 04999d1..40b6a51 100644 --- a/frontend/templates/list.tpl +++ b/frontend/templates/list.tpl @@ -1,22 +1,22 @@ - - - - - - + + + + + + <%foreach container in containers>
HostnamePlatformNodeDisk spaceRAMTemplate<%!list-column-hostname><%!list-column-platform><%!list-column-node><%!list-column-disk><%!list-column-ram><%!list-column-template>
<%if container[status] == running> - Running + <%!list-status-running> <%/if><%if container[status] == stopped> - Stopped + <%!list-status-stopped> <%/if><%if container[status] == suspended> - Suspended + <%!list-status-suspended> <%/if> diff --git a/frontend/templates/login.tpl b/frontend/templates/login.tpl index 3c489ac..5b29990 100644 --- a/frontend/templates/login.tpl +++ b/frontend/templates/login.tpl @@ -1,18 +1,18 @@ -

Login to your VPS panel

+

<%!title-login>

<%?error>
- +
- +
- +
diff --git a/frontend/templates/main.tpl b/frontend/templates/main.tpl index 7c39fbb..3a5fb0c 100644 --- a/frontend/templates/main.tpl +++ b/frontend/templates/main.tpl @@ -16,10 +16,10 @@ <%if logged-in == true>
-
You are logged in as <%?username>.
- Account settings - My VPSes - Log out +
<%!userbox-loggedin>
+ <%!userbox-account> + <%!userbox-list> + <%!userbox-logout>
<%/if> @@ -27,7 +27,7 @@ <%?main> diff --git a/frontend/templates/main.vps.tpl b/frontend/templates/main.vps.tpl index 6d20efb..1a66391 100644 --- a/frontend/templates/main.vps.tpl +++ b/frontend/templates/main.vps.tpl @@ -1,12 +1,12 @@ <%?error> diff --git a/frontend/templates/vps.overview.tpl b/frontend/templates/vps.overview.tpl index cbe6f31..e0db9f3 100644 --- a/frontend/templates/vps.overview.tpl +++ b/frontend/templates/vps.overview.tpl @@ -1,23 +1,22 @@ -

Overview

+

<%!title-overview>

-
-

Disk space

+

<%!overview-quota-title-disk>

<%?disk-used>/<%?disk-total><%?disk-unit>
-

RAM

+

<%!overview-quota-title-ram>

<%?ram-used>/<%?ram-total><%?ram-unit>
-

Traffic

+

<%!overview-quota-title-traffic>

<%?traffic-used>/<%?traffic-total><%?traffic-unit>
@@ -29,69 +28,69 @@ -

VPS configuration

+

<%!overview-title-configuration>

- + - + - + - + - + - + - + - + - + - +
Status<%!overview-title-status> <%if status == running> - Running + <%!overview-status-running> <%/if><%if status == stopped> - Stopped + <%!overview-status-stopped> <%/if><%if status == suspended> - Suspended + <%!overview-status-suspended> <%/if><%if status == unknown> - Unknown + <%!overview-status-unknown> <%/if>
Server location<%!overview-title-location> <%?server-location>
Operating system<%!overview-title-os> <%?operating-system>
IPv4 Addresses<%!overview-title-ipv4>
IPv6 Addresses<%!overview-title-ipv6>
Guaranteed RAM<%!overview-title-guaranteed> <%?guaranteed-ram>
Burstable RAM<%!overview-title-burstable> <%?burstable-ram>
Disk space<%!overview-title-disk> <%?disk-space>
Traffic<%!overview-title-traffic> <%?total-traffic-limit>
Bandwidth<%!overview-title-bandwidth> <%?bandwidth-limit>
diff --git a/frontend/templates/vps.reinstall.tpl b/frontend/templates/vps.reinstall.tpl index 2d24164..e3feb6f 100644 --- a/frontend/templates/vps.reinstall.tpl +++ b/frontend/templates/vps.reinstall.tpl @@ -1,4 +1,4 @@ -

Reinstall your VPS

+

<%!title-reinstall>

<%foreach template in templates>
@@ -12,9 +12,9 @@
- +
- +