summaryrefslogtreecommitdiffstats
path: root/hosted
diff options
context:
space:
mode:
authorTorsten Grote <grote@kolabsys.com>2012-09-19 17:47:50 +0200
committerTorsten Grote <grote@kolabsys.com>2012-09-19 17:48:32 +0200
commit0f1ce83b5a06c0789456d35eafd561535acf0fee (patch)
tree06312f44759112857ed18c6c2eb258eea9c73c17 /hosted
parentd6fea9e91c96a1e481a91bb10fcfcd775c530f37 (diff)
downloadwebadmin-0f1ce83b5a06c0789456d35eafd561535acf0fee.tar.gz
localized hosted signup
Diffstat (limited to 'hosted')
-rw-r--r--hosted/js/kolab_hosted.js15
-rw-r--r--hosted/skins/default/hosted.css4
-rw-r--r--hosted/skins/default/templates/footer.html2
-rw-r--r--hosted/skins/default/templates/signup.html14
-rw-r--r--hosted/skins/minimal/templates/signup.html3
5 files changed, 19 insertions, 19 deletions
diff --git a/hosted/js/kolab_hosted.js b/hosted/js/kolab_hosted.js
index 7baad54..9f717ae 100644
--- a/hosted/js/kolab_hosted.js
+++ b/hosted/js/kolab_hosted.js
@@ -28,8 +28,7 @@ kadm.user_save = function(reload, section)
// check email address
if(typeof data.mailalternateaddress != 'undefined' && !isValidEmailAddress(data.mailalternateaddress)) {
- // TODO use translatable error message
- kadm.display_message('Please provide a valid email adress as this is where your password will be sent to.', 'error');
+ kadm.display_message('signup.wrongmailalternateaddress', 'error');
kadm.form_value_error('mailalternateaddress');
return;
}
@@ -70,8 +69,7 @@ kadm.check_user_availability = function()
// check if user with that email address already exists
kadm.http_post('signup.check_user', {data: data});
} else {
- // TODO use translatable string
- kadm.update_user_info('This will not produce a valid email address!', 'uid');
+ kadm.update_user_info('signup.wronguid', 'uid');
}
};
@@ -82,6 +80,10 @@ kadm.update_user_info = function(msg, part)
span_id = 'pass_match';
}
+ if (msg) {
+ msg = kadm.t(msg);
+ }
+
// display message next to form field
if($('span[id="'+span_id+'"]').length) {
// update existing span area
@@ -104,11 +106,10 @@ kadm.update_user_info = function(msg, part)
function password_match()
{
if($('input[name="userpassword"]').val().localeCompare($('input[name="userpassword2"]').val())) {
- // TODO make message translatable
- kadm.update_user_info("The passwords don't match!", 'userpassword');
+ kadm.update_user_info('user.password.mismatch', 'userpassword');
}
else {
- kadm.update_user_info("", 'userpassword');
+ kadm.update_user_info('', 'userpassword');
}
}
diff --git a/hosted/skins/default/hosted.css b/hosted/skins/default/hosted.css
index 4c891d4..bba4df6 100644
--- a/hosted/skins/default/hosted.css
+++ b/hosted/skins/default/hosted.css
@@ -38,3 +38,7 @@ td.label {
table.form td {
text-align: left;
}
+
+#footer {
+ text-align: center;
+}
diff --git a/hosted/skins/default/templates/footer.html b/hosted/skins/default/templates/footer.html
index 4b6bac5..24d972d 100644
--- a/hosted/skins/default/templates/footer.html
+++ b/hosted/skins/default/templates/footer.html
@@ -1 +1 @@
-This is a service offered by <a href="http://kolabsys.com">Kolab Systems</a>.
+{$engine->translate('signup.footer')}
diff --git a/hosted/skins/default/templates/signup.html b/hosted/skins/default/templates/signup.html
index 463f832..8043859 100644
--- a/hosted/skins/default/templates/signup.html
+++ b/hosted/skins/default/templates/signup.html
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
- <title>Sign Up For Hosted Kolab</title>
+ <title>{$engine->translate('signup.headline')}</title>
<link rel="stylesheet" href="{$skin_path}style.css" />
<link rel="stylesheet" href="{$skin_path}hosted.css" />
<link rel="shortcut icon" type="image/png" href="{$skin_path}images/favicon.png" />
@@ -20,13 +20,11 @@
<div id="task_content" class="signup">
- <h1>Sign Up For Hosted Kolab</h1>
- <p>
- Having an account on a Kolab server is way better than just simple Email. It also provides you with full groupware functionality including shared adressbooks, calendars, tasks and journal.
- </p>
- <p>
- You can sign up here now for a personal account.
- </p>
+ <h1>{$engine->translate('signup.headline')}</h1>
+
+ <p>{$engine->translate('signup.intro1')}</p>
+
+ <p>{$engine->translate('signup.intro2')}</p>
<div id="taskcontent" class="signup">{$form}</div>
diff --git a/hosted/skins/minimal/templates/signup.html b/hosted/skins/minimal/templates/signup.html
index 10ff483..961dbf8 100644
--- a/hosted/skins/minimal/templates/signup.html
+++ b/hosted/skins/minimal/templates/signup.html
@@ -15,9 +15,6 @@
<body>
<div id="taskcontent" class="signup">{$form}</div>
-
- </div>
-
<div id="footer">
{include file="footer.html"}
</div>