Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes for Lang.php #8102

Merged
merged 3 commits into from
Feb 16, 2024

Conversation

jdarwood007
Copy link
Member

Declare ValueError usage
formatText does not accept 3 parameters.

Declare ValueError usage
formatText does not accept 3 parameters.
Sources/Lang.php Outdated
@@ -326,7 +327,7 @@ public static function load(string $template_name, string $lang = '', bool $fata

// That couldn't be found! Log the error, but *try* to continue normally.
if (!$found && $fatal) {
ErrorHandler::log(self::formatText(self::$txt['theme_language_error'] ?? 'Unable to load the {filename} language file.', ['filename' => $lang . '/' . $template_name], 'template'));
ErrorHandler::log(self::formatText(self::$txt['theme_language_error'] ?? 'Unable to load the {filename} language file.', ['filename' => $lang . '/' . $template_name]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ErrorHandler::log(self::formatText(self::$txt['theme_language_error'] ?? 'Unable to load the {filename} language file.', ['filename' => $lang . '/' . $template_name]));
ErrorHandler::log(self::formatText(self::$txt['theme_language_error'] ?? 'Unable to load the {filename} language file.', ['filename' => $lang . '/' . $template_name]), 'template');

Sources/Lang.php Outdated Show resolved Hide resolved
@Sesquipedalian Sesquipedalian merged commit aaff400 into SimpleMachines:release-3.0 Feb 16, 2024
6 checks passed
@jdarwood007 jdarwood007 deleted the langTypos branch February 17, 2024 00:28
@live627 live627 added Localization Language & internationalization and removed Language labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Localization Language & internationalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants