Пример #1
0
        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));
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
 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;
     }
 }