public string FindMissingProperty(PropertyToken property, CultureInfo culture)
        {
            var defaultValue = culture.Equals(_defaultCulture)
                ? property.Header ?? property.DefaultHeaderText(culture) ?? BreakUpCamelCase(property.PropertyName)
                : property.DefaultHeaderText(culture) ?? culture.Name + "_" + property.PropertyName;

            writeMissing(property.StringTokenKey, defaultValue, culture);

            return defaultValue;
        }
 public string GetHeader(PropertyToken token)
 {
     return(_localizationDataProvider.GetHeader(token));
 }
 public string FindMissingProperty(PropertyToken key, CultureInfo culture)
 {
     var combinedKey = string.Format("{0}_{1}", key.ParentType.Name, key.PropertyName);
     return FindMissingText(combinedKey, key.FindDefaultHeader(culture), culture);
 }
Пример #4
0
 public abstract string GetDefaultText(PropertyToken property);
 public string GetHeader(PropertyToken property)
 {
     return Culture.Name + "_" + property.PropertyName;
 }
 public string GetDefaultText(PropertyToken property)
 {
     return Culture.Name + "_" + property.PropertyName;
 }
Пример #7
0
 public bool Equals(PropertyToken obj)
 {
     if (ReferenceEquals(null, obj)) return false;
     if (ReferenceEquals(this, obj)) return true;
     return Equals(obj.ParentTypeName, ParentTypeName) && Equals(obj.PropertyName, PropertyName);
 }