Skip to content

Commit

Permalink
Merge pull request #8110 from dragomano/lang_fixes
Browse files Browse the repository at this point in the history
[3.0] Add some language fixes
  • Loading branch information
Sesquipedalian authored Feb 21, 2024
2 parents 1cc6709 + 4c62125 commit 145613a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Languages/en_US/Packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@
// Don't use entities in the below string.
$txt['package_theme_failure_warning'] = 'At least one error was encountered during a test install of this theme. Are you sure you wish to attempt installation?';

$txt['package_bytes'] = '({size, number, integer} bytes)';
$txt['package_bytes'] = '({size, plural,
one {# byte}
other {# bytes}
})';

$txt['package_action_missing'] = 'File not found';
$txt['package_action_error'] = 'Modification parse error';
Expand Down
4 changes: 2 additions & 2 deletions Languages/en_US/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,11 @@

$txt['profile_error_signature_max_length'] = '{0, plural,
one {Your signature cannot be longer than # character}
one {Your signature cannot be longer than # characters}
other {Your signature cannot be longer than # characters}
}';
$txt['profile_error_signature_max_lines'] = '{0, plural,
one {Your signature cannot span more than # line}
one {Your signature cannot span more than # lines}
other {Your signature cannot span more than # lines}
}';
$txt['profile_error_signature_max_image_size'] = '{0, plural,
one {Images in your signature must be no larger than # pixel {1, plural,
Expand Down
2 changes: 1 addition & 1 deletion Languages/en_US/Who.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

// Credits text
$txt['credits'] = 'Credits';
$txt['credits_intro'] = 'Simple Machines wants to thank everyone who helped make SMF 2.1 what it is today; shaping and directing our project, all through the thick and the thin. It wouldn\'t have been possible without you. This includes our users and especially Charter Members - thanks for installing and using our software as well as providing valuable feedback, bug reports, and opinions.';
$txt['credits_intro'] = 'Simple Machines wants to thank everyone who helped make SMF {SMF_VERSION} what it is today; shaping and directing our project, all through the thick and the thin. It wouldn\'t have been possible without you. This includes our users and especially Charter Members - thanks for installing and using our software as well as providing valuable feedback, bug reports, and opinions.';
$txt['credits_team'] = 'The Team';
$txt['credits_special'] = 'Special Thanks';
$txt['credits_list'] = '{names}.';
Expand Down
2 changes: 1 addition & 1 deletion Sources/Actions/Credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function execute(): void

Utils::$context['credits'] = [
[
'pretext' => Lang::$txt['credits_intro'],
'pretext' => Lang::getTxt('credits_intro', ['SMF_VERSION' => SMF_VERSION]),
'title' => Lang::$txt['credits_team'],
'groups' => [
[
Expand Down

0 comments on commit 145613a

Please sign in to comment.