commandlineparser / commandlineparser/commandline
Help Localization for the 'Default' word and its boolean values
- Linguagem predominante
- C#
- Estrelas
- 4.8k
- Forks
- 478
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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é' ?
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp
- Domínio
- cli, localization
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100