Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Build world-ready Metro style apps using XAML

Embed code for this video

Copy the code above to embed our video on your website/blog.

Close

Video format

Option selected may change based on video formats available and browser capability.

Close

Download

Right click “Save as…”

Slides (view online)
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.

Follow the Discussion

  • 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.

  • 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?

  • Tim HeuerTimHeuer Tim Heuer

    @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.

Remove this comment

Remove this thread

close

Comment on this Session

Already have a Channel 9 account? Please sign in