A set of string resources commonly used by Windows Phone applications, localized into all languages supported by the platform.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
source
.gitignore
LICENSE
README.md

README.md

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.