commandlineparser / commandlineparser/commandline

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

オープン
#760 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

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é' ?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。