About changing the language?

Hello
I use Asp.net core template
Q1: I have a problem when writing texts on the side menu in Arabic, they appear in the form of symbols,
For example, I changed the name of the Dashboards menu to Control Panel. The following was displayed: ���� ������.

Q2: When I change the display language of the site, how can I change the language text dynamically for menus, buttons, and messages?
Thank you so much

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)

Hi,


  1. I tried to use some Arabic text in the file SidebarLayout/Sidebar/_Menu.cshtml and it displayed correctly. Could you please specify in which file you got this error? Also if there are any steps on how to reproduce it please describe them.

  2. For dynamic language change, you can refer to the official Asp.Net globalization and localization doc.
    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-6.0

Regards,
Lauris Stepanovs,
Keenthemes Support Team

Shared\Partials\SidebarLayout\Sidebar\_Menu,
I normally writen (لوحة التحكم) inside _Menu.
in the indicated path,but symbols appear, how can I send you a picture in order to see the problem.

Hi,

Unfortunately, even with this text, we were not able to reproduce your issue, in Metronic Asp.net, your arabic text in the aside menu appears correctly.

I suppose that issue could be related to your custom changes or your machine setup.

Check the question below about this issue in the Asp.Net project.
https://social.msdn.microsoft.com/Forums/en-US/cc8b5c1a-8125-4a94-84db-ce793aa7f41a/how-can-i-put-arabic-letters-in-aspnet-pages?forum=asplocalization#f36a8e03-1898-49cc-81e5-96e56462afe1

Regards,
Lauris Stepanovs,
Keenthemes Support Team

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(