|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* ****************************************************************************** |
|
5
|
|
|
* Copyright 2011-2017 DANTE Ltd. and GÉANT on behalf of the GN3, GN3+, GN4-1 |
|
6
|
|
|
* and GN4-2 consortia |
|
7
|
|
|
* |
|
8
|
|
|
* License: see the web/copyright.php file in the file structure |
|
9
|
|
|
* ****************************************************************************** |
|
10
|
|
|
*/ |
|
11
|
|
|
namespace web\lib\user; |
|
12
|
|
|
|
|
13
|
|
|
require_once(ROOT."/config/_config.php"); |
|
14
|
|
|
/** |
|
15
|
|
|
* these constants live in the global space just to ease their use - with class |
|
16
|
|
|
* prefix, the names simply get too long for comfort |
|
17
|
|
|
*/ |
|
18
|
|
|
|
|
19
|
|
|
const WELCOME_ABOARD_PAGEHEADING = 1000; |
|
20
|
|
|
const WELCOME_ABOARD_DOWNLOAD = 1001; |
|
21
|
|
|
const WELCOME_ABOARD_HEADING = 1002; |
|
22
|
|
|
const WELCOME_ABOARD_USAGE = 1003; |
|
23
|
|
|
const WELCOME_ABOARD_PROBLEMS = 1004; |
|
24
|
|
|
const WELCOME_ABOARD_BACKTODOWNLOADS = 1005; |
|
25
|
|
|
const HEADING_TOPLEVEL_GREET = 1010; |
|
26
|
|
|
const HEADING_TOPLEVEL_PURPOSE = 1011; |
|
27
|
|
|
const FRONTPAGE_ROLLER_EASY = 1020; |
|
28
|
|
|
const FRONTPAGE_ROLLER_CUSTOMBUILT = 1021; |
|
29
|
|
|
const FRONTPAGE_ROLLER_SIGNEDBY = 1022; |
|
30
|
|
|
const FRONTPAGE_BIGDOWNLOADBUTTON = 1023; |
|
31
|
|
|
const INSTITUTION_SELECTION = 1030; |
|
32
|
|
|
const PROFILE_SELECTION = 1040; |
|
33
|
|
|
const DOWNLOAD_CHOOSE = 1050; |
|
34
|
|
|
const DOWNLOAD_ALLPLATFORMS = 1051; |
|
35
|
|
|
const DOWNLOAD_MESSAGE = 1052; |
|
36
|
|
|
const DOWNLOAD_REDIRECT = 1053; |
|
37
|
|
|
const DOWNLOAD_REDIRECT_CONTINUE = 1054; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* some of the texts we write are consortium-specific. |
|
41
|
|
|
*/ |
|
42
|
|
|
const EDUROAM_WELCOME_ADVERTISING = 2000; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* provides various translated texts which are hopefully of common interest for |
|
46
|
|
|
* a number of skins. |
|
47
|
|
|
* |
|
48
|
|
|
* @author Stefan Winter <[email protected]> |
|
49
|
|
|
*/ |
|
50
|
|
|
class TextTemplates { |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* An array with lots of template texts. |
|
54
|
|
|
* |
|
55
|
|
|
* HTML markup is used sparingly. Expect <br> <a> <b> <span> but nothing else. |
|
56
|
|
|
* Remember that you can get plain text by using strip_tags() |
|
57
|
|
|
* |
|
58
|
|
|
* @var array |
|
59
|
|
|
*/ |
|
60
|
|
|
public $templates; |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* Initialises the texts. |
|
64
|
|
|
*/ |
|
65
|
|
|
public function __construct(Gui $parent) { |
|
66
|
|
|
|
|
67
|
|
|
$this->templates[WELCOME_ABOARD_PAGEHEADING] = sprintf(_("Welcome aboard the %s user community!"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
68
|
|
|
$this->templates[WELCOME_ABOARD_DOWNLOAD] = _("Your download will start shortly. In case of problems with the automatic download please use this direct <a href=''>link</a>."); |
|
69
|
|
|
$this->templates[WELCOME_ABOARD_HEADING] = sprintf(_("Dear user from %s,"), "<span class='inst_name'></span>"); |
|
70
|
|
|
$this->templates[WELCOME_ABOARD_USAGE] = sprintf(_("Now that you have downloaded and installed a client configurator, all you need to do is find an %s hotspot in your vicinity and enter your user credentials (this is our fancy name for 'username and password' or 'personal certificate') - and be online!"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
71
|
|
|
$this->templates[WELCOME_ABOARD_PROBLEMS] = sprintf(_("Should you have any problems using this service, please always contact the helpdesk of %s. They will diagnose the problem and help you out. You can reach them via the means shown above."), "<span class='inst_name'></span>"); |
|
72
|
|
|
$this->templates[WELCOME_ABOARD_BACKTODOWNLOADS] = _("Back to downloads"); |
|
73
|
|
|
$this->templates[EDUROAM_WELCOME_ADVERTISING] = sprintf(_("we would like to warmly welcome you among the several million users of %s! From now on, you will be able to use internet access resources on thousands of universities, research centres and other places all over the globe. All of this completely free of charge!"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
74
|
|
|
$this->templates[HEADING_TOPLEVEL_GREET] = sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']); |
|
75
|
|
|
$this->templates[HEADING_TOPLEVEL_PURPOSE] = sprintf(_("Connect your device to %s"),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
76
|
|
|
$this->templates[FRONTPAGE_ROLLER_EASY] = sprintf(_("%s installation made easy:"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
77
|
|
|
$this->templates[FRONTPAGE_ROLLER_CUSTOMBUILT] = sprintf(_("Custom built for your %s"),$parent->nomenclature_inst); |
|
78
|
|
|
$this->templates[FRONTPAGE_BIGDOWNLOADBUTTON] = sprintf(_("Click here to download your %s installer"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
79
|
|
|
$this->templates[PROFILE_SELECTION] = _("Select the user group"); |
|
80
|
|
|
$this->templates[INSTITUTION_SELECTION] = _("select another"); |
|
81
|
|
|
$this->templates[DOWNLOAD_CHOOSE] = _("Choose an installer to download"); |
|
82
|
|
|
$this->templates[DOWNLOAD_ALLPLATFORMS] = _("All platforms"); |
|
83
|
|
|
$this->templates[DOWNLOAD_MESSAGE] = sprintf(_("Download your %s installer"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
84
|
|
|
$this->templates[DOWNLOAD_REDIRECT] = _("Your local administrator has specified a redirect to a local support page.<br>When you click <b>Continue</b> this support page will be opened in a new window/tab."); |
|
85
|
|
|
$this->templates[DOWNLOAD_REDIRECT_CONTINUE] = _("Continue"); |
|
86
|
|
|
$this->templates[FRONTPAGE_ROLLER_SIGNEDBY] = sprintf(_("Digitally signed by the organisation that coordinates %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']); |
|
87
|
|
|
if (isset(CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name'])) { |
|
88
|
|
|
$this->templates[FRONTPAGE_ROLLER_SIGNEDBY] = sprintf(_("Digitally signed by the organisation that coordinates %s: %s"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], CONFIG_CONFASSISTANT['CONSORTIUM']['signer_name']); |
|
89
|
|
|
} |
|
90
|
|
|
} |
|
91
|
|
|
} |