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

At Localization Project, Arabic doesn't work #25

Open
uSafi opened this issue Sep 10, 2023 · 1 comment
Open

At Localization Project, Arabic doesn't work #25

uSafi opened this issue Sep 10, 2023 · 1 comment

Comments

@uSafi
Copy link

uSafi commented Sep 10, 2023

At Localization Project, at App.axaml.cs you will find this:

public override void OnFrameworkInitializationCompleted()
{
    Assets.Resources.Culture = new CultureInfo("ar-IQ");
   // Or
  // Assets.Resources.Culture = new CultureInfo("ar-SA");
   // ....... the rest of the code

    base.OnFrameworkInitializationCompleted();
    var culture = Assets.Resources.Culture;
}

the resource file 'Resources.ar-IQ.resx' exist and it's simply a copy of the default one 'Resources.resx' I just edited the values.
the last line here 'var culture = Assets.Resources.Culture;' clearly get the Arabic Culture.
But still the binding '' keep giving the default English words from the English Resource file.
Strangely "ja-JP" and "fil-PH" work just fine.
I don't know if it's a AvaloniaUI thing or WPF thing.

@uSafi
Copy link
Author

uSafi commented Sep 10, 2023

Aha
I found this in the project

<ItemGroup>
  <EmbeddedResource Remove="Assets\Resources.ar-IQ.resx" />
</ItemGroup>

deleting it solve the problem, I don't know why it's there.

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

1 participant