C# Cross Platform Localization Generator
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PclLocalizer
.gitattributes
.gitignore
LICENSE
README.md

README.md

PCL Localizer.

A simply cross platform alternative to Resx. An improved version and future updates is avaiable HERE
Follow this guide step by step!

#Quick Start Add Pcl.Localizer nuget package to all projects that will use localization. In your entry point app call:

PclResMan.SetLanguage(yourlanguage);

How generate resources: You can use PclLocalization.Console or add Pcl.Localization.Generator nuget package to the project that will contains the resources. The nuget will create a folder called Loc with 3 files:

  1. The Console app
  2. A txt example file
  3. A bat for generate resource

When you run the bat the txt file will be parsed and a cs file will be generate..now simply include the new cs file to your project. You can call your resource like this:

MyLoc.Test

For help about console call:

PclLocalizer.Console.exe -h

Example for generate:

PclLocalizer.Console.exe -f example.txt -d MyLoc.cs -n MyNameSpace -c MyLoc -s ;

where

  • -f is the input file
  • -d is the destination file
  • -n is the namespace for generated class
  • -c is the name of the generated class
  • -s is the separator

For add "Run batch" from Visual Studio context menu follow this guide.

##Follow Me

##License Licensed under Apache see license file.