mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12451] Split TOO_FEW_CHARS_LIMIT for plurals
PHPBB3-12451
This commit is contained in:
parent
4e529fda03
commit
daa69ecfa9
2 changed files with 7 additions and 3 deletions
|
@ -1137,7 +1137,7 @@ class parse_message extends bbcode_firstpass
|
|||
{
|
||||
if (!$message_length || $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']);
|
||||
$this->warn_msg[] = (!$message_length) ? $user->lang['TOO_FEW_CHARS'] : ($user->lang('TOO_FEW_CHARS_CONTAINS', $message_length) . ' ' . $user->lang('TOO_FEW_CHARS_LIMIT', (int) $config['min_post_chars']));
|
||||
return (!$update_this_message) ? $return_message : $this->warn_msg;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -227,9 +227,13 @@ $lang = array_merge($lang, array(
|
|||
'STYLES_TIP' => 'Tip: Styles can be applied quickly to selected text.',
|
||||
|
||||
'TOO_FEW_CHARS' => 'Your message contains too few characters.',
|
||||
'TOO_FEW_CHARS_CONTAINS' => array(
|
||||
1 => 'Your message contains %1$d character.',
|
||||
2 => 'Your message contains %1$d characters.',
|
||||
),
|
||||
'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.',
|
||||
1 => 'You need to enter at least %1$d character.',
|
||||
2 => 'You need to enter at least %1$d characters.',
|
||||
),
|
||||
'TOO_FEW_POLL_OPTIONS' => 'You must enter at least two poll options.',
|
||||
'TOO_MANY_ATTACHMENTS' => 'Cannot add another attachment, %d is the maximum.',
|
||||
|
|
Loading…
Add table
Reference in a new issue