Skip to content

Commit

Permalink
Internationalize 'Logged in as'
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@354 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
torinfo committed May 28, 2012
1 parent c91fd9d commit 084df1d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 51 deletions.
102 changes: 51 additions & 51 deletions index.php
Expand Up @@ -4,7 +4,7 @@
_load_language_file("/index.inc");

/**
*
*
* Login page, self posts to become management page
*
* @author Patrick Lockley
Expand All @@ -24,7 +24,7 @@ function login_form($messages, $xerte_toolkits_site)

<link href="website_code/styles/frontpage.css" media="screen" type="text/css" rel="stylesheet" />

<!--
<!--
University of Nottingham Xerte Online Toolkits
Expand Down Expand Up @@ -66,7 +66,7 @@ function login_form($messages, $xerte_toolkits_site)
<p>
<?PHP echo $xerte_toolkits_site->welcome_message; ?>
</p>
</div>
</div>
<div class="mainbody_holder">
<div class="mainbody_div_2">
<div class="top_left sign_in_TL m_b_d_2_child" style="background-color:#f3eee2;">
Expand Down Expand Up @@ -115,13 +115,13 @@ function login_form($messages, $xerte_toolkits_site)
</div>
<div class="mainbody_left">
<div class="tutorials"> </div>
</div>
<div class="mainbody_div">
</div>
<div class="mainbody_div">
<p class="intro">
<?PHP echo $xerte_toolkits_site->site_text; ?>
</p>
</div>
</div>
</div>
</div>
<div class="border">
</div>
Expand Down Expand Up @@ -196,7 +196,7 @@ function login_form($messages, $xerte_toolkits_site)

$_SESSION['toolkits_firstname'] = $authmech->getFirstname();
$_SESSION['toolkits_surname'] = $authmech->getSurname();
$_SESSION['toolkits_logon_username'] = $authmech->getUsername();
$_SESSION['toolkits_logon_username'] = $authmech->getUsername();

include $xerte_toolkits_site->php_library_path . "user_library.php";

Expand All @@ -207,7 +207,7 @@ function login_form($messages, $xerte_toolkits_site)
if (check_if_first_time($_SESSION['toolkits_logon_username'])) {

/*
* create the user a new id
* create the user a new id
*/

$_SESSION['toolkits_logon_id'] = create_user_id($_SESSION['toolkits_logon_username'], $_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']);
Expand Down Expand Up @@ -237,7 +237,7 @@ function login_form($messages, $xerte_toolkits_site)
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>

<!--
<!--
University of Nottingham Xerte Online Toolkits
Expand Down Expand Up @@ -273,23 +273,23 @@ function login_form($messages, $xerte_toolkits_site)
?>
</head>

<!--
<!--
code to sort out the javascript which prevents the text selection of the templates (allowing drag and drop to look nicer
body_scroll handles the calculation of the documents actual height in IE.
-->

<body onload="javascript:sort_display_settings()" onselectstart="return false;" onscroll="body_scroll()">

<!--
<!--
Folder popup is the div that appears when creating a new folder
-->

<div class="folder_popup" id="message_box">
<div class="folder_popup" id="message_box">
<div class="corner" style="background-image:url(website_code/images/MessBoxTL.gif); background-position:top left;">
</div>
<div class="central" style="background-image:url(website_code/images/MessBoxTop.gif);">
Expand All @@ -300,7 +300,7 @@ function login_form($messages, $xerte_toolkits_site)
<div class="main_area_holder_2">
<div class="main_area" id="dynamic_section">
<p><?PHP echo INDEX_FOLDER_PROMPT; ?></p><form id="foldernamepopup" action="javascript:create_folder()" method="post" enctype="text/plain"><input type="text" width="200" id="foldername" name="foldername" style="margin:0px; margin-right:5px; padding:3px" /> <input type="image" src="website_code/images/Bttn_NewFolderOff.gif" onmouseover="this.src='website_code/images/Bttn_NewFolderOn.gif'" onmousedown="this.src='website_code/images/Bttn_NewFolderClick.gif'" onmouseout="this.src='website_code/images/Bttn_NewFolderOff.gif'" style="vertical-align:middle; margin-left:5px; border:1px solid #0f0;" /></form><p><img src="website_code/images/Bttn_CancelOff.gif" onmouseover="this.src='website_code/images/Bttn_CancelOn.gif'" onmousedown="this.src='website_code/images/Bttn_CancelClick.gif'" onmouseout="this.src='website_code/images/Bttn_CancelOff.gif'" onclick="javascript:popup_close()" /></p>
</div>
</div>
</div>
</div>
<div class="corner" style="background-image:url(website_code/images/MessBoxBL.gif); background-position:top left;">
Expand All @@ -318,10 +318,10 @@ function login_form($messages, $xerte_toolkits_site)
<img src="website_code/images/xerteLogo.jpg" style="margin-left:10px; float:left" />
</div>

<!--
<!--
Main part of the page
-->

<div class="pagecontainer">
Expand All @@ -330,8 +330,8 @@ function login_form($messages, $xerte_toolkits_site)
<div class="file_mgt_area_top">
<div class="top_left sign_in_TL m_b_d_2_child">
<div class="top_right sign_in_TR m_b_d_2_child">
<p class="heading">
<?PHP echo INDEX_WORKSPACE_TITLE; ?>
<p class="heading">
<?PHP echo INDEX_WORKSPACE_TITLE; ?>
</p>
</div>
</div>
Expand All @@ -340,38 +340,38 @@ function login_form($messages, $xerte_toolkits_site)
<div class="file_mgt_area_middle">
<div class="file_mgt_area_middle_button">

<!--
<!--
File area menu
-->

<div class="file_mgt_area_middle_button_left">
<img src="website_code/images/Bttn_NewFolderOff.gif" onmousedown="this.src='website_code/images/Bttn_NewFolderClick.gif'" onmouseover="this.src='website_code/images/Bttn_NewFolderOn.gif'" onmouseout="this.src='website_code/images/Bttn_NewFolderOff.gif'" onclick="javascript:make_new_folder()" />
</div>
</div>
<div class="file_mgt_area_middle_button_left">
<img id="properties" src="website_code/images/Bttn_PropertiesDis.gif" />
<img id="edit" src="website_code/images/Bttn_EditDis.gif" />
<img id="preview" src="website_code/images/Bttn_PreviewDis.gif" />
</div>
<div class="file_mgt_area_middle_button_right">
<img id="delete" src="website_code/images/Bttn_DeleteDis.gif" />
<img id="duplicate" src="website_code/images/Bttn_DuplicateDis.gif" />
<img id="preview" src="website_code/images/Bttn_PreviewDis.gif" />
</div>
<div class="file_mgt_area_middle_button_right">
<img id="delete" src="website_code/images/Bttn_DeleteDis.gif" />
<img id="duplicate" src="website_code/images/Bttn_DuplicateDis.gif" />
<img id="publish" src="website_code/images/Bttn_PublishDis.gif" />
</div>
<div id="file_area" onscroll="scroll_check(event,this)" onmousemove="mousecoords(event)" onmouseup="file_drag_stop(event,this)"><?PHP
list_users_projects("data_down");
?></div>
</div>
<!--
<!--
Everything from the end of the file system to the top of the blank templates area
-->

</div>
<div class="file_mgt_area_bottom" style="height:30px;">
</div>
<div class="file_mgt_area_bottom" style="height:30px;">
<div class="bottom_left sign_in_BL m_b_d_2_child" style="height:30px;">
<div class="bottom_right sign_in_BR m_b_d_2_child" style="height:30px;">
<form name="sorting" style="display:inline">
Expand All @@ -391,18 +391,18 @@ function login_form($messages, $xerte_toolkits_site)
</div>
<div class="border" style="margin-top:10px"></div>
<div class="help" style="width:48%">
<?PHP echo $xerte_toolkits_site->pod_one; ?>
<?PHP echo $xerte_toolkits_site->pod_one; ?>
</div>

<div class="help" style="width:48%; float:right;">
<?PHP echo $xerte_toolkits_site->pod_two; ?>
<?PHP echo $xerte_toolkits_site->pod_two; ?>
</div>
</div>

<div class="new_template_area">
<div class="top_left sign_in_TL m_b_d_2_child new_template_mod">
<div class="top_right sign_in_TR m_b_d_2_child">
<p class="heading">
<p class="heading">
<?PHP echo INDEX_CREATE; ?> </p>
<p class="general">
<?PHP echo INDEX_TEMPLATES; ?> </p>
Expand All @@ -411,25 +411,25 @@ function login_form($messages, $xerte_toolkits_site)

<div class="new_template_area_middle">

<!--
<!--
Top of the blank templates section
-->



<div id="new_template_area_middle_ajax" class="new_template_area_middle_scroll"><?PHP
list_blank_templates();
?><!--
?><!--
End of the blank templates section, through to end of page
-->
<?PHP echo "&nbsp;&nbsp;&nbsp;Logged in as " .$_SESSION['toolkits_firstname'] ." " .$_SESSION['toolkits_surname'];?>
</div>
<?PHP echo "&nbsp;&nbsp;&nbsp;" . INDEX_LOGGED_IN_AS . " " . $_SESSION['toolkits_firstname'] ." " .$_SESSION['toolkits_surname'];?>
</div>
</div>
<div class="file_mgt_area_bottom" style="width:100%">
<div class="file_mgt_area_bottom" style="width:100%">
<div class="bottom_left sign_in_BL m_b_d_2_child">
<div class="bottom_right sign_in_BR m_b_d_2_child" style="height:10px;"> </div>
</div>
Expand All @@ -438,7 +438,7 @@ function login_form($messages, $xerte_toolkits_site)
<div class="border"> </div>
<p class="copyright">
<img src="website_code/images/lt_logo.gif" /><br/>
<?PHP echo $xerte_toolkits_site->copyright; ?></p>
<?PHP echo $xerte_toolkits_site->copyright; ?></p>
</div>


Expand Down
2 changes: 2 additions & 0 deletions languages/en-GB/index.inc
Expand Up @@ -56,4 +56,6 @@ define("INDEX_SORT_OLD","Age (Old to New)");

define("INDEX_LOG_OUT","Log out");

define("INDEX_LOGGED_IN_AS","Logged in as");

?>

0 comments on commit 084df1d

Please sign in to comment.