GetGender() публичный Метод

public GetGender ( string language ) : string
language string
Результат string
Пример #1
0
        // Get the gender for a symbol. Checks the eventDB for overrides to the symbol text; otherwise uses the default for the symbol.
        string GetSymbolGender(Symbol symbol)
        {
            Event  ev = eventDB.GetEvent();
            string id = symbol.Id;

            if (ev.customSymbolText.ContainsKey(id) && Symbol.ContainsLanguage(ev.customSymbolText[id], language))
            {
                return(Symbol.GetSymbolGender(symbolDB, ev.customSymbolText[id], language));
            }
            else
            {
                return(symbol.GetGender(language));
            }
        }
Пример #2
0
 // Create a combination string for crossing/junction/between.
 string CombineSymbols(Symbol comboSymbol, string mainFeature, string mainFeaturePlural, string secondaryFeature, out string pluralCombo, out string gender)
 {
     pluralCombo = null;
     if (secondaryFeature == null && mainFeaturePlural != null)
     {
         Symbol singleComboSymbol = GetSingleVersionOfComboSymbol(comboSymbol);
         pluralCombo = string.Format(singleComboSymbol.GetPluralText(language), mainFeature, mainFeaturePlural);
         gender      = singleComboSymbol.GetGender(language);
         return(string.Format(singleComboSymbol.GetText(language), mainFeature, mainFeaturePlural));
     }
     else
     {
         pluralCombo = string.Format(comboSymbol.GetPluralText(language), mainFeature, secondaryFeature == null ? mainFeature : secondaryFeature);
         gender      = comboSymbol.GetGender(language);
         return(string.Format(comboSymbol.GetText(language), mainFeature, secondaryFeature == null ? mainFeature : secondaryFeature));
     }
 }
Пример #3
0
        // Get the gender for a symbol. Checks the eventDB for overrides to the symbol text; otherwise uses the default for the symbol.
        string GetSymbolGender(Symbol symbol)
        {
            Event ev = eventDB.GetEvent();
            string id = symbol.Id;

            if (ev.customSymbolText.ContainsKey(id) && Symbol.ContainsLanguage(ev.customSymbolText[id], language))
                return Symbol.GetSymbolGender(symbolDB, ev.customSymbolText[id], language);
            else
                return symbol.GetGender(language);
        }
Пример #4
0
 // Create a combination string for crossing/junction/between.
 string CombineSymbols(Symbol comboSymbol, string mainFeature, string mainFeaturePlural, string secondaryFeature, out string pluralCombo, out string gender)
 {
     pluralCombo = null;
     if (secondaryFeature == null && mainFeaturePlural != null) {
         Symbol singleComboSymbol = GetSingleVersionOfComboSymbol(comboSymbol);
         pluralCombo = string.Format(singleComboSymbol.GetPluralText(language), mainFeature, mainFeaturePlural);
         gender = singleComboSymbol.GetGender(language);
         return string.Format(singleComboSymbol.GetText(language), mainFeature, mainFeaturePlural);
     }
     else {
         pluralCombo = string.Format(comboSymbol.GetPluralText(language), mainFeature, secondaryFeature == null ? mainFeature : secondaryFeature);
         gender = comboSymbol.GetGender(language);
         return string.Format(comboSymbol.GetText(language), mainFeature, secondaryFeature == null ? mainFeature : secondaryFeature);
     }
 }