Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

I have web application in ASP.NET, c#.

And this application is creating for multiple languages(globalizatioin/localization).

I have to concatenate text, in my masterPage.

For Eg: lblWelcome.Text = GetGlobalResourceObject("Resource", "welcome").ToString() + User.Name; 


I wrote this for English, but now i have to do this for Arabic.

and in arabic, we write from right hand side, where as English starts from LHS.

What I have tried:

How to concatenate this text for Arabic.

lblWelcome.Text = GetGlobalResourceObject("Resource", "welcome").ToString() + User.Name;


Please help me guys.


thanks
Posted
Updated 16-Nov-16 1:30am
v3
Comments
Sinisa Hajnal 16-Nov-16 3:10am    
You do the concatenation in the same way. What you need to change is page language and page language direction so that your string will automatically render from the right.
Sinisa Hajnal 16-Nov-16 3:12am    
Except in cases where the structure of the language creates difference in concatenation (i.e. if you have word1 name word2, you cannot concatenate like english.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900