BUILD2011

Build world-ready Metro style apps using XAML

Download this episode

Download Video

Description

Ready to take your app global? We've designed a flexible architecture enabling developers to quickly create a fully localized Metro style app using XAML in a 'language pack' style of development. This session will show you how to easily localize string-based content in your app, fully localize your XAML layout, and quickly update your app by adding language support at any time.

Day:

4

Code:

APP-528C

Room:

Hood

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • PeterCon_​MSFT

      There were some questions about fallback among regional variants. E.g., the app has strings for en-US and de-DE with de-DE as the ultimate fallback; but the user's preference is for en-AU. In this case, the en-US strings will be used. The system will look at the user's preference and infer a fallback chain that allows for regional variants. So, in the above example, it will assume a fallback chain as follows:

      • en-AU  (user's first choice, but not available in the app)
      • en        (region-neutral asset -- not available in this app)
      • en-*      (any other regional variant -- will pick up en-US in the app)
      • de-DE   (app's ultimate fallback)

      Note that, as explained by Tim Heuer, you don't have to declare the resources using a specific regional variant language tag. You can, instead, use a region-neutral tag like "en". And you can use any combination of specific-regional variants as well as a region-neutral variant.

    • MikeKenyon

      How does the Uid property interact with primatives?. 

      All of the samples define the application title as a String resource in either the page or the App. There's a Uid property available on it, but I'm if I try to set it, I get a runtime exception for a missing resource. 

      Is there going to be some design time indication what is and isn't supported to avoid runtime issues later?

    • TimHeuer

      @MikeKenyon -- Hi mike can you ask this question over on the forums (dev.windows.com)?  I know it is annoying to ask, but I want others to have the answer as well.

      UID support on primitives isn't supported, but this is something that I'll log a bug on to investigate.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.