Revision 2023
Added by darkviper almost 11 years ago
- mod-MultiLingual misconfiguration of language switches solved
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
=============================================================================== |
13 | 13 |
|
14 |
07 Dec-2013 Build 2023 Manuela v.d.Decken(DarkViper) |
|
15 |
# mod-MultiLingual misconfiguration of language switches solved |
|
14 | 16 |
06 Dec-2013 Build 2022 Manuela v.d.Decken(DarkViper) |
15 | 17 |
! framework/initialize.php WB will die if magic_quotes is set to 'on' |
16 | 18 |
06 Dec-2013 Build 2021 Manuela v.d.Decken(DarkViper) |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
51 | 51 |
|
52 | 52 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
53 | 53 |
if(!defined('VERSION')) define('VERSION', '2.8.3'); |
54 |
if(!defined('REVISION')) define('REVISION', '2022');
|
|
54 |
if(!defined('REVISION')) define('REVISION', '2023');
|
|
55 | 55 |
if(!defined('SP')) define('SP', ''); |
branches/2.8.x/wb/modules/MultiLingual/htt/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
// *** This file is generated by WebsiteBaker Ver.2.8.3 |
|
3 |
// *** Creation date: 2013-05-26T05:26:07+00:00 |
|
4 |
// *** Do not modify this file manually |
|
5 |
// *** WB will rebuild this file from time to time!! |
|
6 |
// ************************************************* |
|
7 |
header('HTTP/1.1 301 Moved Permanently'); |
|
8 |
header('Location: ../../../index.php'); |
|
9 |
// ************************************************* |
branches/2.8.x/wb/modules/MultiLingual/htt/lang.htt | ||
---|---|---|
1 |
{# |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category modules |
|
5 |
* @package multilingial |
|
6 |
* @author WebsiteBaker Project, Luisehahne |
|
7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id: $ |
|
13 |
* @filesource $HeadURL: $ |
|
14 |
* @lastmodified $Date: $ |
|
15 |
* |
|
16 |
*/ |
|
17 |
#} |
|
18 |
|
|
19 |
<div id="langmenu"> |
|
20 |
|
|
21 |
<table style="background: transparent;"> |
|
22 |
<tbody> |
|
23 |
<tr style="background: transparent;"> |
|
24 |
{% for file in lang.FILES %} |
|
25 |
<td style="width:{{ file.LANG_ICON_WIDTH }};vertical-align:middle;"> |
|
26 |
<a class="{{ file.LANG_ICON_CLASS }}" href="{{ file.LANG_PAGE_URL }}" title="{{ file.TEXT_PAGE_TITLE }}"> |
|
27 |
<span> |
|
28 |
<img style="border: none;" src="{{ file.URL_ICON_FOLDER }}/{{ file.LANG_ICON }}.{{ file.LANG_ICON_EXT }}" title="{{ file.TEXT_PAGE_TITLE }}" alt="{{ file.TEXT_PAGE_TITLE }}" /> |
|
29 |
</span> |
|
30 |
</a> |
|
31 |
</td> |
|
32 |
{% endfor %} |
|
33 |
</tr> |
|
34 |
</tbody> |
|
35 |
</table> |
|
36 |
</div> |
branches/2.8.x/wb/modules/MultiLingual/tpl/lang.twig | ||
---|---|---|
1 |
{# |
|
2 |
/** |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
|
4 |
* |
|
5 |
* This program is free software: you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
|
8 |
* (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
|
|
19 |
/** |
|
20 |
* lang.twig |
|
21 |
* |
|
22 |
* @category Modules |
|
23 |
* @package Modules_MultiLingual |
|
24 |
* @author Werner v.d.Decken <wkl@isteam.de> |
|
25 |
* @author Dietmar Wöllbrink <dietmar.woellbrink@websiteBaker.org> |
|
26 |
* @copyright Werner v.d.Decken <wkl@isteam.de> |
|
27 |
* @license http://www.gnu.org/licenses/gpl.html GPL License |
|
28 |
* @version 1.6.8 |
|
29 |
* @revision $Revision$ |
|
30 |
* @link $HeadURL$ |
|
31 |
* @lastmodified $Date$ |
|
32 |
* @since File available since 09.01.2013 |
|
33 |
* @description xyz |
|
34 |
*/ |
|
35 |
#} |
|
36 |
<div id="langmenu"> |
|
37 |
{% for aTarget in aTargetList %} |
|
38 |
<a href="{{ aTarget.sUrl }}" {% if aTarget.bCurrent %}class="current" {% endif %}title="{{ aTarget.sTitle }}"> |
|
39 |
<span> |
|
40 |
<img src="{{ aTarget.sIconUrl }}flags/{{ aTarget.FilePrefix }}.png" class="width: 32px; height: 32px" |
|
41 |
title="{{ aTarget.sTitle }}" alt="{{ aTarget.sLongTitle }}" /> |
|
42 |
</span> |
|
43 |
</a> |
|
44 |
{% endfor %} |
|
45 |
</div> |
|
46 | 0 |
branches/2.8.x/wb/modules/MultiLingual/tpl/lang.tpl | ||
---|---|---|
1 |
{# |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category modules |
|
5 |
* @package MultiLingial |
|
6 |
* @author WebsiteBaker Project, Luisehahne |
|
7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL$ |
|
14 |
* @lastmodified $Date$ |
|
15 |
* |
|
16 |
*/ |
|
17 |
#} |
|
18 |
|
|
19 |
<div id="langmenu"> |
|
20 |
{% for file in lang.FILES %} |
|
21 |
<span style="width:{{ file.LANG_ICON_WIDTH }};vertical-align:middle;"> |
|
22 |
<a class="{{ file.LANG_ICON_CLASS }}" href="{{ file.LANG_PAGE_URL }}" title="{{ file.TEXT_PAGE_TITLE }}"> |
|
23 |
<span> |
|
24 |
<img style="border: none;" src="{{ file.URL_ICON_FOLDER }}/{{ file.LANG_ICON }}.{{ file.LANG_ICON_EXT }}" title="{{ file.TEXT_PAGE_TITLE }}" alt="{{ file.TEXT_PAGE_TITLE }}" /> |
|
25 |
</span> |
|
26 |
</a> |
|
27 |
</span> |
|
28 |
{% endfor %} |
|
29 |
</div> |
|
30 | 0 |
branches/2.8.x/wb/modules/MultiLingual/tpl/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
// *** This file is generated by WebsiteBaker Ver.2.8.3 |
|
3 |
// *** Creation date: 2013-05-26T05:26:07+00:00 |
|
4 |
// *** Do not modify this file manually |
|
5 |
// *** WB will rebuild this file from time to time!! |
|
6 |
// ************************************************* |
|
7 |
header('HTTP/1.1 301 Moved Permanently'); |
|
8 |
header('Location: ../../../index.php'); |
|
9 |
// ************************************************* |
|
10 | 0 |
branches/2.8.x/wb/modules/MultiLingual/tpl/lang.html.twig | ||
---|---|---|
34 | 34 |
#} |
35 | 35 |
<div id="langmenu"> |
36 | 36 |
{% for aTarget in aTargetList %} |
37 |
<a href="{{ aTarget.sTargetPageUrl }}" {% if aTarget.bCurrentLanguage %}class="current" {% endif %}title="{{ aTarget.sPageTitle }}">
|
|
37 |
<a href="{{ aTarget.sTargetPageUrl }}" {% if aTarget.bCurrentLanguage %}class="current" {% endif %}title="{{ aTarget.sToolTip }}">
|
|
38 | 38 |
<span> |
39 |
<img style="width:32px; height:24px" src="{{ aTarget.sIconUrl }}flags/{{ aTarget.sImageType }}/{{ aTarget.sFilename }}.{{ aTarget.sImageType }}" title="{{ aTarget.sPageTitle }}" alt="{{ aTarget.sToolTip }}" /> |
|
39 |
<img style="width:32px; height:24px" src="{{ aTarget.sIconUrl }}flags/ |
|
40 |
{{ aTarget.sImageType }}/{{ aTarget.sFilename }}.{{ aTarget.sImageType }}" |
|
41 |
title="{{ aTarget.sPageTitle }}" alt="{{ aTarget.sToolTip }}" |
|
42 |
/> |
|
40 | 43 |
</span> |
41 | 44 |
</a> |
42 | 45 |
{% endfor %} |
branches/2.8.x/wb/modules/MultiLingual/update_keys.php | ||
---|---|---|
66 | 66 |
} else { |
67 | 67 |
$admin->print_success($oTrans->MESSAGE_PAGES_UPDATE_SETTINGS, ADMIN_URL.'/pages/settings.php?page_id='.$temp_page_id ); |
68 | 68 |
} |
69 |
/** |
|
70 |
* Create repeated string |
|
71 |
* @param integer $iRepeats number of repetitions |
|
72 |
* @param string $sString string to use for one indent (default: \t) |
|
73 |
* @return string created string with repetitions of $sString |
|
74 |
* @description create a string depending on number of repeats and a string for each repeat<br /> |
|
75 |
* Gives a way to generate pretty formatted HTML code being outputted, by providing<br /> |
|
76 |
* a certain number of TABs or SPACEs, according to the indent level. |
|
77 |
*/ |
|
78 |
function spacer($iRepeats = 1, $sString = "\t"){ |
|
79 |
// intval() converts the value into a natural, int number. 0 on invald values. |
|
80 |
// max() transform negative values into 0 |
|
81 |
// str_repeat() creates a string of $iRepeats*($sString) |
|
82 |
return str_repeat($sString, max(0, intval($iRepeats))); |
|
83 |
} |
|
84 |
|
|
85 |
echo "<option value=\"{$page['page_id']}\">$title</option>\n"; |
|
86 |
echo '<option value="'.$page['page_id'].'">'.$title.'</option>'.PHP_EOL; |
branches/2.8.x/wb/modules/MultiLingual/languages/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
// *** This file is generated by WebsiteBaker Ver.2.8.3 |
|
3 |
// *** Creation date: 2013-05-26T05:26:07+00:00 |
|
4 |
// *** Do not modify this file manually |
|
5 |
// *** WB will rebuild this file from time to time!! |
|
6 |
// ************************************************* |
|
7 |
header('HTTP/1.1 301 Moved Permanently'); |
|
8 |
header('Location: ../../../index.php'); |
|
9 |
// ************************************************* |
|
10 | 0 |
branches/2.8.x/wb/modules/MultiLingual/flags/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
// *** This file is generated by WebsiteBaker Ver.2.8.3 |
|
3 |
// *** Creation date: 2013-05-26T05:26:07+00:00 |
|
4 |
// *** Do not modify this file manually |
|
5 |
// *** WB will rebuild this file from time to time!! |
|
6 |
// ************************************************* |
|
7 |
header('HTTP/1.1 301 Moved Permanently'); |
|
8 |
header('Location: ../../../index.php'); |
|
9 |
// ************************************************* |
branches/2.8.x/wb/modules/MultiLingual/upgrade.php | ||
---|---|---|
33 | 33 |
* @description provides a flexible posibility for changeing to a translated page |
34 | 34 |
*/ |
35 | 35 |
|
36 |
/* -------------------------------------------------------- */ |
|
36 |
/* ------------------------------------------------------------------------------------ */
|
|
37 | 37 |
// Must include code to stop this file being accessed directly |
38 | 38 |
if(!defined('WB_URL')) { |
39 | 39 |
require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php'); |
40 | 40 |
throw new IllegalFileException(); |
41 | 41 |
} |
42 |
/* -------------------------------------------------------- */ |
|
42 |
/* ------------------------------------------------------------------------------------ */
|
|
43 | 43 |
|
44 | 44 |
function mod_MultiLingual_upgrade($bDebug=false) { |
45 | 45 |
global $OK ,$FAIL; |
Also available in: Unified diff