mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11021] Better language strings for site home url/text
Correct the logo title to be {L_HOME} if {U_HOME} is used. Check if the Home text is instead of just equal to false when outputting it to the template PHPBB3-11021
This commit is contained in:
parent
ffe7f76b90
commit
0c56bd45ef
3 changed files with 7 additions and 7 deletions
|
@ -4935,7 +4935,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||||
|
|
||||||
'L_LOGIN_LOGOUT' => $l_login_logout,
|
'L_LOGIN_LOGOUT' => $l_login_logout,
|
||||||
'L_INDEX' => $user->lang['FORUM_INDEX'],
|
'L_INDEX' => $user->lang['FORUM_INDEX'],
|
||||||
'L_HOME' => ($config['site_home_text']) ? $config['site_home_text'] : $user->lang['HOME'],
|
'L_HOME' => (!empty($config['site_home_text'])) ? $config['site_home_text'] : $user->lang['HOME'],
|
||||||
'L_ONLINE_EXPLAIN' => $l_online_time,
|
'L_ONLINE_EXPLAIN' => $l_online_time,
|
||||||
|
|
||||||
'U_PRIVATEMSGS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox'),
|
'U_PRIVATEMSGS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox'),
|
||||||
|
|
|
@ -45,14 +45,14 @@ $lang = array_merge($lang, array(
|
||||||
'DISABLE_BOARD' => 'Disable board',
|
'DISABLE_BOARD' => 'Disable board',
|
||||||
'DISABLE_BOARD_EXPLAIN' => 'This will make the board unavailable to users. You can also enter a short (255 character) message to display if you wish.',
|
'DISABLE_BOARD_EXPLAIN' => 'This will make the board unavailable to users. You can also enter a short (255 character) message to display if you wish.',
|
||||||
'DISPLAY_LAST_SUBJECT' => 'Display subject of last added post on forum list',
|
'DISPLAY_LAST_SUBJECT' => 'Display subject of last added post on forum list',
|
||||||
'DISPLAY_LAST_SUBJECT_EXPLAIN' => 'The subject of the last added post will be displayed in the forum list with a hyperlink to the post. Subjects from password protected forums and forums in which user doesn’t have read access are not shown.',
|
'DISPLAY_LAST_SUBJECT_EXPLAIN' => 'The subject of the last added post will be displayed in the forum list with a hyperlink to the post. Subjects from password protected forums and forums in which user doesn’t have read access are not shown.',
|
||||||
'OVERRIDE_STYLE' => 'Override user style',
|
'OVERRIDE_STYLE' => 'Override user style',
|
||||||
'OVERRIDE_STYLE_EXPLAIN' => 'Replaces user’s style with the default.',
|
'OVERRIDE_STYLE_EXPLAIN' => 'Replaces user’s style with the default.',
|
||||||
'SITE_DESC' => 'Site description',
|
'SITE_DESC' => 'Site description',
|
||||||
'SITE_HOME_TEXT' => 'Site home text',
|
'SITE_HOME_TEXT' => 'Main website text',
|
||||||
'SITE_HOME_TEXT_EXPLAIN' => 'Specify a Site Home Text to use your own instead of the default text in the breadcrumbs ’Home.’',
|
'SITE_HOME_TEXT_EXPLAIN' => 'This text will be displayed as a link to your website homepage in the board’s breadcrumbs. If not specified, it will default to ’Home’.',
|
||||||
'SITE_HOME_URL' => 'Site home URL',
|
'SITE_HOME_URL' => 'Main website URL',
|
||||||
'SITE_HOME_URL_EXPLAIN' => 'If you specify a Site Home URL, a link to this page will be added to your board’s breadcrumbs and the site logo will also be linked to this address.',
|
'SITE_HOME_URL_EXPLAIN' => 'If specified, a link to this URL will be prepended to your board’s breadcrumbs. The board logo will also link to this URL.',
|
||||||
'SITE_NAME' => 'Site name',
|
'SITE_NAME' => 'Site name',
|
||||||
'SYSTEM_TIMEZONE' => 'Guest timezone',
|
'SYSTEM_TIMEZONE' => 'Guest timezone',
|
||||||
'SYSTEM_TIMEZONE_EXPLAIN' => 'Timezone to use for displaying times to users who are not logged in (guests, bots). Logged in users set their timezone during registration and can change it in their user control panel.',
|
'SYSTEM_TIMEZONE_EXPLAIN' => 'Timezone to use for displaying times to users who are not logged in (guests, bots). Logged in users set their timezone during registration and can change it in their user control panel.',
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
|
|
||||||
<div id="site-description">
|
<div id="site-description">
|
||||||
<a href="<!-- IF U_HOME -->{U_HOME}<!-- ELSE -->{U_INDEX}<!-- ENDIF -->" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
|
<a href="<!-- IF U_HOME -->{U_HOME}<!-- ELSE -->{U_INDEX}<!-- ENDIF -->" title="<!-- IF U_HOME -->{L_HOME}<!-- ELSE -->{L_INDEX}<!-- ENDIF -->" id="logo">{SITE_LOGO_IMG}</a>
|
||||||
<h1>{SITENAME}</h1>
|
<h1>{SITENAME}</h1>
|
||||||
<p>{SITE_DESCRIPTION}</p>
|
<p>{SITE_DESCRIPTION}</p>
|
||||||
<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
|
<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue