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

Fix ReadText.LocalizedDemo strings #903

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/ReadText.LocalizedDemo/LocalizableSentenceBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public override Func<string> UsageHeadingText
case ErrorType.MissingRequiredOptionError:
var errMisssing = ((MissingRequiredOptionError)error);
return errMisssing.NameInfo.Equals(NameInfo.EmptyName)
? Properties.Resources.SentenceMissingRequiredOptionError
? Properties.Resources.SentenceBadFormatConversionErrorValue
: String.Format(Properties.Resources.SentenceMissingRequiredOptionError, errMisssing.NameInfo.NameText);
case ErrorType.BadFormatConversionError:
var badFormat = ((BadFormatConversionError)error);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/ReadText.LocalizedDemo/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
<value>Displays last lines of a file.</value>
</data>
<data name="SentenceBadFormatConversionErrorOption" xml:space="preserve">
<value>Možnost '{0}' je definována ve špatném formátu.</value>
<value>Option '{0}' is defined with a bad format.</value>
</data>
<data name="SentenceBadFormatConversionErrorValue" xml:space="preserve">
<value>A value not bound to option name is defined with a bad format.</value>
Expand Down