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

Change disp_name to be able to return a capitalized name #35287

Merged
merged 1 commit into from
Nov 3, 2019

Conversation

tivec
Copy link
Contributor

@tivec tivec commented Nov 3, 2019

Summary

SUMMARY: Infrastructure "Allow disp_name to return a capitalized name"

Purpose of change

When sorting items it would return the message "you sorted out all possible items", with a lower case "you".

Describe the solution

This PR introduces a parameter to disp_name that makes it return upper case names. There are some gotchas (mentioned in the comments for the function)

Describe alternatives you've considered

Capitalizing after grabbing the text, but that is probably not wise when it comes to translation.

Testing

Compiles and runs, showing the proper text with capital if requested.

Additional context

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. labels Nov 3, 2019
@ZhilkinSerg ZhilkinSerg merged commit 5c7adbb into CleverRaven:master Nov 3, 2019
@tivec tivec deleted the dispname branch October 20, 2020 09:05
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` Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants