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

Translate stat name outside enum_to_string #34172

Merged
merged 2 commits into from
Sep 22, 2019

Conversation

Fris0uman
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

Adresse @jbytheway comment :

enum_to_string is intended for use with serialization. We shouldn't be using translations in here. load_bionic will fail in other languages.

Describe the solution

Describe alternatives you've considered

Additional context

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Sep 22, 2019
@ZhilkinSerg ZhilkinSerg merged commit 2878906 into CleverRaven:master Sep 22, 2019
@Fris0uman Fris0uman deleted the enum_fix branch September 22, 2019 10:46
std::string get_stat_name( Character::stat Stat )
{
switch( Stat ) {
// *INDENT-OFF*
Copy link
Contributor

Choose a reason for hiding this comment

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

It's the end of the file, so not a big deal, but you forgot the INDENT-ON.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So many mistake today U_U

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah but I put it back in #34177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants