Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the gender parameter in WPF Application #363

Open
samanoudi opened this issue Dec 31, 2023 · 1 comment
Open

How to set the gender parameter in WPF Application #363

samanoudi opened this issue Dec 31, 2023 · 1 comment

Comments

@samanoudi
Copy link

I am trying to use the library with gender option. However I cannot figure out how to set the Gender Parameter in the following statement:

string testString = "{ What to put here , gender, male {Der {0}} female {Die {0}} other {Das {0}}} ist gross";

Unfortunately the samples are not showing the gender support

@solusupport
Copy link
Collaborator

The format is
{gender, male {{0} will bring his bicycle} female {{0} will bring her bicycle}}

In your case
string testString = "{gender, male {Der {0}} female {Die {0}} other {Das {0}}} ist gross";

I added a sample
https://github.com/soluling/I18N/tree/master/Samples/WPF/Patterns/Gender

Found also a small bug related the gender API. Updated the library an NuGet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants