5. 540 я зlaыnкgаu дagоeбsа вsлuеpнpоo rвted in
Afrikaans
Basque
Galician
Hausa
26 языков добавлено в Windows Phone 8
6. Если используете только английский – покрываете 25% пользователй. Вместе с китайским и испанским
– увеличиваете покрытие до~60%, после добавления русского, итальянского, португальского и
французского покрываете большинство пользователей.
ТОП языков по количеству пользователей (01 – 06.2013)
Подробности:
http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/06/21/tips-for-localizing-and-monetizing-your-app-for-windows-phone-users.aspx
7. Количество загрузок по регионам (01 – 06.2013)
Подробности:
http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/06/21/tips-for-localizing-and-monetizing-your-app-for-windows-phone-users.aspx
8.
9. Добавление языков на устройство
Все 54 языка предустановлены на телефон
Можем задать список языков и отсортировать по
приоритетности
Язык определяется по региону
Дополнительные данные по выбранным языкам будут скачены
автоматически
10.
11.
12.
13. Используем ресурсы в XAML:
<TextBlock x:Uid="Greeting" Text="" />
Используем ресурсы в коде:
var loader = new Windows.ApplicationModel.Resources.ResourceLoader();
var string = loader.GetString('Farewell');
14.
15.
16. Используем для локализации с помощью WP SDK
Интегрируется с Visual Studio 2013 и Windows Phone SDK для Windows Phone
Store приложений, поддерживает: автоматический перевод, управления файлами
с переводом.
Помогает отслеживать изменения в переводах
Предоставляет UI для управления языками
Поддерживает стандарт XLIFF
Интегрируется с Microsoft Translator для перевода
17.
18.
19.
20.
21.
22. Стандартные компоненты используют текущие настройки приложения.
Вы также можете задать любой формат для отображения данных:
// Use the Windows.Globalization.DateTimeFormatting.DateTimeFormatter class
// to display dates and times using basic formatters.
var sdatefmt = new Windows.Globalization.DateTimeFormatting.DateTimeFormatter("shortdate");
var stimefmt = new Windows.Globalization.DateTimeFormatting.DateTimeFormatter("shorttime");
// Obtain the date that will be formatted.
var dateToFormat = DateTime.Now;
// Perform the actual formatting.
var sdate = sdatefmt.Format(dateToFormat);
var stime = stimefmt.Format(dateToFormat);
// Results for display.
var results = "Short Date: " + sdate + "n" + "Short Time: " + stime;
23. Используйте NumberFormatting для форматирования
// Determine the current users default currency.
var userCurrency = Windows.System.UserProfile.GlobalizationPreferences.Currencies[0];
// Number to be formatted.
var fractionalNumber = 12345.67;
// Currency formatter using the current users preference settings for number formatting.
var userCurrencyFormat = new Windows.Globalization.NumberFormatting.CurrencyFormatter(userCurrency);
var currencyDefault = userCurrencyFormat.Format(fractionalNumber);
// Create a formatter initialized to a specific currency.
// In this case it's the Euro with the default number formatting for France.
var currencyFormatEuroFR =
new Windows.Globalization.NumberFormatting.CurrencyFormatter("EUR", new[] { "fr-FR" }, "FR");
var currencyEuroFR = currencyFormatEuroFR.Format(fractionalNumber);
// Results for display.
var results = "Fixed number (" + fractionalNumber + ")n" + "With user's default currency: " +
currencyDefault + "n" + "Formatted Euro (fr-FR defaults): " + currencyEuroFR;
27. The information contained in this document represents the current view of Microsoft Corp. on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be
interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication. This guide is for informational purposes only. MICROSOFT MAKES NO
WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in
or introduced into a retrieval system, or transmitted in any form, by any means (electronic, mechanical, photocopying, recording or otherwise), or for any purpose, without the express written permission of Microsoft. Microsoft may have
patents, patent applications, trademarks, copyrights or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this
document does not give you any license to these patents, trademarks, copyrights or other intellectual property. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events
depicted herein are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred.