forked from WiiLink24/wfc-patcher-wii
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Translate openhost messages #1
Open
Gaberboo
wants to merge
13
commits into
Retro-Rewind-Team:main
Choose a base branch
from
Gaberboo:translations
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2d1c171
Modified for use with Retro Rewind's server.
ZacharyPL f728ff3
Update wwfcPayloadPublicKey.hpp
ZacharyPL 23064bf
Update wwfcFeature.cpp
ZacharyPL 8394fc4
Merge branch 'WiiLink24:main' into main
ZacharyPL 67f936f
Added domain and gecko check.
ZacharyPL e922054
Merge branch 'main' of https://github.com/ZacharyPL/wfc-patcher-wii
ZacharyPL 4d54f84
Update wwfcSecurity.cpp
ZacharyPL e4c1dd6
Merge branch 'WiiLink24:main' into main
ZacharyPL a12799a
Minor bugfixes
ZacharyPL 5a17125
Merge branch 'main' of https://github.com/ZacharyPL/wfc-patcher-wii
ZacharyPL fa7ec89
Update wwfcPayload.cpp
ZacharyPL a45f162
Update wwfcPayloadPublicKey.hpp
ZacharyPL 5387df4
Add Eppe and Haru00007's Japanese translations and Eppe's French
Gaberboo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,4 @@ launcher/build | |
*.wad | ||
*.app | ||
|
||
include/wwfcPayloadPublicKey.hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
#include "import/mkw/system/system.hpp" | ||
#include "import/mkw/ui/multiMenuInputManager.hpp" | ||
#include "import/mkw/ui/section/sectionManager.hpp" | ||
#include "import/revolution.h" | ||
#include "messagePopupPage.hpp" | ||
#include "yesNoPopupPage.hpp" | ||
|
||
|
@@ -82,6 +83,7 @@ class OpenHostPage : public Page | |
void transition(State state) | ||
{ | ||
Section* section = SectionManager::Instance()->currentSection(); | ||
u8 language = RVL::SCGetLanguage(); | ||
|
||
if (state == s_state) { | ||
return; | ||
|
@@ -93,12 +95,25 @@ class OpenHostPage : public Page | |
} | ||
case State::Prompt: { | ||
FormatParam formatParam{}; | ||
formatParam.strings[0] = | ||
L"Enable Open Host?\n\n" | ||
L"This feature allows players who\n" | ||
L"add your friend code to meet up with you,\n" | ||
L"even if you don't add them back."; | ||
|
||
if (language == 0) { | ||
formatParam.strings[0] = | ||
L"こうかいホストをゆうこうにしますか?\n\n" | ||
L"この機能はあなたのフレンドコードを\n" | ||
L"追加したプレイヤーはあなたが追加し返さなくても\n" | ||
L"フレンドとしてあなたと会えるようになる機能です"; | ||
} else if (language == 3) { | ||
formatParam.strings[0] = | ||
L"Activer l'Open Host?\n\n" | ||
L"Cette fonctionnalité permet aux joueurs qui\n" | ||
L"ajoutent votre code ami de vous rejoindre,\n" | ||
L"même si vous ne les avez pas ajoutés."; | ||
} else { | ||
formatParam.strings[0] = | ||
L"Enable Open Host?\n\n" | ||
L"This feature allows players who\n" | ||
L"add your friend code to meet up with you,\n" | ||
L"even if you don't add them back."; | ||
} | ||
YesNoPopupPage* yesNoPopupPage = | ||
section->page<YesNoPopupPage>(PageId::YesNoPopup); | ||
yesNoPopupPage->reset(); | ||
|
@@ -117,14 +132,35 @@ class OpenHostPage : public Page | |
case State::Result: { | ||
FormatParam formatParam{}; | ||
if (!s_sentOpenHostValue) { | ||
formatParam.strings[0] = L"You have lost connection to\n" | ||
L"the server.\n\n" | ||
L"Please try again later."; | ||
if (language == 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
formatParam.strings[0] = L"サーバーからの接続が切断されました\n\n\n" | ||
L"もう一度やり直してください"; | ||
} else if (language == 3) { | ||
formatParam.strings[0] = L"Vous avez perdu la connexion\n" | ||
L"au serveur.\n\n" | ||
L"Veuillez réessayer ultérieurement."; | ||
} else { | ||
formatParam.strings[0] = L"You have lost connection to\n" | ||
L"the server.\n\n" | ||
L"Please try again later."; | ||
} | ||
} else { | ||
if (s_openHostEnabled) { | ||
formatParam.strings[0] = L"Open Host is now enabled!"; | ||
if (language == 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here |
||
formatParam.strings[0] = L"こうかいホストをゆうこうにしました!"; | ||
} else if (language == 3) { | ||
formatParam.strings[0] = L"L'Open Host est maintenant activé!"; | ||
} else { | ||
formatParam.strings[0] = L"Open Host is now enabled!"; | ||
} | ||
} else { | ||
formatParam.strings[0] = L"Open Host is now disabled!"; | ||
if (language == 0) { | ||
formatParam.strings[0] = L"こうかいホストをむこうにしました!"; | ||
} else if (language == 3) { | ||
formatParam.strings[0] = L"L'Open Host est maintenant désactivé!"; | ||
} else { | ||
formatParam.strings[0] = L"Open Host is now disabled!"; | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A switch statement would probably be better in this case