web: Misc small fixes.

Added tra() function.
This commit is contained in:
Shawn Kwang 2018-09-17 09:50:00 -05:00
parent 7bf7d5c0a0
commit e4df047685
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ function create_account_form($teamid, $next_url) {
if ($checkct and check_termsofuse()) {
$terms_of_use = trim(file_get_contents(TERMSOFUSE_FILE));
if ($terms_of_use) {
panel('Terms of Use', function() use($terms_of_use) {
panel(tra('Terms of Use'), function() use($terms_of_use) {
echo nl2br($terms_of_use);
}
);
@ -166,7 +166,7 @@ function user_agreetermsofuse_form($next_url) {
$terms_of_use = trim(file_get_contents(TERMSOFUSE_FILE));
if ($terms_of_use) {
panel('Terms of Use', function() use($terms_of_use) {
panel(tra('Terms of Use'), function() use($terms_of_use) {
echo nl2br($terms_of_use);
}
);

View File

@ -106,7 +106,7 @@ echo "
<ul>
<li><a href=\"manage_apps.php\">Manage applications</a></li>
<li><a href=\"manage_app_versions.php\">Manage application versions</a></li>
<li><a href=\"manage_consent_types.php\">Manage Consent types</a></li>
<li><a href=\"manage_consent_types.php\">Manage consent types</a></li>
<li> Manage jobs
<ul>
<li><a href=\"cancel_wu_form.php\">Cancel jobs by ID</a>