Last post Feb 23, 2021 02:37 AM by YihuiSun
Feb 22, 2021 08:28 AM|samaremad|LINK
i want to make my system (which i already created ) to be ERB (translate it to arabic)
how can i do that ?
does anyone have any advice to me to learn how to do that?
Feb 22, 2021 10:45 AM|PatriceSc|LINK
The first post is to give some context so please be always explicit. For now the only meaning I see for ERB related to computing doesn't seems to make sense
Sometimes one can even find good resources even when not being a specialist but I guess most of us won't just know what you mean exactly. For example it could be some kind of compliance for a business sector edicting rules you can find if only you knew what
ERB stands for.
Feb 22, 2021 10:52 AM|samaremad|LINK
thank you for your reply
i mean that my web site in english now so it is completed but i want to transfer it to arabic languge how to do that?
Feb 22, 2021 12:45 PM|PatriceSc|LINK
Ah ok. I've done this once with several languages including Arabic. Even if using ASP.NE.T 4.x I suggest to have a look at
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-5.0 and then
Rather than using directly resource files, standardizing on IStringLocalizer might be a good idea. Basically you'll wrap all hardcoded strings inside that to get the correct translation for the selected language.
Beyond showing string translations you'll have to use
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir to detemine in which direction HTML elements are shown.
I also used a language specific stylesheet for small adjustements. Finally take care about images such as arrows.
Edit: you are using ASP.NET 4.x or ASP.NET Core?
Feb 23, 2021 02:37 AM|YihuiSun|LINK
You can use the properties placed in the resource object to select the correct property at runtime based on the user's language and culture.
Here are some links to help you learn the localization of ASP.NET.