-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add option to change system language #99
Conversation
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.
Feel free to do it whenever you want. Im not in rush
src/emu/common/src/language.cpp
Outdated
#include <common/language.h> | ||
#include <map> | ||
|
||
static std::map<int, std::string> lang_map { |
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.
Did you write a python script for this :p. I think real language name would be more friendly for userend
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.
Nope, just some multi-cursor editing in VSCode. Do you know where I can find official mapping from code to displaied language name?
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.
I do find some of them here, some languages are missing though
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.
just removing ELang prefix in enum names looks fine
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.
Yeah, that should be viable
@@ -495,6 +497,17 @@ namespace eka2l1 { | |||
ImGui::Separator(); | |||
} | |||
|
|||
struct SLocaleLanguage { |
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.
Can you define this struct somewhere like in epoc/utils? We so can share this struct without having to define it multiple times.
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.
Moved to epoc/utils/locale.h, and I copied definition of enum TLanguage to there too since including e32lang.h causes compiling errors, is that OK?
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.
That's ok, thanks
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.
Just a nit, sorry!
|
||
namespace eka2l1::epoc { | ||
|
||
enum TLanguage { |
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.
Please format this file to not uses tab, but rather space with 4-spaces identation
Also rename SLocaleLanguage to our struct naming convention (under_score)
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.
I have fixed the tab in previous commits, the naming is changed just now.
Thanks! |
No description provided.