예제 #1
0
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts  = manager.ScriptManager;
            string        areaName = AreaRegistration.CurrentPackage.AreaName;

            scripts.AddLocalization(areaName, "RemoveStepConfirm", this.__ResStr("removeStepConfirm", "Are you sure you want to remove this step?"));
            scripts.AddLocalization(areaName, "RemoveStepTitle", this.__ResStr("removeStepTitle", "Remove Step"));

            return(Task.CompletedTask);
        }
예제 #2
0
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts  = manager.ScriptManager;
            string        areaName = AreaRegistration.CurrentPackage.AreaName;

            scripts.AddLocalization(areaName, "Separator", this.__ResStr("Separator", "(Separator)"));
            scripts.AddLocalization(areaName, "ChangedEntry", this.__ResStr("ChangedEntry", "You have modified the current menu entry - Please save it before selecting another menu entry"));
            scripts.AddLocalization(areaName, "NewEntry", this.__ResStr("NewEntry", "The current menu entry is a new entry - Please save it before selecting another menu entry"));
            scripts.AddLocalization(areaName, "NewEntryText", this.__ResStr("NewEntryText", "(New)"));

            return(Task.CompletedTask);
        }
예제 #3
0
        /// <summary>
        /// Called by the framework so the component can add component specific client-side configuration options and localizations to the page.
        /// </summary>
        /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param>
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts = manager.ScriptManager;
            string        area    = AreaRegistration.CurrentPackage.AreaName;

            scripts.AddLocalization(area, "StatusUploadNoResp", "Upload failed - The file is too large or the server did not respond");
            scripts.AddLocalization(area, "StatusUploadFailed", "Upload failed - {0}");
            scripts.AddLocalization(area, "FileTypeError", "The file type is invalid and can't be uploaded");
            scripts.AddLocalization(area, "FileSizeError", "The file is too large and can't be uploaded");
            scripts.AddLocalization(area, "FallbackMode", "Your browser doesn't support file uploading");

            return(Task.CompletedTask);
        }
예제 #4
0
        /// <summary>
        /// Called by the framework so the component can add component specific client-side configuration options and localizations to the page.
        /// </summary>
        /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param>
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts  = manager.ScriptManager;
            string        areaName = AreaRegistration.CurrentPackage.AreaName;

            //scripts.AddConfigOption(areaName, "something", Something);

            scripts.AddLocalization(areaName, "GridTotalNone", this.__ResStr("gridTotalNone", "No items"));
            scripts.AddLocalization(areaName, "GridTotal0", this.__ResStr("gridTotal0", "None of {0} items"));
            scripts.AddLocalization(areaName, "GridTotals", this.__ResStr("gridTotals", "{0} - {1} of {2} items"));

            return(Task.CompletedTask);
        }
예제 #5
0
        public async Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts    = manager.ScriptManager;
            Package       package    = AreaRegistration.CurrentPackage;
            string        area       = package.AreaName;
            SkinImages    skinImages = new SkinImages();

            scripts.AddLocalization(area, "msgOnlineTT", this.__ResStr("online", "User is online and can receive messages"));
            scripts.AddLocalization(area, "msgOfflineTT", this.__ResStr("offline", "User is offline and can't receive messages - If you send a message it will be stored and shown to the user at a later time"));
            scripts.AddLocalization(area, "msgNotSeenTT", this.__ResStr("notSeen", "This message has not been seen"));

            scripts.AddConfigOption(area, "msgOnlineIcon", await skinImages.FindIcon_PackageAsync("Online.png", package));
            scripts.AddConfigOption(area, "msgOfflineIcon", await skinImages.FindIcon_PackageAsync("Offline.png", package));
            scripts.AddConfigOption(area, "msgNotSeenIcon", await skinImages.FindIcon_PackageAsync("NotSeen.png", package));
        }
예제 #6
0
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts  = manager.ScriptManager;
            string        areaName = AreaRegistration.CurrentPackage.AreaName;

            scripts.AddLocalization(areaName, "FmtResult", this.__ResStr("FmtResult", "{0} {1}"));

            return(Task.CompletedTask);
        }
예제 #7
0
        /// <summary>
        /// Called by the framework so the component can add component specific client-side configuration options and localizations to the page.
        /// </summary>
        /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param>
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts = manager.ScriptManager;
            string        area    = AreaRegistration.CurrentPackage.AreaName;

            scripts.AddConfigOption(area, "Localization", manager.CurrentSite.Localization);

            scripts.AddLocalization(area, "Languages", YetaWF.Core.Models.MultiString.LanguageIdList);
            return(Task.CompletedTask);
        }
예제 #8
0
        /// <summary>
        /// Called by the framework so the component can add component specific client-side configuration options and localizations to the page.
        /// </summary>
        /// <param name="manager">The YetaWF.Core.Support.Manager instance of current HTTP request.</param>
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts = manager.ScriptManager;

            string area = AreaRegistration.CurrentPackage.AreaName;

            scripts.AddLocalization(area, "CopyToClip", this.__ResStr("copyToClip", "Copied to clipboard"));

            return(Task.CompletedTask);
        }
예제 #9
0
        public Task AddSupportAsync(YetaWFManager manager)
        {
            ScriptManager scripts = manager.ScriptManager;
            string        area    = AreaRegistration.CurrentPackage.AreaName;

            // Syntax highlighter
            scripts.AddLocalization(area, "msg_expandSource", this.__ResStr("expandSource", "+ expand source"));
            scripts.AddLocalization(area, "msg_help", this.__ResStr("help", "?"));
            scripts.AddLocalization(area, "msg_alert", this.__ResStr("alert", "SyntaxHighlighter\n\n"));
            scripts.AddLocalization(area, "msg_noBrush", this.__ResStr("noBrush", "Can't find brush for "));
            scripts.AddLocalization(area, "msg_brushNotHtmlScript", this.__ResStr("brushNotHtmlScript", "Brush wasn't made for html-script option "));
            scripts.AddLocalization(area, "msg_viewSource", this.__ResStr("viewSource", "View Source"));
            scripts.AddLocalization(area, "msg_copyToClipboard", this.__ResStr("copyToClipboard", "Copy to Clipboard"));
            scripts.AddLocalization(area, "msg_copyToClipboardConfirmation", this.__ResStr("copyToClipboardConfirmation", "The code has been copied to your clipboard."));
            scripts.AddLocalization(area, "msg_print", this.__ResStr("print", "Print"));

            return(Task.CompletedTask);
        }