Windows Phone development experience (9)-localization and multilingual program title

Source: Internet
Author: User

This is a simple function, but it is often used in development .. for example, you want to display the UC browser when the system is in English... maybe you have searched for vs settings and cannot find such options .. it is very troublesome to implement it .. for solutions officially provided by Microsoft, please refer:How to localize the title of a Windows Phone applicationAfter reading it, do you think it is very troublesome and cumbersome? The world is so unpredictable... there will always be one or two people who help us improve our development experience.

Someone abroad wrote a WP7 appreslib DLL generator to help us generate language resources DLL original address: http://engine-designs.com/wp7-appreslib-dll-generator.html program WP7 appreslib DLL Generator

Usage:

1. Edit the XML file, as I wrote below ..

<Projects> <project name = "sdict"> <language name = "neutral"> <apptitle> sdict </apptitle> <tiletext> sdict </tiletext> </language> <language name = "English (United States) "localeid =" 0409 "> <apptitle> sdict </apptitle> <tiletext> sdict </tiletext> </language> <language name =" Chinese-RPC "localeid =" 0804 "> <apptitle> super dictionary </apptitle> <tiletext> super dictionary </tiletext> </language> </Project> </Projects>

 

2. Drag the XML file directly to wp7appreslib.exe. Then the corresponding file will be generated.

3. Copy all to the project root directory, that is, the directory where app. XAML is located, and "add existing items" to the project. View the attributes and set all the generation operations to "content ".

4. Modify wmappmanifest. XML to replace the following two places:

<App Title="@AppResLib.dll,-100"…

 

<Tokens><PrimaryToken ...><TemplateType5>... <Title>@AppResLib.dll,-200</Title>... </TemplateType5></PrimaryToken></Tokens>

Now we're done!

Related Article

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.