Skip to content

richardszalay/phone-common-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PhoneCommonStrings intends to jumpstart localized Windows Phone projects by providing common strings, used by many Windows Phone applications, pre-localized into all languages supported by the platform.

Usage

First, add via NuGet (PhoneCommonStrings) or clone/build and add a reference to PhoneCommonStrings.dll

Then configure your project with the locales of the languages you want to use as described in How to: Build a Localized Application for Windows Phone on MSDN.

Then add the supplied accessor to Application.Resources in App.xaml:

<Application
	...
	xmlns:pcs="clr-namespace:PhoneCommonStrings;assembly=PhoneCommonStrings"
	>

    <Application.Resources>
		<pcs:CommonStringsAccessor x:Key="PhoneCommonStrings" />
	</Application.Resources>

And bind to strings as needed:

<Button Content="{Binding AboutPage.SendFeedbackAction, {StaticResource PhoneCommonStrings}}" />

NOTE: BindableApplicationBar is recommended for localized application bar content

Alternatively, you can reference strings directly:

SomeButton.Text = PhoneCommonStrings.Actions.AddAction;

Strings

Strings are available in several categories, including: actions, statuses, theme colors, settings page and about page.

For more information, see Strings or clone the repo and run the sample application.

Translations are obtained from credible sources used elsewhere on the phone (not machine translations). For individual string source details, see Sources

License

PhoneCommonStrings is provided under the MIT license, which allows use for any purpose (including commercial projects).

Contribute

Contributions are happily accepted. Please refer to the wiki for more information.

About

A set of string resources commonly used by Windows Phone applications, localized into all languages supported by the platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages