zoukankan      html  css  js  c++  java
  • Windows 8的本地化应用程序清单

    I need to localize some data in application manifest (like name, description, splashscreen images etc.) According to documentation these data can be provided as resources but I don't know how to do this.

    In short, you follow a naming convention in your folder hierarchy. Here's a link that explains how to name properly. There is another helpful "how to" article here and two quickstarts to walk you through it in Javascript and XAML.

    Specifically, look through the quickstarts (using the above links) for the step-by-step walkthrough. It is slightly different in JavaScript vs. XAML, but the overall steps are:

    1. Set your default language in the Visual Studio project properties.
    2. Create a folder in your project to hold all of the different resource files (one for each language). This will keep your project neat and organized.
    3. Right-click on this folder and select "Add New Item" to add a resource file for a language. This file may be a .resx, .resw, .resjson - see the quickstarts for the specifics, based on what language you are coding in.
    4. Add the items that you want to translate in your resources file. Again, see the quickstarts for specifics.
    5. Associate your controls with resources and add string resource identifiers to your code.

    Let me know if the quickstarts don't help.

    2013年09月11日40分18秒

    1. Add a localized resource (e.g. Strings/en/Resources.resw) with key "Appname" and value "My App Title"
    2. Add a second localized resource (e.g. Strings/de/Resources.resw) with key "Appname" and value "My German App Title"
    3. Edit you "App Manifest" and enter "ms-resource:Appname" in the "Display name" field (Application UI)
    4. Edit you "App Manifest" and enter "ms-resource:Appname" in the "Package display name" field (Packaging)

    Note: Before you do all that, you should register the app name in the Windows Store Dashboard.

  • 相关阅读:
    Educational Codeforces Round 86 (Rated for Div. 2) D. Multiple Testcases
    Educational Codeforces Round 86 (Rated for Div. 2) C. Yet Another Counting Problem
    HDU
    HDU
    HDU
    HDU
    Good Bye 2019 C. Make Good (异或的使用)
    Educational Codeforces Round 78 (Rated for Div. 2) C. Berry Jam
    codeforces 909C. Python Indentation
    codeforces1054 C. Candies Distribution
  • 原文地址:https://www.cnblogs.com/888h/p/3316193.html
Copyright © 2011-2022 走看看