Localizing Mobile Applications

International-ready applications refer to the mobile applications that cater to a global audience. The <globalization> tag in the file, Web.config, includes attributes to localize a mobile application.

 

Here is the code in Web.Config file

<configuration>

<system.web>

<globalization

   requestEncoding = "<encoding string>"

   responseEncoding = "<encoding string>"

   fileEncoding = "<encoding string>"

   culture = "<culture string>"

   uiCulture = "<culture string>"

/>

</system.web>

</configuration>

 

Let us examine the above code

 

§            The requestEncoding attribute specifies the method of encoding the request data with the default value of utf-8. The default value represents data in the character format as a sequence of 8-bit bytes.

 

§            The responseEncoding attribute specifies the method of encoding the response data with the default value of utf-8.

 

§            The fileEncoding attribute specifies the method of encoding different files, such as the .aspx and .asax files.

 

§            The culture attribute specifies the culture string used for localized settings, such as the date/time format for a mobile  application. The value fr FR represents the French locale. All the culture strings for a mobile application are present in the System.Globalization.CultureInfo class.

 

§            The uiCulture attribute specifies the culture string used to search for a resource.

<configuration>
<system.web>
<globalization
                 requestencoding="utf-8"
                 responseencoding="utf-8"
                 culture="fr-fr"
                uiculture="fr-fr"/>
</system.web>
</configuration>

MMIT helps you override the properties that generate text in the user interface. Check out the table below that can be overridden  to display the custom text in the user interface.

 

Controls

Properties

Description

Link

SoftkeyLabel

Specifies the SoftKey label displayed with the  NavigateURL property set for the Link control.

Command

SoftkeyLabel

Specifies the maximum number of characters displayed on the SoftKey label.

ObjectList

DetailsCommandText

Specifies the text displayed in the menu item to navigate to the Detail view.

ObjectList

BackCommandText

Specifies the text displayed for the command to navigate back from the Detail view.

ObjectList

MoreText

Specifies the text displayed in the More link to view the record detail .

PagerStyle

PreviuosPageText

Specifies the label for the user-interface element in the current page to navigate to the previous page.

PagerStyle

NextPageText

Specifies the label for the user-interface element in the current page to navigate to the next page.

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish