commandlineparser / commandlineparser/commandline

Help Localization for the 'Default' word and its boolean values

Aperta
#760 1 commento 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

Great project !

Found and implemented localization with the LocalizableSentenceBuilder class
as explained in :
https://github.com/commandlineparser/commandline/wiki/Help-Localization

---
Optionally,

To localize the keywords "Required,Default" and the error messages, add the the string expressions of the class SentenceBuilder to the resource files.

You can add the class LocalizableSentenceBuilder to your project. It's localized and located here

In the Main method, Set sentence builder to LocalizableSentenceBuilder:

SentenceBuilder.Factory = () => new LocalizableSentenceBuilder();
---

But nowhere i can find where to translate the 'Default' word !?

With an option as :
[Option('l', Default = false, HelpText = "Enregistrer un journal.")]

Using the HelpText.AutoBuild(), it display :
-l (Default: false) Enregistrer un journal.

Is it possible to also translate false or true by 'désactivé' or 'activé' ?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.