What’s the best practice for converting very large windows solution to multi-language .
There are hundreds of windows a lots of labels, combo etc.
We are using devxpress components (not layout) .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if u want to use DB for localize then a can give advise:
Create 4 tables
1.ProjectKeyWords(KW_ID, LNGID, Value);
2.Pages (PageID, PageName);
3.Labels (LabelID, LabelName, KW_ID);
4.Application_Labels(PageID, LabelID);
5.Langs (ID, NAME);
sample:
ProjectKeyWords 1, 1, FirstName (In English)
2, 1, LastName (In English)
1, 2, Имя(In Russian)
2, 2, Фамилия(In Russian)
1, 1, Adı(In Azerbaijan)
2, 1, Soyadı(In Azerbaijan)
Pages –> 1, Form1
2, Form2
Labels –> 1, lblFirstName ,1
1, lblLastName ,2
Application_Labels –> 1,1
1,2
2,1
2,2
Langs –> 1, Eng
2, Rus
3, Az
And in Form_Load() event u can Create SQLQuery as “
SELECT L.LabelName, PKW.Value
FROM Labels L, Pages P, Application_Labels A_L, ProjectKeyWords PKW
WHERE P.NAME=
AND PKW.LNG_ID=
AND A_L.PageID=P.ID
AND A_L.LabelID=L.LabelID
“
create iteration and find All controls with L.LabelName with FindControl method and set PKW.Value to this label Text Property