Tools

Namespaces

Variants

Views

Actions

Search

Contents

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Contents

Overview

To localise the images, you should place files for the default language in the root directory of your widget and the localised files into subfolders named "***.lproj", without quotes, where *** is the language code. For example:

/img.png (the image for the default language)
/en.lproj/img.jpg (the English image)
/ru.lproj/img.jpg (the Russian image)
/de.lproj/img.jpg (the German image)

Source: Relevant HTML components

<hr/><!-- Just refer to the image by its name. The WRT selects the right image from the .lproj folders depending on the language settings of the device. --><imgsrc="img.jpg"alt="image"/><hr/>

Postconditions

Upon loading, an image is displayed between two horizontal lines. On the image you can see "En", "De", "Ru", or "Def" depending on whether your phone uses English, German, Russian, or some other language, respectively.

Supplementary material

This code snippet is part of the stub concept, which means that it has been patched on top of a template application in order to be more useful to developers. The version of the WRT stub application used as a template in this snippet is v1.1.