Localization system in dnn

Source: Internet
Author: User
Tags dnn

I have always been interested in localization. I have done similar work. But I always think it is not good. So I 'd like to seeDnnHow to do it. InDnnIn/Documents/dotnetnuke LocalizationTake a look. I think this articleArticleWell written. Then I checked it out.Msdn. The result shows this article.Http://msdn.microsoft.com/library/chs/default.asp? Url =/library/CHS/vbcon/html/vbwlk1_throughlocalizingwebforms. asp. It can be viewed. NetPlatformWebAn introductory tutorial on localization.

Dnn Used . Net In Rscx File to store the content of each language. However Dnn Obtain Rscx The method in is not Msdn Using . Net Provides function classes. Instead, the operation is used. XML Document method. Slave Localization Class Getstring Start with the method. You can understand Dnn How to operate. But what I don't understand is why I didn't use it again. . Net Function class. In Dnn To be compatible ASP. net2.0 This design. Not developed ASP. net2.0 Project. So I have not realized its painstaking efforts.

for control localization, dnn added a resourcekey value. It is more flexible and easy to modify than assigning values to controls in the background class. It also reduces coding difficulties. In addition, if it is not convenient to add resourcekey Control and other local localization, you can also call getstring and other APIs . Make localization easier. Haha. Learn more. However, I can't find a class to complete this assignment.

InDnnOfLocalizationSystem. You can seeFallback. Let's take a look.LocalizationClassThe getresource Method and Its annotations. I think it is quite interesting.

After reading this system. My experience is that when you build a system, you not only need to think about how you used this function in the past. Pay special attention to the specific interfaces provided by your platform for this function. ImageLocalization you can use text and databases to store language information. However, on the. NET platform, the first thing to consider is to store rscx files. Therefore, although platforms can communicate with each other, if you want to do a really good job, you must be very familiar with and specialized in your platform. In addition. After the function class is completed, you should consider more different UIS. Provides richer and more flexible interfaces.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.