commandlineparser / commandlineparser/commandline
Help Localization for the 'Default' word and its boolean values
- 主要語言
- 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é' ?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start with the Help Localization wiki guidance and inspect LocalizableSentenceBuilder, SentenceBuilder, the resource files, and HelpText.AutoBuild(). Trace how the “Default” label and boolean values are formatted in generated help. Done means those strings can be localized, including true and false values, and the localized output is verified.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli, localization
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100