For starting, you must add "Cs.Multilingual.dll" file  to your project. And use "Cs.Multilingual" namespace in your code file.

 

//Add dll file.
using Cs.Multilingual;

 

by Lang.Editor() method create language Files. and edit them.

 

Lang.Editor() // This method is static.

Editor

 


 

In your Code:

In your code, The first step you must create object of Lang class.

Lang MyLang = new Lang(LanguageName);
// LanguageName must be equal with language name created of ago.

 

For get text, You must use indexer. and send id for indexer.

string value = MyLang[Id];
// If your language is not created, This statement will produce an error.

 

For example, think that already "en" language is created. and, exists "hi" id for this language. For get value this id, you must create object of Lang class by "en" parameter. by this object you can get value "hi" id.

 

Lang EnLang = new Lang("en");   // create object
string HiValue = EnLang["hi"];     // get value

 

You can check that whether the language is exist or not. and if the language is not exist, Create it.

 

bool exists = MyLang.Exists() // check the existence of language

if (!exists) 
{
    MyLang.CreateLanguage(); // Create Language
}

 

If you want to create an existing language by CreateLanguage method. The CreateLanguage method will produce an error. Before calling CreateLanguage method, check that the language is not exists.

 

 

 

IList<string> allLanguage = Lang.Languages;


Lang MyLang = new Lang(LanguageName);     // create object
IList<string> allId = MyLang.Ids;         // get all Ids

bool RightToLeft = MyLang.RightToLeft;    // get
MyLang.RightToLeft = true;                // set


//==============================
// for example,
// Get all available languages __ And set RightToLeft to true for each one of them


foreach (var lang in Lang.Languages)
{
    lang.RightToLeft = true;

}