mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10345] Use the plural function in some more places.
I added two function avatar_explanation_string() and avatar_error_wrong_size() for easier handling of the "pixels"-languages, as they are used quite often. PHPBB3-10345
This commit is contained in:
parent
88ae40a4b1
commit
179662e949
26 changed files with 169 additions and 101 deletions
|
@ -1107,7 +1107,7 @@ class phpbb_feed_forums extends phpbb_feed_base
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
$item_row['statistics'] = $user->lang('TOTAL_TOPICS', (int) $row['forum_topics'])
|
$item_row['statistics'] = $user->lang('TOTAL_TOPICS', (int) $row['forum_topics'])
|
||||||
. ' ' . $this->separator_stats . ' ' . sprintf($user->lang['TOTAL_POSTS_OTHER'], $row['forum_posts']);
|
. ' ' . $this->separator_stats . ' ' . $user->lang('TOTAL_POSTS_OTHER', (int) $row['forum_posts']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1159,7 +1159,7 @@ class acp_attachments
|
||||||
// Issue warning message if files stats are inaccurate
|
// Issue warning message if files stats are inaccurate
|
||||||
if (($num_files != $num_files_real) || ($total_size != $total_size_real))
|
if (($num_files != $num_files_real) || ($total_size != $total_size_real))
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['FILES_STATS_WRONG'], $num_files_real, get_formatted_filesize($total_size_real));
|
$error[] = $user->lang('FILES_STATS_WRONG', (int) $num_files_real, get_formatted_filesize($total_size_real));
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'S_ACTION_OPTIONS' => ($auth->acl_get('a_board')) ? true : false,
|
'S_ACTION_OPTIONS' => ($auth->acl_get('a_board')) ? true : false,
|
||||||
|
@ -1244,8 +1244,7 @@ class acp_attachments
|
||||||
$row['extension'] = strtolower(trim((string) $row['extension']));
|
$row['extension'] = strtolower(trim((string) $row['extension']));
|
||||||
$comment = ($row['attach_comment'] && !$row['in_message']) ? str_replace(array("\n", "\r"), array('<br />', "\n"), $row['attach_comment']) : '';
|
$comment = ($row['attach_comment'] && !$row['in_message']) ? str_replace(array("\n", "\r"), array('<br />', "\n"), $row['attach_comment']) : '';
|
||||||
$display_cat = $extensions[$row['extension']]['display_cat'];
|
$display_cat = $extensions[$row['extension']]['display_cat'];
|
||||||
$l_downloaded_viewed = ($display_cat == ATTACHMENT_CATEGORY_NONE) ? 'DOWNLOAD_COUNT' : 'VIEWED_COUNT';
|
$l_downloaded_viewed = ($display_cat == ATTACHMENT_CATEGORY_NONE) ? 'DOWNLOAD_COUNTS' : 'VIEWED_COUNTS';
|
||||||
$l_download_count = (!isset($row['download_count']) || (int) $row['download_count'] == 0) ? $user->lang[$l_downloaded_viewed . '_NONE'] : (((int) $row['download_count'] == 1) ? sprintf($user->lang[$l_downloaded_viewed], $row['download_count']) : sprintf($user->lang[$l_downloaded_viewed . 'S'], $row['download_count']));
|
|
||||||
|
|
||||||
$template->assign_block_vars('attachments', array(
|
$template->assign_block_vars('attachments', array(
|
||||||
'ATTACHMENT_POSTER' => get_username_string('full', (int) $row['poster_id'], (string) $row['username'], (string) $row['user_colour'], (string) $row['username']),
|
'ATTACHMENT_POSTER' => get_username_string('full', (int) $row['poster_id'], (string) $row['username'], (string) $row['user_colour'], (string) $row['username']),
|
||||||
|
@ -1261,7 +1260,7 @@ class acp_attachments
|
||||||
'TOPIC_ID' => (int) $row['topic_id'],
|
'TOPIC_ID' => (int) $row['topic_id'],
|
||||||
'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? (int) $post_ids[$row['attach_id']] : '',
|
'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? (int) $post_ids[$row['attach_id']] : '',
|
||||||
|
|
||||||
'L_DOWNLOAD_COUNT' => $l_download_count,
|
'L_DOWNLOAD_COUNT' => $user->lang($l_downloaded_viewed, (int) $row['download_count']),
|
||||||
|
|
||||||
'S_IN_MESSAGE' => (bool) $row['in_message'],
|
'S_IN_MESSAGE' => (bool) $row['in_message'],
|
||||||
|
|
||||||
|
|
|
@ -371,7 +371,7 @@ class acp_groups
|
||||||
{
|
{
|
||||||
if ($data['width'] > $config['avatar_max_width'] || $data['height'] > $config['avatar_max_height'])
|
if ($data['width'] > $config['avatar_max_width'] || $data['height'] > $config['avatar_max_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $data['width'], $data['height']);
|
$error[] = avatar_error_wrong_size($data['width'], $data['height']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ class acp_groups
|
||||||
{
|
{
|
||||||
if ($data['width'] < $config['avatar_min_width'] || $data['height'] < $config['avatar_min_height'])
|
if ($data['width'] < $config['avatar_min_width'] || $data['height'] < $config['avatar_min_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $data['width'], $data['height']);
|
$error[] = avatar_error_wrong_size($data['width'], $data['height']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -627,7 +627,7 @@ class acp_groups
|
||||||
'U_BACK' => $u_back,
|
'U_BACK' => $u_back,
|
||||||
'U_SWATCH' => append_sid("{$phpbb_admin_path}swatch.$phpEx", 'form=settings&name=group_colour'),
|
'U_SWATCH' => append_sid("{$phpbb_admin_path}swatch.$phpEx", 'form=settings&name=group_colour'),
|
||||||
'U_ACTION' => "{$this->u_action}&action=$action&g=$group_id",
|
'U_ACTION' => "{$this->u_action}&action=$action&g=$group_id",
|
||||||
'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], round($config['avatar_filesize'] / 1024)),
|
'L_AVATAR_EXPLAIN' => avatar_explanation_string(),
|
||||||
));
|
));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -487,21 +487,7 @@ class acp_icons
|
||||||
$cache->destroy('_icons');
|
$cache->destroy('_icons');
|
||||||
$cache->destroy('sql', $table);
|
$cache->destroy('sql', $table);
|
||||||
|
|
||||||
$level = E_USER_NOTICE;
|
$level = ($icons_updated) ? E_USER_NOTICE : E_USER_WARNING;
|
||||||
switch ($icons_updated)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
$suc_lang = "{$lang}_NONE";
|
|
||||||
$level = E_USER_WARNING;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 1:
|
|
||||||
$suc_lang = "{$lang}_ONE";
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
$suc_lang = $lang;
|
|
||||||
}
|
|
||||||
$errormsgs = '';
|
$errormsgs = '';
|
||||||
foreach ($errors as $img => $error)
|
foreach ($errors as $img => $error)
|
||||||
{
|
{
|
||||||
|
@ -509,11 +495,11 @@ class acp_icons
|
||||||
}
|
}
|
||||||
if ($action == 'modify')
|
if ($action == 'modify')
|
||||||
{
|
{
|
||||||
trigger_error($user->lang[$suc_lang . '_EDITED'] . $errormsgs . adm_back_link($this->u_action), $level);
|
trigger_error($user->lang($lang . '_EDITED', $icons_updated) . $errormsgs . adm_back_link($this->u_action), $level);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
trigger_error($user->lang[$suc_lang . '_ADDED'] . $errormsgs . adm_back_link($this->u_action), $level);
|
trigger_error($user->lang($lang . '_ADDED', $icons_updated) . $errormsgs . adm_back_link($this->u_action), $level);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -338,7 +338,7 @@ class acp_search
|
||||||
$totaltime = $mtime[0] + $mtime[1] - $starttime;
|
$totaltime = $mtime[0] + $mtime[1] - $starttime;
|
||||||
$rows_per_second = $row_count / $totaltime;
|
$rows_per_second = $row_count / $totaltime;
|
||||||
meta_refresh(1, append_sid($this->u_action . '&action=delete&skip_rows=' . $post_counter));
|
meta_refresh(1, append_sid($this->u_action . '&action=delete&skip_rows=' . $post_counter));
|
||||||
trigger_error(sprintf($user->lang['SEARCH_INDEX_DELETE_REDIRECT'], $post_counter, $row_count, $rows_per_second));
|
trigger_error($user->lang('SEARCH_INDEX_DELETE_REDIRECT', (int) $row_count, $post_counter, $rows_per_second));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -428,7 +428,7 @@ class acp_search
|
||||||
$totaltime = $mtime[0] + $mtime[1] - $starttime;
|
$totaltime = $mtime[0] + $mtime[1] - $starttime;
|
||||||
$rows_per_second = $row_count / $totaltime;
|
$rows_per_second = $row_count / $totaltime;
|
||||||
meta_refresh(1, append_sid($this->u_action . '&action=create&skip_rows=' . $post_counter));
|
meta_refresh(1, append_sid($this->u_action . '&action=create&skip_rows=' . $post_counter));
|
||||||
trigger_error(sprintf($user->lang['SEARCH_INDEX_CREATE_REDIRECT'], $post_counter, $row_count, $rows_per_second));
|
trigger_error($user->lang('SEARCH_INDEX_CREATE_REDIRECT', (int) $row_count, $post_counter) . $user->lang('SEARCH_INDEX_CREATE_REDIRECT_RATE', $rows_per_second));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1748,8 +1748,8 @@ class acp_users
|
||||||
'USER_AVATAR_WIDTH' => $user_row['user_avatar_width'],
|
'USER_AVATAR_WIDTH' => $user_row['user_avatar_width'],
|
||||||
'USER_AVATAR_HEIGHT' => $user_row['user_avatar_height'],
|
'USER_AVATAR_HEIGHT' => $user_row['user_avatar_height'],
|
||||||
|
|
||||||
'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], round($config['avatar_filesize'] / 1024)))
|
'L_AVATAR_EXPLAIN' => avatar_explanation_string()
|
||||||
);
|
));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1881,7 +1881,7 @@ class acp_users
|
||||||
'FLASH_STATUS' => ($config['allow_sig_flash']) ? $user->lang['FLASH_IS_ON'] : $user->lang['FLASH_IS_OFF'],
|
'FLASH_STATUS' => ($config['allow_sig_flash']) ? $user->lang['FLASH_IS_ON'] : $user->lang['FLASH_IS_OFF'],
|
||||||
'URL_STATUS' => ($config['allow_sig_links']) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
|
'URL_STATUS' => ($config['allow_sig_links']) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
|
||||||
|
|
||||||
'L_SIGNATURE_EXPLAIN' => sprintf($user->lang['SIGNATURE_EXPLAIN'], $config['max_sig_chars']),
|
'L_SIGNATURE_EXPLAIN' => $user->lang('SIGNATURE_EXPLAIN', (int) $config['max_sig_chars']),
|
||||||
|
|
||||||
'S_BBCODE_ALLOWED' => $config['allow_sig_bbcode'],
|
'S_BBCODE_ALLOWED' => $config['allow_sig_bbcode'],
|
||||||
'S_SMILIES_ALLOWED' => $config['allow_sig_smilies'],
|
'S_SMILIES_ALLOWED' => $config['allow_sig_smilies'],
|
||||||
|
|
|
@ -315,32 +315,32 @@ class custom_profile
|
||||||
case 'FIELD_INVALID_DATE':
|
case 'FIELD_INVALID_DATE':
|
||||||
case 'FIELD_INVALID_VALUE':
|
case 'FIELD_INVALID_VALUE':
|
||||||
case 'FIELD_REQUIRED':
|
case 'FIELD_REQUIRED':
|
||||||
$error = sprintf($user->lang[$cp_result], $row['lang_name']);
|
$error = $user->lang($cp_result, $row['lang_name']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'FIELD_TOO_SHORT':
|
case 'FIELD_TOO_SHORT':
|
||||||
case 'FIELD_TOO_SMALL':
|
case 'FIELD_TOO_SMALL':
|
||||||
$error = sprintf($user->lang[$cp_result], $row['lang_name'], $row['field_minlen']);
|
$error = $user->lang($cp_result, (int) $row['field_minlen'], $row['lang_name']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'FIELD_TOO_LONG':
|
case 'FIELD_TOO_LONG':
|
||||||
case 'FIELD_TOO_LARGE':
|
case 'FIELD_TOO_LARGE':
|
||||||
$error = sprintf($user->lang[$cp_result], $row['lang_name'], $row['field_maxlen']);
|
$error = $user->lang($cp_result, (int) $row['field_maxlen'], $row['lang_name']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'FIELD_INVALID_CHARS':
|
case 'FIELD_INVALID_CHARS':
|
||||||
switch ($row['field_validation'])
|
switch ($row['field_validation'])
|
||||||
{
|
{
|
||||||
case '[0-9]+':
|
case '[0-9]+':
|
||||||
$error = sprintf($user->lang[$cp_result . '_NUMBERS_ONLY'], $row['lang_name']);
|
$error = $user->lang($cp_result . '_NUMBERS_ONLY', $row['lang_name']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '[\w]+':
|
case '[\w]+':
|
||||||
$error = sprintf($user->lang[$cp_result . '_ALPHA_ONLY'], $row['lang_name']);
|
$error = $user->lang($cp_result . '_ALPHA_ONLY', $row['lang_name']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '[\w_\+\. \-\[\]]+':
|
case '[\w_\+\. \-\[\]]+':
|
||||||
$error = sprintf($user->lang[$cp_result . '_SPACERS_ONLY'], $row['lang_name']);
|
$error = $user->lang($cp_result . '_SPACERS_ONLY', $row['lang_name']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -427,7 +427,13 @@ class filespec
|
||||||
|
|
||||||
if (!$this->upload->valid_dimensions($this))
|
if (!$this->upload->valid_dimensions($this))
|
||||||
{
|
{
|
||||||
$this->error[] = sprintf($user->lang[$this->upload->error_prefix . 'WRONG_SIZE'], $this->upload->min_width, $this->upload->min_height, $this->upload->max_width, $this->upload->max_height, $this->width, $this->height);
|
$this->error[] = $user->lang($this->upload->error_prefix . 'WRONG_SIZE',
|
||||||
|
$user->lang('PIXELS', (int) $this->upload->min_width),
|
||||||
|
$user->lang('PIXELS', (int) $this->upload->min_height),
|
||||||
|
$user->lang('PIXELS', (int) $this->upload->max_width),
|
||||||
|
$user->lang('PIXELS', (int) $this->upload->max_height),
|
||||||
|
$user->lang('PIXELS', (int) $this->width),
|
||||||
|
$user->lang('PIXELS', (int) $this->height));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2039,7 +2039,7 @@ function avatar_remote($data, &$error)
|
||||||
{
|
{
|
||||||
if ($width > $config['avatar_max_width'] || $height > $config['avatar_max_height'])
|
if ($width > $config['avatar_max_width'] || $height > $config['avatar_max_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $width, $height);
|
$error[] = avatar_error_wrong_size($width, $height);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2048,7 +2048,7 @@ function avatar_remote($data, &$error)
|
||||||
{
|
{
|
||||||
if ($width < $config['avatar_min_width'] || $height < $config['avatar_min_height'])
|
if ($width < $config['avatar_min_width'] || $height < $config['avatar_min_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $width, $height);
|
$error[] = avatar_error_wrong_size($width, $height);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2388,7 +2388,7 @@ function avatar_process_user(&$error, $custom_userdata = false, $can_upload = nu
|
||||||
{
|
{
|
||||||
if ($data['width'] > $config['avatar_max_width'] || $data['height'] > $config['avatar_max_height'])
|
if ($data['width'] > $config['avatar_max_width'] || $data['height'] > $config['avatar_max_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $data['width'], $data['height']);
|
$error[] = avatar_error_wrong_size($data['width'], $data['height']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2398,7 +2398,7 @@ function avatar_process_user(&$error, $custom_userdata = false, $can_upload = nu
|
||||||
{
|
{
|
||||||
if ($data['width'] < $config['avatar_min_width'] || $data['height'] < $config['avatar_min_height'])
|
if ($data['width'] < $config['avatar_min_width'] || $data['height'] < $config['avatar_min_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $data['width'], $data['height']);
|
$error[] = avatar_error_wrong_size($data['width'], $data['height']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2444,6 +2444,29 @@ function avatar_process_user(&$error, $custom_userdata = false, $can_upload = nu
|
||||||
return (sizeof($error)) ? false : true;
|
return (sizeof($error)) ? false : true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function avatar_error_wrong_size($width, $height)
|
||||||
|
{
|
||||||
|
global $config, $user;
|
||||||
|
|
||||||
|
return $user->lang('AVATAR_WRONG_SIZE',
|
||||||
|
$user->lang('PIXELS', (int) $config['avatar_min_width']),
|
||||||
|
$user->lang('PIXELS', (int) $config['avatar_min_height']),
|
||||||
|
$user->lang('PIXELS', (int) $config['avatar_max_width']),
|
||||||
|
$user->lang('PIXELS', (int) $config['avatar_max_height']),
|
||||||
|
$user->lang('PIXELS', (int) $width),
|
||||||
|
$user->lang('PIXELS', (int) $height));
|
||||||
|
}
|
||||||
|
|
||||||
|
function avatar_explanation_string()
|
||||||
|
{
|
||||||
|
global $config, $user;
|
||||||
|
|
||||||
|
return $user->lang('AVATAR_EXPLAIN',
|
||||||
|
$user->lang('PIXELS', (int) $config['avatar_max_width']),
|
||||||
|
$user->lang('PIXELS', (int) $config['avatar_max_height']),
|
||||||
|
round($config['avatar_filesize'] / 1024));
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Usergroup functions
|
// Usergroup functions
|
||||||
//
|
//
|
||||||
|
|
|
@ -210,7 +210,7 @@ class bbcode_firstpass extends bbcode
|
||||||
|
|
||||||
if ($config['max_' . $this->mode . '_font_size'] && $config['max_' . $this->mode . '_font_size'] < $stx)
|
if ($config['max_' . $this->mode . '_font_size'] && $config['max_' . $this->mode . '_font_size'] < $stx)
|
||||||
{
|
{
|
||||||
$this->warn_msg[] = sprintf($user->lang['MAX_FONT_SIZE_EXCEEDED'], $config['max_' . $this->mode . '_font_size']);
|
$this->warn_msg[] = $user->lang('MAX_FONT_SIZE_EXCEEDED', (int) $config['max_' . $this->mode . '_font_size']);
|
||||||
|
|
||||||
return '[size=' . $stx . ']' . $in . '[/size]';
|
return '[size=' . $stx . ']' . $in . '[/size]';
|
||||||
}
|
}
|
||||||
|
@ -319,13 +319,13 @@ class bbcode_firstpass extends bbcode
|
||||||
if ($config['max_' . $this->mode . '_img_height'] && $config['max_' . $this->mode . '_img_height'] < $stats[1])
|
if ($config['max_' . $this->mode . '_img_height'] && $config['max_' . $this->mode . '_img_height'] < $stats[1])
|
||||||
{
|
{
|
||||||
$error = true;
|
$error = true;
|
||||||
$this->warn_msg[] = sprintf($user->lang['MAX_IMG_HEIGHT_EXCEEDED'], $config['max_' . $this->mode . '_img_height']);
|
$this->warn_msg[] = $user->lang('MAX_IMG_HEIGHT_EXCEEDED', (int) $config['max_' . $this->mode . '_img_height']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['max_' . $this->mode . '_img_width'] && $config['max_' . $this->mode . '_img_width'] < $stats[0])
|
if ($config['max_' . $this->mode . '_img_width'] && $config['max_' . $this->mode . '_img_width'] < $stats[0])
|
||||||
{
|
{
|
||||||
$error = true;
|
$error = true;
|
||||||
$this->warn_msg[] = sprintf($user->lang['MAX_IMG_WIDTH_EXCEEDED'], $config['max_' . $this->mode . '_img_width']);
|
$this->warn_msg[] = $user->lang('MAX_IMG_WIDTH_EXCEEDED', (int) $config['max_' . $this->mode . '_img_width']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -374,13 +374,13 @@ class bbcode_firstpass extends bbcode
|
||||||
if ($config['max_' . $this->mode . '_img_height'] && $config['max_' . $this->mode . '_img_height'] < $height)
|
if ($config['max_' . $this->mode . '_img_height'] && $config['max_' . $this->mode . '_img_height'] < $height)
|
||||||
{
|
{
|
||||||
$error = true;
|
$error = true;
|
||||||
$this->warn_msg[] = sprintf($user->lang['MAX_FLASH_HEIGHT_EXCEEDED'], $config['max_' . $this->mode . '_img_height']);
|
$this->warn_msg[] = $user->lang('MAX_FLASH_HEIGHT_EXCEEDED', (int) $config['max_' . $this->mode . '_img_height']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['max_' . $this->mode . '_img_width'] && $config['max_' . $this->mode . '_img_width'] < $width)
|
if ($config['max_' . $this->mode . '_img_width'] && $config['max_' . $this->mode . '_img_width'] < $width)
|
||||||
{
|
{
|
||||||
$error = true;
|
$error = true;
|
||||||
$this->warn_msg[] = sprintf($user->lang['MAX_FLASH_WIDTH_EXCEEDED'], $config['max_' . $this->mode . '_img_width']);
|
$this->warn_msg[] = $user->lang('MAX_FLASH_WIDTH_EXCEEDED', (int) $config['max_' . $this->mode . '_img_width']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1117,7 +1117,7 @@ class parse_message extends bbcode_firstpass
|
||||||
// Maximum message length check. 0 disables this check completely.
|
// Maximum message length check. 0 disables this check completely.
|
||||||
if ((int) $config['max_' . $mode . '_chars'] > 0 && $message_length > (int) $config['max_' . $mode . '_chars'])
|
if ((int) $config['max_' . $mode . '_chars'] > 0 && $message_length > (int) $config['max_' . $mode . '_chars'])
|
||||||
{
|
{
|
||||||
$this->warn_msg[] = sprintf($user->lang['TOO_MANY_CHARS_' . strtoupper($mode)], $message_length, (int) $config['max_' . $mode . '_chars']);
|
$this->warn_msg[] = $user->lang('TOO_MANY_CHARS_' . strtoupper($mode), $message_length, (int) $config['max_' . $mode . '_chars']);
|
||||||
return (!$update_this_message) ? $return_message : $this->warn_msg;
|
return (!$update_this_message) ? $return_message : $this->warn_msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1126,7 +1126,7 @@ class parse_message extends bbcode_firstpass
|
||||||
{
|
{
|
||||||
if (!$message_length || $message_length < (int) $config['min_post_chars'])
|
if (!$message_length || $message_length < (int) $config['min_post_chars'])
|
||||||
{
|
{
|
||||||
$this->warn_msg[] = (!$message_length) ? $user->lang['TOO_FEW_CHARS'] : sprintf($user->lang['TOO_FEW_CHARS_LIMIT'], $message_length, (int) $config['min_post_chars']);
|
$this->warn_msg[] = (!$message_length) ? $user->lang['TOO_FEW_CHARS'] : $user->lang('TOO_FEW_CHARS_LIMIT', $message_length, (int) $config['min_post_chars']);
|
||||||
return (!$update_this_message) ? $return_message : $this->warn_msg;
|
return (!$update_this_message) ? $return_message : $this->warn_msg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1445,7 +1445,7 @@ class parse_message extends bbcode_firstpass
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['TOO_MANY_ATTACHMENTS'], $cfg['max_attachments']);
|
$error[] = $user->lang('TOO_MANY_ATTACHMENTS', (int) $cfg['max_attachments']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1536,7 +1536,7 @@ class parse_message extends bbcode_firstpass
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['TOO_MANY_ATTACHMENTS'], $cfg['max_attachments']);
|
$error[] = $user->lang('TOO_MANY_ATTACHMENTS', (int) $cfg['max_attachments']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -561,7 +561,7 @@ class ucp_groups
|
||||||
{
|
{
|
||||||
if ($data['width'] > $config['avatar_max_width'] || $data['height'] > $config['avatar_max_height'])
|
if ($data['width'] > $config['avatar_max_width'] || $data['height'] > $config['avatar_max_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $data['width'], $data['height']);
|
$error[] = avatar_error_wrong_size($data['width'], $data['height']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -571,7 +571,7 @@ class ucp_groups
|
||||||
{
|
{
|
||||||
if ($data['width'] < $config['avatar_min_width'] || $data['height'] < $config['avatar_min_height'])
|
if ($data['width'] < $config['avatar_min_width'] || $data['height'] < $config['avatar_min_height'])
|
||||||
{
|
{
|
||||||
$error[] = sprintf($user->lang['AVATAR_WRONG_SIZE'], $config['avatar_min_width'], $config['avatar_min_height'], $config['avatar_max_width'], $config['avatar_max_height'], $data['width'], $data['height']);
|
$error[] = avatar_error_wrong_size($data['width'], $data['height']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -732,7 +732,7 @@ class ucp_groups
|
||||||
|
|
||||||
'U_SWATCH' => append_sid("{$phpbb_root_path}adm/swatch.$phpEx", 'form=ucp&name=group_colour'),
|
'U_SWATCH' => append_sid("{$phpbb_root_path}adm/swatch.$phpEx", 'form=ucp&name=group_colour'),
|
||||||
'S_UCP_ACTION' => $this->u_action . "&action=$action&g=$group_id",
|
'S_UCP_ACTION' => $this->u_action . "&action=$action&g=$group_id",
|
||||||
'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], $config['avatar_filesize'] / 1024),
|
'L_AVATAR_EXPLAIN' => avatar_explanation_string(),
|
||||||
));
|
));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -1068,7 +1068,7 @@ class ucp_groups
|
||||||
'mode' => $mode,
|
'mode' => $mode,
|
||||||
'action' => $action
|
'action' => $action
|
||||||
);
|
);
|
||||||
confirm_box(false, sprintf($user->lang['GROUP_CONFIRM_ADD_USER' . ((sizeof($name_ary) == 1) ? '' : 'S')], implode(', ', $name_ary)), build_hidden_fields($s_hidden_fields));
|
confirm_box(false, $user->lang('GROUP_CONFIRM_ADD_USERS', sizeof($name_ary), implode(', ', $name_ary)), build_hidden_fields($s_hidden_fields));
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger_error($user->lang['NO_USERS_ADDED'] . '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . $this->u_action . '&action=list&g=' . $group_id . '">', '</a>'));
|
trigger_error($user->lang['NO_USERS_ADDED'] . '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . $this->u_action . '&action=list&g=' . $group_id . '">', '</a>'));
|
||||||
|
|
|
@ -194,8 +194,8 @@ class ucp_main
|
||||||
'VISITED' => (empty($last_visit)) ? ' - ' : $user->format_date($last_visit),
|
'VISITED' => (empty($last_visit)) ? ' - ' : $user->format_date($last_visit),
|
||||||
'WARNINGS' => ($user->data['user_warnings']) ? $user->data['user_warnings'] : 0,
|
'WARNINGS' => ($user->data['user_warnings']) ? $user->data['user_warnings'] : 0,
|
||||||
'POSTS' => ($user->data['user_posts']) ? $user->data['user_posts'] : 0,
|
'POSTS' => ($user->data['user_posts']) ? $user->data['user_posts'] : 0,
|
||||||
'POSTS_DAY' => sprintf($user->lang['POST_DAY'], $posts_per_day),
|
'POSTS_DAY' => $user->lang('POST_DAY', $posts_per_day),
|
||||||
'POSTS_PCT' => sprintf($user->lang['POST_PCT'], $percentage),
|
'POSTS_PCT' => $user->lang('POST_PCT', $percentage),
|
||||||
|
|
||||||
'OCCUPATION' => (!empty($row['user_occ'])) ? $row['user_occ'] : '',
|
'OCCUPATION' => (!empty($row['user_occ'])) ? $row['user_occ'] : '',
|
||||||
'INTERESTS' => (!empty($row['user_interests'])) ? $row['user_interests'] : '',
|
'INTERESTS' => (!empty($row['user_interests'])) ? $row['user_interests'] : '',
|
||||||
|
|
|
@ -1053,7 +1053,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'L_POST_A' => $page_title,
|
'L_POST_A' => $page_title,
|
||||||
'L_ICON' => $user->lang['PM_ICON'],
|
'L_ICON' => $user->lang['PM_ICON'],
|
||||||
'L_MESSAGE_BODY_EXPLAIN' => (intval($config['max_post_chars'])) ? sprintf($user->lang['MESSAGE_BODY_EXPLAIN'], intval($config['max_post_chars'])) : '',
|
'L_MESSAGE_BODY_EXPLAIN' => $user->lang('MESSAGE_BODY_EXPLAIN', (int) $config['max_post_chars']),
|
||||||
|
|
||||||
'SUBJECT' => (isset($message_subject)) ? $message_subject : '',
|
'SUBJECT' => (isset($message_subject)) ? $message_subject : '',
|
||||||
'MESSAGE' => $message_text,
|
'MESSAGE' => $message_text,
|
||||||
|
|
|
@ -231,7 +231,7 @@ function message_options($id, $mode, $global_privmsgs_rules, $global_rule_condit
|
||||||
// Something went wrong, only partially moved?
|
// Something went wrong, only partially moved?
|
||||||
if ($num_moved != $folder_row['pm_count'])
|
if ($num_moved != $folder_row['pm_count'])
|
||||||
{
|
{
|
||||||
trigger_error(sprintf($user->lang['MOVE_PM_ERROR'], $num_moved, $folder_row['pm_count']));
|
trigger_error($user->lang('MOVE_PM_ERROR', (int) $folder_row['pm_count'], $num_moved));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -537,7 +537,7 @@ class ucp_profile
|
||||||
'URL_STATUS' => ($config['allow_sig_links']) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
|
'URL_STATUS' => ($config['allow_sig_links']) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
|
||||||
'MAX_FONT_SIZE' => (int) $config['max_sig_font_size'],
|
'MAX_FONT_SIZE' => (int) $config['max_sig_font_size'],
|
||||||
|
|
||||||
'L_SIGNATURE_EXPLAIN' => sprintf($user->lang['SIGNATURE_EXPLAIN'], $config['max_sig_chars']),
|
'L_SIGNATURE_EXPLAIN' => $user->lang('SIGNATURE_EXPLAIN', (int) $config['max_sig_chars']),
|
||||||
|
|
||||||
'S_BBCODE_ALLOWED' => $config['allow_sig_bbcode'],
|
'S_BBCODE_ALLOWED' => $config['allow_sig_bbcode'],
|
||||||
'S_SMILIES_ALLOWED' => $config['allow_sig_smilies'],
|
'S_SMILIES_ALLOWED' => $config['allow_sig_smilies'],
|
||||||
|
@ -602,7 +602,7 @@ class ucp_profile
|
||||||
|
|
||||||
'S_FORM_ENCTYPE' => ($can_upload && ($config['allow_avatar_upload'] || $config['allow_avatar_remote_upload'])) ? ' enctype="multipart/form-data"' : '',
|
'S_FORM_ENCTYPE' => ($can_upload && ($config['allow_avatar_upload'] || $config['allow_avatar_remote_upload'])) ? ' enctype="multipart/form-data"' : '',
|
||||||
|
|
||||||
'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], $config['avatar_filesize'] / 1024),
|
'L_AVATAR_EXPLAIN' => avatar_explanation_string(),
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($config['allow_avatar'] && $display_gallery && $auth->acl_get('u_chgavatar') && $config['allow_avatar_local'])
|
if ($config['allow_avatar'] && $display_gallery && $auth->acl_get('u_chgavatar') && $config['allow_avatar_local'])
|
||||||
|
|
|
@ -118,7 +118,7 @@ $template->assign_vars(array(
|
||||||
'TOTAL_POSTS' => $user->lang('TOTAL_POSTS', (int) $config['num_posts']),
|
'TOTAL_POSTS' => $user->lang('TOTAL_POSTS', (int) $config['num_posts']),
|
||||||
'TOTAL_TOPICS' => $user->lang('TOTAL_TOPICS', (int) $config['num_topics']),
|
'TOTAL_TOPICS' => $user->lang('TOTAL_TOPICS', (int) $config['num_topics']),
|
||||||
'TOTAL_USERS' => $user->lang('TOTAL_USERS', (int) $config['num_users']),
|
'TOTAL_USERS' => $user->lang('TOTAL_USERS', (int) $config['num_users']),
|
||||||
'NEWEST_USER' => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
|
'NEWEST_USER' => $user->lang('NEWEST_USER', get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
|
||||||
|
|
||||||
'LEGEND' => $legend,
|
'LEGEND' => $legend,
|
||||||
'BIRTHDAY_LIST' => (empty($birthday_list)) ? '' : implode(', ', $birthday_list),
|
'BIRTHDAY_LIST' => (empty($birthday_list)) ? '' : implode(', ', $birthday_list),
|
||||||
|
|
|
@ -54,8 +54,10 @@ $lang = array_merge($lang, array(
|
||||||
'GROUP_CLOSED' => 'Closed',
|
'GROUP_CLOSED' => 'Closed',
|
||||||
'GROUP_COLOR' => 'Group colour',
|
'GROUP_COLOR' => 'Group colour',
|
||||||
'GROUP_COLOR_EXPLAIN' => 'Defines the colour members’ usernames will appear in, leave blank for user default.',
|
'GROUP_COLOR_EXPLAIN' => 'Defines the colour members’ usernames will appear in, leave blank for user default.',
|
||||||
'GROUP_CONFIRM_ADD_USER' => 'Are you sure that you want to add the user %1$s to the group?',
|
'GROUP_CONFIRM_ADD_USERS' => array(
|
||||||
'GROUP_CONFIRM_ADD_USERS' => 'Are you sure that you want to add the users %1$s to the group?',
|
1 => 'Are you sure that you want to add the user %2$s to the group?',
|
||||||
|
2 => 'Are you sure that you want to add the users %2$s to the group?',
|
||||||
|
),
|
||||||
'GROUP_CREATED' => 'Group has been created successfully.',
|
'GROUP_CREATED' => 'Group has been created successfully.',
|
||||||
'GROUP_DEFAULT' => 'Make group default for member',
|
'GROUP_DEFAULT' => 'Make group default for member',
|
||||||
'GROUP_DEFS_UPDATED' => 'Default group set for all selected members.',
|
'GROUP_DEFS_UPDATED' => 'Default group set for all selected members.',
|
||||||
|
|
|
@ -121,15 +121,19 @@ $lang = array_merge($lang, array(
|
||||||
'FIRST' => 'First',
|
'FIRST' => 'First',
|
||||||
|
|
||||||
'ICONS_ADD' => 'Add a new icon',
|
'ICONS_ADD' => 'Add a new icon',
|
||||||
'ICONS_NONE_ADDED' => 'No icons were added.',
|
'ICONS_ADDED' => array(
|
||||||
'ICONS_ONE_ADDED' => 'The icon has been added successfully.',
|
0 => 'No icons were added.',
|
||||||
'ICONS_ADDED' => 'The icons have been added successfully.',
|
1 => 'The icon has been added successfully.',
|
||||||
|
2 => 'The icons have been added successfully.',
|
||||||
|
),
|
||||||
'ICONS_CONFIG' => 'Icon configuration',
|
'ICONS_CONFIG' => 'Icon configuration',
|
||||||
'ICONS_DELETED' => 'The icon has been removed successfully.',
|
'ICONS_DELETED' => 'The icon has been removed successfully.',
|
||||||
'ICONS_EDIT' => 'Edit icon',
|
'ICONS_EDIT' => 'Edit icon',
|
||||||
'ICONS_ONE_EDITED' => 'The icon has been updated successfully.',
|
'ICONS_EDITED' => array(
|
||||||
'ICONS_NONE_EDITED' => 'No icons were updated.',
|
0 => 'No icons were updated.',
|
||||||
'ICONS_EDITED' => 'The icons have been updated successfully.',
|
1 => 'The icon has been updated successfully.',
|
||||||
|
2 => 'The icons have been updated successfully.',
|
||||||
|
),
|
||||||
'ICONS_HEIGHT' => 'Icon height',
|
'ICONS_HEIGHT' => 'Icon height',
|
||||||
'ICONS_IMAGE' => 'Icon image',
|
'ICONS_IMAGE' => 'Icon image',
|
||||||
'ICONS_IMPORTED' => 'The icons pack has been installed successfully.',
|
'ICONS_IMPORTED' => 'The icons pack has been installed successfully.',
|
||||||
|
@ -161,9 +165,11 @@ $lang = array_merge($lang, array(
|
||||||
|
|
||||||
'SELECT_PACKAGE' => 'Select a package file',
|
'SELECT_PACKAGE' => 'Select a package file',
|
||||||
'SMILIES_ADD' => 'Add a new smiley',
|
'SMILIES_ADD' => 'Add a new smiley',
|
||||||
'SMILIES_NONE_ADDED' => 'No smilies were added.',
|
'SMILIES_ADDED' => array(
|
||||||
'SMILIES_ONE_ADDED' => 'The smiley has been added successfully.',
|
0 => 'No smilies were added.',
|
||||||
'SMILIES_ADDED' => 'The smilies have been added successfully.',
|
1 => 'The smiley has been added successfully.',
|
||||||
|
2 => 'The smilies have been added successfully.',
|
||||||
|
),
|
||||||
'SMILIES_CODE' => 'Smiley code',
|
'SMILIES_CODE' => 'Smiley code',
|
||||||
'SMILIES_CONFIG' => 'Smiley configuration',
|
'SMILIES_CONFIG' => 'Smiley configuration',
|
||||||
'SMILIES_DELETED' => 'The smiley has been removed successfully.',
|
'SMILIES_DELETED' => 'The smiley has been removed successfully.',
|
||||||
|
@ -171,9 +177,11 @@ $lang = array_merge($lang, array(
|
||||||
'SMILIE_NO_CODE' => 'The smiley “%s” was ignored, as there was no code entered.',
|
'SMILIE_NO_CODE' => 'The smiley “%s” was ignored, as there was no code entered.',
|
||||||
'SMILIE_NO_EMOTION' => 'The smiley “%s” was ignored, as there was no emotion entered.',
|
'SMILIE_NO_EMOTION' => 'The smiley “%s” was ignored, as there was no emotion entered.',
|
||||||
'SMILIE_NO_FILE' => 'The smiley “%s” was ignored, as the file is missing.',
|
'SMILIE_NO_FILE' => 'The smiley “%s” was ignored, as the file is missing.',
|
||||||
'SMILIES_NONE_EDITED' => 'No smilies were updated.',
|
'SMILIES_EDITED' => array(
|
||||||
'SMILIES_ONE_EDITED' => 'The smiley has been updated successfully.',
|
0 => 'No smilies were updated.',
|
||||||
'SMILIES_EDITED' => 'The smilies have been updated successfully.',
|
1 => 'The smiley has been updated successfully.',
|
||||||
|
2 => 'The smilies have been updated successfully.',
|
||||||
|
),
|
||||||
'SMILIES_EMOTION' => 'Emotion',
|
'SMILIES_EMOTION' => 'Emotion',
|
||||||
'SMILIES_HEIGHT' => 'Smiley height',
|
'SMILIES_HEIGHT' => 'Smiley height',
|
||||||
'SMILIES_IMAGE' => 'Smiley image',
|
'SMILIES_IMAGE' => 'Smiley image',
|
||||||
|
|
|
@ -85,8 +85,15 @@ $lang = array_merge($lang, array(
|
||||||
|
|
||||||
'SEARCH_GUEST_INTERVAL' => 'Guest search flood interval',
|
'SEARCH_GUEST_INTERVAL' => 'Guest search flood interval',
|
||||||
'SEARCH_GUEST_INTERVAL_EXPLAIN' => 'Number of seconds guests must wait between searches. If one guest searches all others have to wait until the time interval passed.',
|
'SEARCH_GUEST_INTERVAL_EXPLAIN' => 'Number of seconds guests must wait between searches. If one guest searches all others have to wait until the time interval passed.',
|
||||||
'SEARCH_INDEX_CREATE_REDIRECT' => 'All posts up to post id %1$d have now been indexed, of which %2$d posts were within this step.<br />The current rate of indexing is approximately %3$.1f posts per second.<br />Indexing in progress…',
|
'SEARCH_INDEX_CREATE_REDIRECT' => array(
|
||||||
'SEARCH_INDEX_DELETE_REDIRECT' => 'All posts up to post id %1$d have been removed from the search index.<br />Deleting in progress…',
|
2 => 'All posts up to post id %2$d have now been indexed, of which %1$d posts were within this step.<br />',
|
||||||
|
),
|
||||||
|
'SEARCH_INDEX_CREATE_REDIRECT_RATE' => array(
|
||||||
|
2 => 'The current rate of indexing is approximately %1$.1f posts per second.<br />Indexing in progress…',
|
||||||
|
),
|
||||||
|
'SEARCH_INDEX_DELETE_REDIRECT' => array(
|
||||||
|
2 => 'All posts up to post id %2$d have been removed from the search index.<br />Deleting in progress…',
|
||||||
|
),
|
||||||
'SEARCH_INDEX_CREATED' => 'Successfully indexed all posts in the board database.',
|
'SEARCH_INDEX_CREATED' => 'Successfully indexed all posts in the board database.',
|
||||||
'SEARCH_INDEX_REMOVED' => 'Successfully deleted the search index for this backend.',
|
'SEARCH_INDEX_REMOVED' => 'Successfully deleted the search index for this backend.',
|
||||||
'SEARCH_INTERVAL' => 'User search flood interval',
|
'SEARCH_INTERVAL' => 'User search flood interval',
|
||||||
|
|
|
@ -96,7 +96,7 @@ $lang = array_merge($lang, array(
|
||||||
'AVATAR_URL_INVALID' => 'The URL you specified is invalid.',
|
'AVATAR_URL_INVALID' => 'The URL you specified is invalid.',
|
||||||
'AVATAR_URL_NOT_FOUND' => 'The file specified could not be found.',
|
'AVATAR_URL_NOT_FOUND' => 'The file specified could not be found.',
|
||||||
'AVATAR_WRONG_FILESIZE' => 'The avatar’s filesize must be between 0 and %1d %2s.',
|
'AVATAR_WRONG_FILESIZE' => 'The avatar’s filesize must be between 0 and %1d %2s.',
|
||||||
'AVATAR_WRONG_SIZE' => 'The submitted avatar is %5$d pixels wide and %6$d pixels high. Avatars must be at least %1$d pixels wide and %2$d pixels high, but no larger than %3$d pixels wide and %4$d pixels high.',
|
'AVATAR_WRONG_SIZE' => 'The submitted avatar is %5$s wide and %6$s high. Avatars must be at least %1$s wide and %2$s high, but no larger than %3$s wide and %4$s high.',
|
||||||
|
|
||||||
'BACK_TO_TOP' => 'Top',
|
'BACK_TO_TOP' => 'Top',
|
||||||
'BACK_TO_PREV' => 'Back to previous page',
|
'BACK_TO_PREV' => 'Back to previous page',
|
||||||
|
@ -125,6 +125,11 @@ $lang = array_merge($lang, array(
|
||||||
'CHANGE_FONT_SIZE' => 'Change font size',
|
'CHANGE_FONT_SIZE' => 'Change font size',
|
||||||
'CHANGING_PREFERENCES' => 'Changing board preferences',
|
'CHANGING_PREFERENCES' => 'Changing board preferences',
|
||||||
'CHANGING_PROFILE' => 'Changing profile settings',
|
'CHANGING_PROFILE' => 'Changing profile settings',
|
||||||
|
'CHARACTERS' => array(
|
||||||
|
0 => '%d characters',
|
||||||
|
1 => '%d character',
|
||||||
|
2 => '%d characters',
|
||||||
|
),
|
||||||
'CLICK_VIEW_PRIVMSG' => '%sGo to your inbox%s',
|
'CLICK_VIEW_PRIVMSG' => '%sGo to your inbox%s',
|
||||||
'COLLAPSE_VIEW' => 'Collapse view',
|
'COLLAPSE_VIEW' => 'Collapse view',
|
||||||
'CLOSE_WINDOW' => 'Close window',
|
'CLOSE_WINDOW' => 'Close window',
|
||||||
|
@ -447,6 +452,11 @@ $lang = array_merge($lang, array(
|
||||||
'PAGE_TITLE_NUMBER' => 'Page %s',
|
'PAGE_TITLE_NUMBER' => 'Page %s',
|
||||||
'PASSWORD' => 'Password',
|
'PASSWORD' => 'Password',
|
||||||
'PIXEL' => 'px',
|
'PIXEL' => 'px',
|
||||||
|
'PIXELS' => array(
|
||||||
|
0 => '%d pixels',
|
||||||
|
1 => '%d pixel',
|
||||||
|
2 => '%d pixels',
|
||||||
|
),
|
||||||
'PLAY_QUICKTIME_FILE' => 'Play Quicktime file',
|
'PLAY_QUICKTIME_FILE' => 'Play Quicktime file',
|
||||||
'PM' => 'PM',
|
'PM' => 'PM',
|
||||||
'PM_REPORTED' => 'Click to view report',
|
'PM_REPORTED' => 'Click to view report',
|
||||||
|
|
|
@ -121,13 +121,25 @@ $lang = array_merge($lang, array(
|
||||||
'LOGIN_EXPLAIN_QUOTE' => 'You need to login in order to quote posts within this forum.',
|
'LOGIN_EXPLAIN_QUOTE' => 'You need to login in order to quote posts within this forum.',
|
||||||
'LOGIN_EXPLAIN_REPLY' => 'You need to login in order to reply to topics within this forum.',
|
'LOGIN_EXPLAIN_REPLY' => 'You need to login in order to reply to topics within this forum.',
|
||||||
|
|
||||||
'MAX_FONT_SIZE_EXCEEDED' => 'You may only use fonts up to size %1$d.',
|
'MAX_FONT_SIZE_EXCEEDED' => 'You may only use fonts up to size %d.',
|
||||||
'MAX_FLASH_HEIGHT_EXCEEDED' => 'Your flash files may only be up to %1$d pixels high.',
|
'MAX_FLASH_HEIGHT_EXCEEDED' => array(
|
||||||
'MAX_FLASH_WIDTH_EXCEEDED' => 'Your flash files may only be up to %1$d pixels wide.',
|
2 => 'Your flash files may only be up to %d pixels high.',
|
||||||
'MAX_IMG_HEIGHT_EXCEEDED' => 'Your images may only be up to %1$d pixels high.',
|
),
|
||||||
'MAX_IMG_WIDTH_EXCEEDED' => 'Your images may only be up to %1$d pixels wide.',
|
'MAX_FLASH_WIDTH_EXCEEDED' => array(
|
||||||
|
2 => 'Your flash files may only be up to %d pixels wide.',
|
||||||
|
),
|
||||||
|
'MAX_IMG_HEIGHT_EXCEEDED' => array(
|
||||||
|
2 => 'Your images may only be up to %1$d pixels high.',
|
||||||
|
),
|
||||||
|
'MAX_IMG_WIDTH_EXCEEDED' => array(
|
||||||
|
2 => 'Your images may only be up to %d pixels wide.',
|
||||||
|
),
|
||||||
|
|
||||||
'MESSAGE_BODY_EXPLAIN' => 'Enter your message here, it may contain no more than <strong>%d</strong> characters.',
|
'MESSAGE_BODY_EXPLAIN' => array(
|
||||||
|
0 => '', // zero means no limit, so we don't view a message here.
|
||||||
|
1 => 'Enter your message here, it may contain no more than <strong>%d</strong> character.',
|
||||||
|
2 => 'Enter your message here, it may contain no more than <strong>%d</strong> characters.',
|
||||||
|
),
|
||||||
'MESSAGE_DELETED' => 'This message has been deleted successfully.',
|
'MESSAGE_DELETED' => 'This message has been deleted successfully.',
|
||||||
'MORE_SMILIES' => 'View more smilies',
|
'MORE_SMILIES' => 'View more smilies',
|
||||||
|
|
||||||
|
@ -202,12 +214,19 @@ $lang = array_merge($lang, array(
|
||||||
'STYLES_TIP' => 'Tip: Styles can be applied quickly to selected text.',
|
'STYLES_TIP' => 'Tip: Styles can be applied quickly to selected text.',
|
||||||
|
|
||||||
'TOO_FEW_CHARS' => 'Your message contains too few characters.',
|
'TOO_FEW_CHARS' => 'Your message contains too few characters.',
|
||||||
'TOO_FEW_CHARS_LIMIT' => 'Your message contains %1$d characters. The minimum number of characters you need to enter is %2$d.',
|
'TOO_FEW_CHARS_LIMIT' => array(
|
||||||
|
1 => 'Your message contains %1$d character. The minimum number of characters you need to enter is %2$d.',
|
||||||
|
2 => 'Your message contains %1$d characters. The minimum number of characters you need to enter is %2$d.',
|
||||||
|
),
|
||||||
'TOO_FEW_POLL_OPTIONS' => 'You must enter at least two poll options.',
|
'TOO_FEW_POLL_OPTIONS' => 'You must enter at least two poll options.',
|
||||||
'TOO_MANY_ATTACHMENTS' => 'Cannot add another attachment, %d is the maximum.',
|
'TOO_MANY_ATTACHMENTS' => 'Cannot add another attachment, %d is the maximum.',
|
||||||
'TOO_MANY_CHARS' => 'Your message contains too many characters.',
|
'TOO_MANY_CHARS' => 'Your message contains too many characters.',
|
||||||
'TOO_MANY_CHARS_POST' => 'Your message contains %1$d characters. The maximum number of allowed characters is %2$d.',
|
'TOO_MANY_CHARS_POST' => array(
|
||||||
'TOO_MANY_CHARS_SIG' => 'Your signature contains %1$d characters. The maximum number of allowed characters is %2$d.',
|
2 => 'Your message contains %1$d characters. The maximum number of allowed characters is %2$d.',
|
||||||
|
),
|
||||||
|
'TOO_MANY_CHARS_SIG' => array(
|
||||||
|
2 => 'Your signature contains %1$d characters. The maximum number of allowed characters is %2$d.',
|
||||||
|
),
|
||||||
'TOO_MANY_POLL_OPTIONS' => 'You have tried to enter too many poll options.',
|
'TOO_MANY_POLL_OPTIONS' => 'You have tried to enter too many poll options.',
|
||||||
'TOO_MANY_SMILIES' => 'Your message contains too many smilies. The maximum number of smilies allowed is %d.',
|
'TOO_MANY_SMILIES' => 'Your message contains too many smilies. The maximum number of smilies allowed is %d.',
|
||||||
'TOO_MANY_URLS' => 'Your message contains too many URLs. The maximum number of URLs allowed is %d.',
|
'TOO_MANY_URLS' => 'Your message contains too many URLs. The maximum number of URLs allowed is %d.',
|
||||||
|
@ -231,5 +250,5 @@ $lang = array_merge($lang, array(
|
||||||
'VIEW_PRIVATE_MESSAGE' => '%sView your submitted private message%s',
|
'VIEW_PRIVATE_MESSAGE' => '%sView your submitted private message%s',
|
||||||
|
|
||||||
'WRONG_FILESIZE' => 'The file is too big, maximum allowed size is %1d %2s.',
|
'WRONG_FILESIZE' => 'The file is too big, maximum allowed size is %1d %2s.',
|
||||||
'WRONG_SIZE' => 'The image must be at least %1$d pixels wide, %2$d pixels high and at most %3$d pixels wide and %4$d pixels high. The submitted image is %5$d pixels wide and %6$d pixels high.',
|
'WRONG_SIZE' => 'The image must be at least %1$s wide, %2$s high and at most %3$s wide and %4$s high. The submitted image is %5$s wide and %6$s high.',
|
||||||
));
|
));
|
||||||
|
|
|
@ -65,7 +65,7 @@ $lang = array_merge($lang, array(
|
||||||
|
|
||||||
'MAX_NUM_SEARCH_KEYWORDS_REFINE' => 'You specified too many words to search for. Please do not enter more than %1$d words.',
|
'MAX_NUM_SEARCH_KEYWORDS_REFINE' => 'You specified too many words to search for. Please do not enter more than %1$d words.',
|
||||||
|
|
||||||
'NO_KEYWORDS' => 'You must specify at least one word to search for. Each word must consist of at least %d characters and must not contain more than %d characters excluding wildcards.',
|
'NO_KEYWORDS' => 'You must specify at least one word to search for. Each word must consist of at least %s and must not contain more than %s excluding wildcards.',
|
||||||
'NO_RECENT_SEARCHES' => 'No searches have been carried out recently.',
|
'NO_RECENT_SEARCHES' => 'No searches have been carried out recently.',
|
||||||
'NO_SEARCH' => 'Sorry but you are not permitted to use the search system.',
|
'NO_SEARCH' => 'Sorry but you are not permitted to use the search system.',
|
||||||
'NO_SEARCH_RESULTS' => 'No suitable matches were found.',
|
'NO_SEARCH_RESULTS' => 'No suitable matches were found.',
|
||||||
|
|
|
@ -89,7 +89,7 @@ $lang = array_merge($lang, array(
|
||||||
'ATTACHMENTS_DELETED' => 'Attachments successfully deleted.',
|
'ATTACHMENTS_DELETED' => 'Attachments successfully deleted.',
|
||||||
'ATTACHMENT_DELETED' => 'Attachment successfully deleted.',
|
'ATTACHMENT_DELETED' => 'Attachment successfully deleted.',
|
||||||
'AVATAR_CATEGORY' => 'Category',
|
'AVATAR_CATEGORY' => 'Category',
|
||||||
'AVATAR_EXPLAIN' => 'Maximum dimensions; width: %1$d pixels, height: %2$d pixels, file size: %3$.2f KiB.',
|
'AVATAR_EXPLAIN' => 'Maximum dimensions; width: %1$s, height: %2$s, file size: %3$.2f KiB.',
|
||||||
'AVATAR_FEATURES_DISABLED' => 'The avatar functionality is currently disabled.',
|
'AVATAR_FEATURES_DISABLED' => 'The avatar functionality is currently disabled.',
|
||||||
'AVATAR_GALLERY' => 'Local gallery',
|
'AVATAR_GALLERY' => 'Local gallery',
|
||||||
'AVATAR_GENERAL_UPLOAD_ERROR' => 'Could not upload avatar to %s.',
|
'AVATAR_GENERAL_UPLOAD_ERROR' => 'Could not upload avatar to %s.',
|
||||||
|
@ -188,10 +188,16 @@ $lang = array_merge($lang, array(
|
||||||
'EXPORT_FOLDER' => 'Export this view',
|
'EXPORT_FOLDER' => 'Export this view',
|
||||||
|
|
||||||
'FIELD_REQUIRED' => 'The field “%s” must be completed.',
|
'FIELD_REQUIRED' => 'The field “%s” must be completed.',
|
||||||
'FIELD_TOO_SHORT' => 'The field “%1$s” is too short, a minimum of %2$d characters is required.',
|
'FIELD_TOO_SHORT' => array(
|
||||||
'FIELD_TOO_LONG' => 'The field “%1$s” is too long, a maximum of %2$d characters is allowed.',
|
1 => 'The field “%2$s” is too short, a minimum of %1$d character is required.',
|
||||||
'FIELD_TOO_SMALL' => 'The value of “%1$s” is too small, a minimum value of %2$d is required.',
|
2 => 'The field “%2$s” is too short, a minimum of %1$d characters is required.',
|
||||||
'FIELD_TOO_LARGE' => 'The value of “%1$s” is too large, a maximum value of %2$d is allowed.',
|
),
|
||||||
|
'FIELD_TOO_LONG' => array(
|
||||||
|
1 => 'The field “%2$s” is too long, a maximum of %1$d character is allowed.',
|
||||||
|
2 => 'The field “%2$s” is too long, a maximum of %1$d characters is allowed.',
|
||||||
|
),
|
||||||
|
'FIELD_TOO_SMALL' => 'The value of “%2$s” is too small, a minimum value of %1$d is required.',
|
||||||
|
'FIELD_TOO_LARGE' => 'The value of “%2$s” is too large, a maximum value of %1$d is allowed.',
|
||||||
'FIELD_INVALID_CHARS_NUMBERS_ONLY' => 'The field “%s” has invalid characters, only numbers are allowed.',
|
'FIELD_INVALID_CHARS_NUMBERS_ONLY' => 'The field “%s” has invalid characters, only numbers are allowed.',
|
||||||
'FIELD_INVALID_CHARS_ALPHA_ONLY' => 'The field “%s” has invalid characters, only alphanumeric characters are allowed.',
|
'FIELD_INVALID_CHARS_ALPHA_ONLY' => 'The field “%s” has invalid characters, only alphanumeric characters are allowed.',
|
||||||
'FIELD_INVALID_CHARS_SPACERS_ONLY' => 'The field “%s” has invalid characters, only alphanumeric, space or -+_[] characters are allowed.',
|
'FIELD_INVALID_CHARS_SPACERS_ONLY' => 'The field “%s” has invalid characters, only alphanumeric, space or -+_[] characters are allowed.',
|
||||||
|
@ -273,7 +279,9 @@ $lang = array_merge($lang, array(
|
||||||
'MOVE_DELETED_MESSAGES_TO' => 'Move messages from removed folder to',
|
'MOVE_DELETED_MESSAGES_TO' => 'Move messages from removed folder to',
|
||||||
'MOVE_DOWN' => 'Move down',
|
'MOVE_DOWN' => 'Move down',
|
||||||
'MOVE_MARKED_TO_FOLDER' => 'Move marked to %s',
|
'MOVE_MARKED_TO_FOLDER' => 'Move marked to %s',
|
||||||
'MOVE_PM_ERROR' => 'An error occurred while moving the messages to the new folder, only %1d from %2d messages were moved.',
|
'MOVE_PM_ERROR' => array(
|
||||||
|
2 => 'An error occurred while moving the messages to the new folder, only %2d from %1d messages were moved.',
|
||||||
|
),
|
||||||
'MOVE_TO_FOLDER' => 'Move to folder',
|
'MOVE_TO_FOLDER' => 'Move to folder',
|
||||||
'MOVE_UP' => 'Move up',
|
'MOVE_UP' => 'Move up',
|
||||||
|
|
||||||
|
|
|
@ -612,8 +612,8 @@ switch ($mode)
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'L_POSTS_IN_QUEUE' => $user->lang('NUM_POSTS_IN_QUEUE', $member['posts_in_queue']),
|
'L_POSTS_IN_QUEUE' => $user->lang('NUM_POSTS_IN_QUEUE', $member['posts_in_queue']),
|
||||||
|
|
||||||
'POSTS_DAY' => sprintf($user->lang['POST_DAY'], $posts_per_day),
|
'POSTS_DAY' => $user->lang('POST_DAY', $posts_per_day),
|
||||||
'POSTS_PCT' => sprintf($user->lang['POST_PCT'], $percentage),
|
'POSTS_PCT' => $user->lang('POST_PCT', $percentage),
|
||||||
|
|
||||||
'OCCUPATION' => (!empty($member['user_occ'])) ? censor_text($member['user_occ']) : '',
|
'OCCUPATION' => (!empty($member['user_occ'])) ? censor_text($member['user_occ']) : '',
|
||||||
'INTERESTS' => (!empty($member['user_interests'])) ? censor_text($member['user_interests']) : '',
|
'INTERESTS' => (!empty($member['user_interests'])) ? censor_text($member['user_interests']) : '',
|
||||||
|
|
|
@ -322,7 +322,7 @@ if ($mode == 'bump')
|
||||||
$meta_url = phpbb_bump_topic($forum_id, $topic_id, $post_data, $current_time);
|
$meta_url = phpbb_bump_topic($forum_id, $topic_id, $post_data, $current_time);
|
||||||
meta_refresh(3, $meta_url);
|
meta_refresh(3, $meta_url);
|
||||||
|
|
||||||
$message = $user->lang['TOPIC_BUMPED'] . '<br /><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $meta_url . '">', '</a>');
|
$message = $user->lang['TOPIC_BUMPED'] . '<br /><br />' . $user->lang('VIEW_MESSAGE', '<a href="' . $meta_url . '">', '</a>');
|
||||||
$message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_id) . '">', '</a>');
|
$message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_id) . '">', '</a>');
|
||||||
|
|
||||||
trigger_error($message);
|
trigger_error($message);
|
||||||
|
@ -841,7 +841,7 @@ if ($submit || $preview || $refresh)
|
||||||
if (($result = validate_string($post_data['username'], false, $config['min_name_chars'], $config['max_name_chars'])) !== false)
|
if (($result = validate_string($post_data['username'], false, $config['min_name_chars'], $config['max_name_chars'])) !== false)
|
||||||
{
|
{
|
||||||
$min_max_amount = ($result == 'TOO_SHORT') ? $config['min_name_chars'] : $config['max_name_chars'];
|
$min_max_amount = ($result == 'TOO_SHORT') ? $config['min_name_chars'] : $config['max_name_chars'];
|
||||||
$error[] = sprintf($user->lang['FIELD_' . $result], $user->lang['USERNAME'], $min_max_amount);
|
$error[] = $user->lang('FIELD_' . $result, $min_max_amount, $user->lang['USERNAME']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1357,7 +1357,7 @@ add_form_key('posting');
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'L_POST_A' => $page_title,
|
'L_POST_A' => $page_title,
|
||||||
'L_ICON' => ($mode == 'reply' || $mode == 'quote' || ($mode == 'edit' && $post_id != $post_data['topic_first_post_id'])) ? $user->lang['POST_ICON'] : $user->lang['TOPIC_ICON'],
|
'L_ICON' => ($mode == 'reply' || $mode == 'quote' || ($mode == 'edit' && $post_id != $post_data['topic_first_post_id'])) ? $user->lang['POST_ICON'] : $user->lang['TOPIC_ICON'],
|
||||||
'L_MESSAGE_BODY_EXPLAIN' => (intval($config['max_post_chars'])) ? sprintf($user->lang['MESSAGE_BODY_EXPLAIN'], intval($config['max_post_chars'])) : '',
|
'L_MESSAGE_BODY_EXPLAIN' => $user->lang('MESSAGE_BODY_EXPLAIN', (int) $config['max_post_chars']),
|
||||||
|
|
||||||
'FORUM_NAME' => $post_data['forum_name'],
|
'FORUM_NAME' => $post_data['forum_name'],
|
||||||
'FORUM_DESC' => ($post_data['forum_desc']) ? generate_text_for_display($post_data['forum_desc'], $post_data['forum_desc_uid'], $post_data['forum_desc_bitfield'], $post_data['forum_desc_options']) : '',
|
'FORUM_DESC' => ($post_data['forum_desc']) ? generate_text_for_display($post_data['forum_desc'], $post_data['forum_desc_uid'], $post_data['forum_desc_bitfield'], $post_data['forum_desc_options']) : '',
|
||||||
|
|
|
@ -295,7 +295,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||||
if (!$correct_query || (empty($search->search_query) && !sizeof($author_id_ary) && !$search_id))
|
if (!$correct_query || (empty($search->search_query) && !sizeof($author_id_ary) && !$search_id))
|
||||||
{
|
{
|
||||||
$ignored = (sizeof($search->common_words)) ? sprintf($user->lang['IGNORED_TERMS_EXPLAIN'], implode(' ', $search->common_words)) . '<br />' : '';
|
$ignored = (sizeof($search->common_words)) ? sprintf($user->lang['IGNORED_TERMS_EXPLAIN'], implode(' ', $search->common_words)) . '<br />' : '';
|
||||||
trigger_error($ignored . sprintf($user->lang['NO_KEYWORDS'], $search->word_length['min'], $search->word_length['max']));
|
trigger_error($ignored . $user->lang('NO_KEYWORDS', $user->lang('CHARACTERS', (int) $search->word_length['min']), $user->lang('CHARACTERS', (int) $search->word_length['max'])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue