Changeset 7284


Ignore:
Timestamp:
Feb 7, 2018, 11:35:45 AM (4 years ago)
Author:
kopal
Message:

some preparations for Russian CT2 version

Location:
trunk/OnlineDocumentationGenerator/Generators/HtmlGenerator
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/OnlineDocumentationGenerator/Generators/HtmlGenerator/AdditionalResources.xml

    r4933 r7284  
    1616  <file path="OnlineDocumentationGenerator/Generators/HtmlGenerator/de.png" />
    1717  <file path="OnlineDocumentationGenerator/Generators/HtmlGenerator/en.png" />
     18  <file path="OnlineDocumentationGenerator/Generators/HtmlGenerator/ru.png" />
    1819  <file path="OnlineDocumentationGenerator/Generators/HtmlGenerator/components.png" />
    1920  <file path="OnlineDocumentationGenerator/Generators/HtmlGenerator/templates.png" />
  • trunk/OnlineDocumentationGenerator/Generators/HtmlGenerator/HtmlGenerator.cs

    r6941 r7284  
    2020    public class HtmlGenerator : Generator
    2121    {
     22        private static readonly Dictionary<string, string> _languagePresentationString = new Dictionary<string, string>() { { "en", "English" }, { "de", "Deutsch" }/*, { "ru", "Русский" }*/ };
     23        private static readonly Dictionary<string, string> _languagePresentationIcon = new Dictionary<string, string>() { { "en", "en.png" }, { "de", "de.png" }/*, { "ru", "ru.png" } */};
     24
     25        private static readonly Dictionary<string, Dictionary<string, string>> _languagePresentation = new Dictionary<string, Dictionary<string, string>> {
     26            { "en", new Dictionary<string, string> { { "Name", "English" }, { "Icon", "en.png" } } },
     27            { "de", new Dictionary<string, string> { { "Name", "Deutsch" }, { "Icon", "de.png" } } }/*,
     28            { "ru", new Dictionary<string, string> { { "Name", "Русский" }, { "Icon", "ru.png" } } }*/
     29        };
     30       
    2231        private ObjectConverter _objectConverter;
    2332        private TemplateDirectory _templatesDir;
     
    446455        }
    447456
    448         private static readonly Dictionary<string, string> _languagePresentationString = new Dictionary<string, string>() {{"en", "English"}, {"de", "Deutsch"}};
    449         private static readonly Dictionary<string, string> _languagePresentationIcon = new Dictionary<string, string>() { { "en", "en.png" }, { "de", "de.png" } };
    450 
    451         private static readonly Dictionary<string, Dictionary<string, string>> _languagePresentation = new Dictionary<string,Dictionary<string,string>> {
    452             { "en", new Dictionary<string, string> { { "Name", "English" }, { "Icon", "en.png" } } },
    453             { "de", new Dictionary<string, string> { { "Name", "Deutsch" }, { "Icon", "de.png" } } }
    454         };
    455 
    456457        private static string GenerateLanguageSelectionCodeBase(IEnumerable<string> availableLanguages, Dictionary<string, string[]> langdata, string lang)
    457458        {
Note: See TracChangeset for help on using the changeset viewer.