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

Localization redesign #615

Merged
merged 36 commits into from
Jul 7, 2022

Conversation

JavierMatosD
Copy link
Contributor

This PR consolidates all localized messages into two files. All message declarations are declared in messages.h and registered in messages.cpp. All the messages are sorted alphabetically. These changes will allow contributors to find messages quickly and reuse them if possible without cluttering the source files.

JavierMatosD and others added 28 commits June 27, 2022 13:53
- Sorted Declared/Registered messages in alphabetical order.
Removed HelpTableFormat message. The HelpTableFormatter needs to be updated to require LocalizedString as input. I intend to do this work in a separate PR.
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
…s.cpp, checks.cpp, and downloads.cpp to messages.h/cpp
….cpp, cmakevars.cpp, commands.ci.cpp, install.cpp, packagespec.cpp, portfileprovider.cpp, registries.cpp, tools.cpp, and main.cpp to messages.h/cpp
…tool into localization_redesign

# Conflicts:
#	src/vcpkg/archives.cpp
#	src/vcpkg/binarycaching.cpp
@JavierMatosD JavierMatosD requested review from BillyONeal and removed request for BillyONeal July 5, 2022 20:33
@JavierMatosD JavierMatosD requested review from vicroms, BillyONeal and ras0219-msft and removed request for vicroms July 5, 2022 20:33
@JavierMatosD JavierMatosD marked this pull request as draft July 5, 2022 21:37
@JavierMatosD JavierMatosD marked this pull request as ready for review July 5, 2022 22:58
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

In addition to comments, I think you should delete DECLARE_AND_REGISTER_MESSAGE since nobody should be using it after this redesign.

I also think it would make sense to move more stuff out of the header now that we're doing everything in the one source file but that should be a separate PR if at all.

@JavierMatosD
Copy link
Contributor Author

In addition to comments, I think you should delete DECLARE_AND_REGISTER_MESSAGE since nobody should be using it after this redesign.

I also think it would make sense to move more stuff out of the header now that we're doing everything in the one source file but that should be a separate PR if at all.

I was planning on cleaning up the header in a separate PR. I want to make sure that removing the excess stuff doesn't break something else.

	- Fuzz help messages need to be unlocalized. This change will occur in another print
- Moved localized messages from messages.h/cpp to main.cpp
	- Messages need to be unlocalized.
@JavierMatosD JavierMatosD merged commit 0c70a0e into microsoft:main Jul 7, 2022
@JavierMatosD JavierMatosD deleted the localization_redesign branch July 7, 2022 20:45
@BillyONeal BillyONeal mentioned this pull request Jul 7, 2022
@autoantwort
Copy link
Contributor

A downside is that you now constantly get merge conflicts and have to rebuild everything if you switch a branch :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants