Configuring Step 7 To Use A Multi-Language Page Structure - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

function DoLocalLanguageChange(oSelect) {
function SetLangCookie(value) {
11.6.9.3

Configuring STEP 7 to use a multi-language page structure

The procedure for configuring multi-language user-defined Web pages is similar to the
general process for configuring user-defined Web pages (Page 641). When you have folders
set up for languages, however, you set your HTML directory setting to the folder that
contains the individual language folders. You do not set the HTML directory to be one of the
language folders.
When you select the default HTML page, you navigate into the language folder and select
the HTML page that is to be the start page. When you subsequently generate blocks and
download the blocks to the CPU, the Web server displays the start page in the language
folder that you configured.
For example, if the folder structure shown here was at C:\, the
setting for HTML directory would be C:\html, and if English were to
be the initial page display, you would navigate to en\langswitch.html
for the default HTML page setting.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
SetLangCookie(oSelect.value);
top.window.location.reload();
}
var strval = "siemens_automation_language=";
// This is the cookie by which the Web server
// detects the desired language
// This name is required by the Web server.
strval = strval + value;
strval = strval + "; path=/ ;";
// Set path to the application, since otherwise
// path would be set to the requesting page
// and this page would not get the cookie.
/* OPTIONAL
use expiration if this cookie should live longer
than the current browser session:
var now = new Date();
var endttime = new Date(now.getTime() + expiration);
strval = strval + "; expires=" +
endttime.toGMTString() + ";";
*/
document.cookie = strval;
}
Web server
11.6 User-defined Web pages
659

Advertisement

Table of Contents
loading

Table of Contents