Skip to content

Commit

Permalink
Fix language typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed Apr 29, 2024
1 parent e7d08a2 commit 6776a64
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Languages/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Admin_Login": "Administrator Login",
"Error": "Error",
"Error_Information": "Error Information",
"Home": "Home",
"Loading": "Loading",
"Login": "Login",
"Maintenance_Mode_Message_1": "This website is in maintenance mode.",
Expand All @@ -11,7 +12,6 @@
"No_Homepage_Instructions_2": ". You can do this by clicking the login button below and clicking 'Add home screen' in the Saturn Control Panel.",
"Operating_System": "Operating System",
"PHP_Version": "PHP Version",
"Register": "Register",
"Request_IP": "Request IP",
"Request_Time": "Request Time",
"Request_URI": "Request URI",
Expand Down
1 change: 1 addition & 0 deletions Plugins/ControlPanel/Assets/Languages/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"PowerFeatures_Hibernate": "Hibernate",
"PowerFeatures_Hibernate_Message": "This plugin will only load when it is needed.",
"PowerFeatures_None": "This plugin does not use any Power Features.",
"Register": "Register",
"SecurityAlert": "Security Alert",
"SecurityAlert_Checksums": "One or more settings files have been changed outside of Saturn resulting in their checksums to become invalid. If you have changed the files manually, it is safe to reset their values. Otherwise, please check the files are correct before resetting.",
"SecurityAlert_Disabled": "Saturn has been temporarily disabled due to a security alert.",
Expand Down
2 changes: 1 addition & 1 deletion Processes/Saturn/LanguageManager/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ private function DoTranslation(string $LanguageFile, string $Key): string
{
$LanguageJSON = json_decode($LanguageFile);

return $LanguageJSON->$Key ?? 'Unknown';
return $LanguageJSON->$Key ?? '{'.$Key.'}';
}
}
2 changes: 1 addition & 1 deletion Processes/Start.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function __(string $Text): string
$Translation = new Translation();
$XSS = new XSS();

$text = $Translation->Translate($Text);
$Text = $Translation->Translate($Text);

return $XSS->Escape($Text);
}
Expand Down

0 comments on commit 6776a64

Please sign in to comment.