GetGender() public method

public GetGender ( string language ) : string
language string
return string
Ejemplo n.º 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));
            }
        }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
     }
 }