Last post Mar 27, 2013 03:51 AM by smirnov
Mar 26, 2013 08:56 AM|lakshmiprasanna|LINK
For MaxLength I18N support
I have couple of below options which i am thinking on can you provide your insight on the same:
1. Supporting MaxLength in Culture Specific way : Place MaxLength value in a resource file and read the value from resource file (need to use "<%$ Resources: XYZ_MaxLength%>" manually in ASP.NET ASPX page).
So each of the culture will have different MaxLength values, Database installation or setup will go with MaxLength value untill WebSite is supporting single language at a time.
Drawbacks: how do we know whats the accepatable MaxLength value, may be respective language experts are the correct people to suggest MaxLength.
2. Universal Max Length value : We can go for universal value which will fit for all languages.Challange with this approach how to comeup with Universal MaxLength value again.
Mar 26, 2013 09:09 AM|smirnov|LINK
I'd vote for #2. I have an experience in multilingual projects and never had any need to have different MaxLength values. Maybe you can provide some more details so that we can better understand it.
Mar 27, 2013 12:40 AM|lakshmiprasanna|LINK
At present our webapplication doesnot have globalization support. We are expecting some non english customers so we are making our webapplication to support lanugaues such as Spanish , Arabic , Chinease language.
Restrincting the lenghth of the controls are taken care in the below various ways :
1. Using MaxLength Property and hardcoding the value, this value might be applicable for each of the language that is supported.
2. Using RegularExpression to check the MaxLength.
With any of these approaches, need to support MaxLegth values for each of the language, for Spanish language accepting 40 characters is fine for Name, for Arabic the same 40 characters for Name is not applicable . What is the best approach for handling
Mar 27, 2013 03:51 AM|smirnov|LINK
for Arabic the same 40 characters for Name is not applicable
Why so and what about arabs with spanish names? In our global world, it has become very normal that people live in different countries and speak different languages. I still think that #2 is the easiest way to go.