Conversation
|
Thanks @tkouba for this demo. ReadText.LocalizedDemo head --help
Very nice :) |
| using System.Text; | ||
| using CommandLine; | ||
| using CommandLine.Text; | ||
|
|
There was a problem hiding this comment.
using System.Globalization;
using System.Threading;
| { | ||
| // Set sentence builder to localizable | ||
| SentenceBuilder.Factory = () => new LocalizableSentenceBuilder(); | ||
|
|
There was a problem hiding this comment.
//Apply localization for 'cs'
var culture = CultureInfo.CreateSpecificCulture("cs");
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
Demo for complete localization of command line help using resources.