Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/AppInstallerCLICore/Command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ namespace AppInstaller::CLI

void Command::OutputIntroHeader(Execution::Reporter& reporter) const
{
// TODO: When these strings are ported to resource file,
// Create both a Preview and a Non-Preview string. That way we can swap the value without
// incurring additional localization cost.
reporter.Info() <<
"Windows Package Manager v" << Runtime::GetClientVersion() << " Preview"<< std::endl <<
"Windows Package Manager v" << Runtime::GetClientVersion() << " " << Resources::GetInstance().ResolveWingetString(L"PreviewVersion").c_str() << std::endl <<
"Copyright (c) Microsoft Corporation. All rights reserved." << std::endl;
}

Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCLICore/Commands/RootCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace AppInstaller::CLI
}
else if (context.Args.Contains(Execution::Args::Type::ListVersions))
{
context.Reporter.Info() << 'v' << Runtime::GetClientVersion() << std::endl;
context.Reporter.Info() << 'v' << Runtime::GetClientVersion() << ' ' << Resources::GetInstance().ResolveWingetString(L"PreviewVersion").c_str() << std::endl;
}
else
{
Expand Down
3 changes: 3 additions & 0 deletions src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@
<data name="PlainArgumentDescription" xml:space="preserve">
<value>Progress display as the default color</value>
</data>
<data name="PreviewVersion" xml:space="preserve">
<value>Preview</value>
</data>
<data name="QueryArgumentDescription" xml:space="preserve">
<value>The query used to search for an app</value>
</data>
Expand Down