Author: Wang Xianrong
PrefaceI recently started my part-time job in robot programming for children. I have a lot of feelings: (1) Children have strong hands-on skills; (2) Many "naughty" Children; (3) not many children face difficulties.Because the teaching aids are hunarobo made by Koreans, the full screen English is 8 ~ For a 12-year-old child, the challenge is big. So I came up with the idea of turning hunarobo into Chinese.This article describes how to use the. net2.0 software hunarobo in
correspondence can be understood as a key-value, as with a lot of information on the Web using resource files to deal with multiple languages.Is the example result of using a blog to make a fuzzy query in the Localestringresource table:As for the second parameter, think of us as a string. The use of format will know why. Just store a string with placeholders in Resourcesvalue!Some of the resourcesvalue used the placeholder notation.In fact, we see that its implementation will be more clearly un
highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Textblock Text = "RS: alabel" /> Is this much simpler?It is also easy to traverse components and perform Code internationalization. Basically, it is a recursive call to visualtreehelper:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Void Mainpage_loaded ( Object Sender, routedeventargs E){Localizerecursive ( This );} VoidLocalizerecurs
("en-US"), // Formatting numbers, dates, etc. supportedCultures = supportedCultures, // UI strings that we have localized. supportedUICultures = supportedCultures});} 3. add resource document a to your view. add the Resources Directory B. press Your view path provides the structure of the resource document, for example, your view Views \ Home \ Index. cshtml your Resources \ Views \ Home \ Index. zh-CN.resx or Resources \ Views \ Home \ Index. en-US.resxc. add Key and Value d to the resource fi
This article reprinted: http://www.cnblogs.com/xuhaibiao/archive/2011/10/26/2225694.html
First, create a CN. CS file with the following content:
UsingSystem;UsingDevexpress. xtraeditors. controls;UsingDevexpress. xtragrid. localization;
NamespaceUI{
PublicClassChineselocalizer: localizer{
Public override string language { Get { return " Chinese " ;}
//Overriding the getlocalizedstring MethodPublicOverrideStringGetlocalizedstrin
-ObjectDobj-Direct object (promulgation, document)iobj-Indirect object (indirect object), basic non-existentRange-Indirect object is a quantity word, also called with lattice (deal, Yuan)pobj-preposition object (according to, request)lobj-time prepositions (come, recent years)The central language is a predicatecomp-complementccomp-clause complement, generally consists of two verbs, the central language guided by a verb in the subordinate clause (IP) (appear, included)XCOMP-X clause complement (x
1. Factory method (Factory methods)Intent: Defines an interface for creating an object, letting subclasses decide which class to instantiate. The Factory method defers the instantiation of a class to its subclasses.Applicability:
When a class does not know the class of the object it must create.
When a class wants to specify the object it creates by its subclasses.
When a class delegates the responsibility of creating an object to one of several helper subclasses, and you want t
First, you need an abstract class webviewpage that inherits the webviewpage
Example
Namespace loyalty. memberportal. Web. helpers{Public abstract class webviewpage {
// Delegate. If necessary, an ihtmlstring is returned.Public Delegate ihtmlstringlocalizer (string key, string range );Private localizer _ localizer;Public localizer t{Get{Return (key, range) =>{
/
/ModelHyperlinkNote.html).Reverse Proxy and HTTPSIf the reverse proxy terminates, Https,jenkins cannot take advantage of httpservletrequest#issecure () to check whether the transmission is secure. Jenkins.isrooturlsecure () can check if the Jenkins URL configured by the administrator is HTTPS.Other path-related topicsHttps://wiki.jenkins-ci.org/display/JENKINS/Jenkins+says+my+reverse+proxy+setup+is+brokenHttps://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+ApacheHttps://wiki.jenkin
resource downloading request event, it account in itself, and send a localizerresourcerequestevent messag E to LocalizertrackerLocalizertracker1.is a service;2.is a EventHandler;3.process heartbeat from downloading threads;4.Localizer have a publiclocalizer and an group of Localizerrunner;5.when recieves localizerresourcerequestevent, it'll check the visibility of the event, if it's public, the event would be added to public
Custom Razor engine, custom tag, just like @ T ( quot; key quot;) in nopcommerce to implement multi-Mandarin
First, you need an abstract class WebViewPage that inherits the WebViewPage
Example
Namespace Loyalty. MemberPortal. Web. Helpers{Public abstract class WebViewPage
: System. Web. Mvc. WebViewPage
{
// Delegate. If necessary, an IHtmlString is returned.Public delegate IHtmlStringLocalizer (string key, string range );Private Localize
produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Httpmodules > Add Name = "Mymodule" Type = "Myhttpmodule" /> Httpmodules > 4. Define the resource file access object ResourceManager Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Public class ResourceManager{Xelement ResourceManager;Public localizer (){// Read resource files as neededVaR
Original article: devexpress xtramessagebox Localization
The interface library used by the project is devexpress.It is quite easy to use, but the buttons in the pop-up dialog box xtramessagebox are all in English,It may cause problems to users,
After searching on the internet, find a simple method to solve this problem, as shown below:First, define a class that inherits from localizer.Using devexpress. xtraeditors. controls;Namespace com. suypower. PGIs. Main{Class localizationchs: devexpress.
Rgreatex is the most powerful localizer and coding helper for Visual Studio. once installed, it lets you localize. net Applications and produce safer code, saving up to 95% of time the developer usually specified Ds on doing the same by hand. empower yourself with time-saving refactorings, such as move to resource and rename resource. boost your productitasks-with rgreatex it's so easy! The plug-in will automatically analyze string and resource usage
, etc.supportedcultures = supportedcultures, //UI strings that we have localized.supporteduicultures = SupportedCultures });3. Add resources to your view document A. Add Resources directory B. According to your view path, give the structure of the resource document such as your view views\home\index.cshtml your resources resources\views\home\ Index.zh-cn.resx or RESOURCES\VIEWS\HOME\INDEX.EN-US.RESXC. Add key and Value D to the resource file. Top of view@using Microsoft.AspNetCore.Mvc.Localizati
change logic changes will generally not affect the nib file and localization work, the multi-person collaborative project or need to merge some change logic.(6b) Localization changes If you make some localized changes, such as changing the localized text, you need to start the process from scratch and send the changes to the localizer. The previous string translation can be reused, and doing so will be much more efficient, but still cumbersome. The
Some unexpected errors occurred while writing the custom module. When solving these problems, we deepened our understanding of orchard development.
1. When a part is edited, the part interface is not always displayed.
Check all the files and find that the service is not added to the constructor in the partdriver class,
Original statement:
Public Class Fixedassetpartdriver: contentpartdriver { Private Readonly Inotifier _ notifier; Private Const String Templatename = " Part
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.