public override string GetLocalizedString(PreviewStringId id) { Utils.CollectUsedResource("PreviewStringId." + id.ToString()); string localized = base.GetLocalizedString(id); if (ModelUserContext.CurrentLanguage == Localizer.lngEn) { return(localized); } return(XtraStrings.Get("PreviewStringId." + id.ToString(), localized)); }
public override string GetLocalizedString(PreviewStringId id) { switch (id) { case PreviewStringId.Button_Cancel: return(Localizer.GetLocalized("cancel")); case PreviewStringId.Button_Apply: return(Localizer.GetLocalized("Apply")); case PreviewStringId.RibbonPreview_Print_Caption: case PreviewStringId.TB_TTip_Print: return(Localizer.GetLocalized("Print")); default: string result = Localizer.GetLocalized(StrPreviewStringId + id); return((String.IsNullOrEmpty(result)) ? id.ToString() : result); } }
public override string GetLocalizedString(PreviewStringId id) { switch (id) { case PreviewStringId.Button_Cancel: return Localizer.GetLocalized("cancel"); case PreviewStringId.Button_Apply: return Localizer.GetLocalized("Apply"); case PreviewStringId.RibbonPreview_Print_Caption: case PreviewStringId.TB_TTip_Print: return Localizer.GetLocalized("Print"); default: string result = Localizer.GetLocalized(StrPreviewStringId + id); return (String.IsNullOrEmpty(result)) ? id.ToString() : result; } }