Exemple #1
0
        /// <summary>
        ///   Generates the example json string. Use it to create template for the lockit
        /// </summary>
        public static string GenerateExampleText()
        {
            var file = new LockitDict();
            var eng  = new LanguageDictionary();

            eng.lang = "en_US";
            eng.EntriesDictionary.Add("OV_EXAMPLE", "This is an example entry in dictionary");
            file.languages.Add("en_US", eng);
            var pol = new LanguageDictionary();

            pol.lang = "pol_PL";
            pol.EntriesDictionary.Add("OV_EXAMPLE", "Przykładowy wpis do lockitu");
            file.languages.Add("pol_PL", pol);
            return(JsonConvert.SerializeObject(file, Formatting.Indented));
        }