private ILocalizedText getLocalizedText(CultureInfo locale, String id) { foreach (ILocalizer localizer in localizers) { ILocalizedText text = localizer.getLocalizedText(locale, id); if (text != null) { return(text); } } return(null); }
public virtual String getLocalizedTextString(CultureInfo locale, String id, System.Collections.IDictionary parameters) { ILocalizedText t = getLocalizedText(locale, id); if ((t == null) && !locale.Equals(System.Threading.Thread.CurrentThread.CurrentCulture)) { t = getLocalizedText(System.Threading.Thread.CurrentThread.CurrentCulture, id); } if ((t == null) && !System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName.Equals("en")) { t = getLocalizedText(new CultureInfo("en"), id); } return((t == null)?null:t.format(parameters)); }
/// <summary> /// Writes <see cref="DateTime" /> using the provided encoder <see cref="IBinaryEncoder" />. /// </summary> /// <param name="encoder">The encoder - an object implementing the <see cref="IBinaryEncoder" /> interface.</param> /// <param name="value">The value to be encoded.</param> public abstract void Write(IBinaryEncoder encoder, ILocalizedText value);
public void Write(IBinaryEncoder encoder, ILocalizedText value) { Assert.AreSame(this, encoder); _encoder.Write(this, value); }
public override void Write(IBinaryEncoder encoder, ILocalizedText value) { throw new NotImplementedException(); }
public bool Equals(ILocalizedText other) { return(this.Key == other.Key); }
public override void Write(IBinaryEncoder encoder, ILocalizedText value) { throw new NotImplementedException(); }