Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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<Error, string> FormatError
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