Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 1.49 KB
<div class="toolbar">
<h1 id="pageTitle">
Localization Test
<ul id="home" selected="true">
<% if System::get_property('platform') != 'WP7'%>
<li>UTF-8 encoded string: <br/><%= "Utf8 String".force_encoding( Encoding::UTF_8) %></li>
<% end %>
<li>Russian text(7 Letters): Евгений</li>
<li>Greeting text from app\lang\lang_* : <br/><%= Localization::Views[:greeting] %></li>
<li>"%a, %d %b %Y %H:%M:%S %z"): <br/><%="%a, %d %b %Y %H:%M:%S %z") %></li>
<li> <br/><%= %></li>
<li>"%B %d, %Y %H:%M"): <br/><%="%B %d, %Y %H:%M") %></li>
<li> <br/><%= %></li>
<li>"%B %e, %Y"): <br/><%="%B %e, %Y") %></li>
<li>Rho::NumberHelper::number_to_currency(10000): <br/><%= Rho::NumberHelper.number_to_currency(10000) %></li>
<%= link_to 'Change Locale to Spanish', { :action => :change_locale_to_spanish }%>
<%= link_to 'Change Locale to English', { :action => :change_locale_to_english }%>
<p>To test do the following</p>
1. run on the phone with non-english default language(russian for example) <br/>
2. see rhodes\lib\extensions\rholang for supported languages <br/>
3. add lang_* to app\lang folder where * is phone language and add greeting string <br/>
4. Test datetime on localized phone