commandlineparser / commandlineparser/commandline

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

未关闭
#760 1 条评论 3 个 reaction 已指派 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é' ?

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 Help Localization wiki 指南开始,检查 LocalizableSentenceBuilder、SentenceBuilder、资源文件和 HelpText.AutoBuild()。跟踪“Default”标签和布尔值在生成的帮助文本中如何格式化。完成标准是这些字符串(包括 true 和 false 值)可以本地化,并且已验证本地化输出。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
cli, localization
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。