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

Add option to change system language #99

Merged
merged 13 commits into from
Mar 12, 2020
Merged

Add option to change system language #99

merged 13 commits into from
Mar 12, 2020

Conversation

ssine
Copy link
Contributor

@ssine ssine commented Feb 28, 2020

No description provided.

Copy link
Collaborator

@pent0 pent0 left a 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/include/common/fileutils.h Outdated Show resolved Hide resolved
#include <common/language.h>
#include <map>

static std::map<int, std::string> lang_map {
Copy link
Collaborator

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

Copy link
Contributor Author

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Collaborator

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 {
Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's ok, thanks

Copy link
Collaborator

@pent0 pent0 left a 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 {
Copy link
Collaborator

@pent0 pent0 Mar 11, 2020

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)

Copy link
Contributor Author

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.

@pent0
Copy link
Collaborator

pent0 commented Mar 12, 2020

Thanks!

@pent0 pent0 merged commit 8fab574 into EKA2L1:master Mar 12, 2020
@TRR95 TRR95 added Added / Resolved / Fixed An Issue Has Been Resolved / Fixed or An enhancement was added Language Anything Related to Language, Translations & Crowdin labels Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added / Resolved / Fixed An Issue Has Been Resolved / Fixed or An enhancement was added Language Anything Related to Language, Translations & Crowdin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants