Project

General

Profile

« Previous | Next » 

Revision 290

Added by stefan almost 19 years ago

Reintroduced page languages setting. If switched to off page languages are only used to determine the language file for the universal texts. If on, displayed page and menu are affected by the language session variable.

View differences:

trunk/wb/admin/settings/index.php
315 315

  
316 316
// Work-out if page languages feature is enabled
317 317
if(defined('PAGE_LANGUAGES') AND PAGE_LANGUAGES == true) {
318
	$template->set_var('PAGE_LANGUAGES', ' true');
318
        $template->set_var('PAGE_LANGUAGES_ENABLED', ' checked');
319 319
} else {
320
	$template->set_var('PAGE_LANGUAGES', ' false');
320
        $template->set_var('PAGE_LANGUAGES_DISABLED', ' checked');
321 321
}
322 322

  
323 323
// Work-out if smart login feature is enabled
......
578 578
								'TEXT_SECTION_BLOCKS' => $TEXT['SECTION_BLOCKS'],
579 579
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
580 580
								'TEXT_PAGE_TRASH' => $TEXT['PAGE_TRASH'],
581
								'TEXT_PAGE_LANGUAGES' => $TEXT['PAGE_LANGUAGES'],
581 582
								'TEXT_INLINE' => $TEXT['INLINE'],
582 583
								'TEXT_SEPARATE' => $TEXT['SEPARATE'],
583 584
								'TEXT_HOME_FOLDERS' => $TEXT['HOME_FOLDERS'],
trunk/wb/admin/settings/template.html
112 112
		</div>
113 113
	</td>
114 114
</tr>
115
<input type="hidden" name="page_languages" value="{PAGE_LANGUAGES}" />
116 115
<tr class="advanced">
116
        <td class="setting_name">{TEXT_PAGE_LANGUAGES}:</td>
117
        <td class="setting_value" colspan="2">
118
                <input type="radio" name="page_languages" id="page_languages_true" style="width: 14px; height: 14px;" value="true"{PAGE_LANGUAGES_ENABLED} />
119
                <label for="page_languages_true">{TEXT_ENABLED}</font>
120
                <input type="radio" name="page_languages" id="page_languages_false" style="width: 14px; height: 14px;" value="false"{PAGE_LANGUAGES_DISABLED} />
121
                <label for="page_languages_false">{TEXT_DISABLED}</font>
122
		</td>
123
</tr>
124
<tr class="advanced">
117 125
	<td class="setting_name">{TEXT_MULTIPLE_MENUS}:</td>
118 126
	<td class="setting_value" colspan="2">
119 127
		<input type="radio" name="multiple_menus" id="multiple_menus_true" style="width: 14px; height: 14px;" value="true"{MULTIPLE_MENUS_ENABLED} />

Also available in: Unified diff