Esempio n. 1
0
 public static string SendMailLog(string message)
 {
     return(LC.L(@"Whole SMTP communication: {0}", message));
 }
Esempio n. 2
0
 public static string UnsupportedTimeValue(string optionname, string value)
 {
     return(LC.L(@"The value ""{1}"" supplied to --{0} does not represent a valid time", optionname, value));
 }
Esempio n. 3
0
 public static string InvalidPathError(string path, string message)
 {
     return(LC.L(@"Invalid path: ""{0}"" ({1})", path, message));
 }
Esempio n. 4
0
 public static string HashMismatchError(string filename, string recordedhash, string actualhash)
 {
     return(LC.L(@"Hash mismatch on file ""{0}"", recorded hash: {1}, actual hash {2}", filename, recordedhash, actualhash));
 }
Esempio n. 5
0
 public static string InvalidHashAlgorithm(string algorithm)
 {
     return(LC.L(@"The cryptolibrary does not support the hash algorithm {0}", algorithm));
 }
Esempio n. 6
0
 public static string UnsupportedOptionDisabledModuleWarning(string optionname, string modulename)
 {
     return(LC.L(@"The option --{0} is not supported because the module {1} is not currently loaded", optionname, modulename));
 }
Esempio n. 7
0
 public static string BackendtestsamplesLong(string optionname)
 {
     return(LC.L(@"After a backup is completed, some files are selected for verification on the remote backend. Use this option to change how many. If this value is set to 0 or the option --{0} is set, no remote files are verified", optionname));
 }
Esempio n. 8
0
 public static string DownloadedFileSizeError(string filename, long actualsize, long expectedsize)
 {
     return(LC.L(@"The file {0} was downloaded and had size {1} but the size was expected to be {2}", filename, actualsize, expectedsize));
 }
Esempio n. 9
0
 public static string DeprecatedOptionUsedWarning(string optionname, string message)
 {
     return(LC.L(@"The option {0} is deprecated: {1}", optionname, message));
 }
Esempio n. 10
0
 public static string SendMessageFailedError(string message)
 {
     return(LC.L(@"Failed to send message: {0}", message));
 }
Esempio n. 11
0
 public static string ResultFormatLong(IEnumerable <string> options)
 {
     return(LC.L(@"Selects the output format for results. Available formats: {0}", string.Join(", ", options)));
 }
Esempio n. 12
0
        public static string SendhttplevelLong(string success, string warning, string error, string fatal, string all)
        {
            return(LC.L(@"You can specify one of ""{0}"", ""{1}"", ""{2}"", ""{3}"". 
You can supply multiple options with a comma separator, e.g. ""{0},{1}"". The special value ""{4}"" is a shorthand for ""{0},{1},{2},{3}"" and will cause all backup operations to send a message.", success, warning, error, fatal, all));
        }
Esempio n. 13
0
 public static string SendMailSuccess(string server)
 {
     return(LC.L(@"Email sent successfully using server: {0}", server));
 }
Esempio n. 14
0
 public static string SendMailFailedRetryError(string failedserver, string message, string retryserver)
 {
     return(LC.L(@"Failed to send email with server: {0}, message: {1}, retrying with {2}", failedserver, message, retryserver));
 }
Esempio n. 15
0
 public static string UnsupportedEnumerationValue(string optionname, string value, string[] values)
 {
     return(LC.L(@"The option --{0} does not support the value ""{1}"", supported values are: {2}", optionname, value, string.Join(", ", values)));
 }
Esempio n. 16
0
 public static string DuplicateOptionNameWarning(string optionname)
 {
     return(LC.L(@"The option --{0} exists more than once, please report this to the developers", optionname));
 }
Esempio n. 17
0
 public static string DeletedfilesLong(string optionname)
 {
     return(LC.L(@"This option can be used to supply a list of deleted files. This option will be ignored unless the option --{0} is also set.", optionname));
 }
Esempio n. 18
0
 public static string SourceIsMissingError(string foldername)
 {
     return(LC.L(@"The source folder {0} does not exist, aborting backup", foldername));
 }
Esempio n. 19
0
 public static string UnsupportedOptionWarning(string optionname)
 {
     return(LC.L(@"The supplied option --{0} is not supported and will be ignored", optionname));
 }
Esempio n. 20
0
 public static string UnsupportedBooleanValue(string optionname, string value)
 {
     return(LC.L(@"The value ""{1}"" supplied to --{0} does not parse into a valid boolean, this will be treated as if it was set to ""true""", optionname, value));
 }
Esempio n. 21
0
 public static string FullremoteverificationLong(string optionname)
 {
     return(LC.L(@"After a backup is completed, some files are selected for verification on the remote backend. Use this option to turn on full verification, which will decrypt the files and examine the insides of each volume, instead of simply verifying the external hash, If the option --{0} is set, no remote files are verified", optionname));
 }
Esempio n. 22
0
 public static string SymlinkpolicyLong(string store, string ignore, string follow)
 {
     return(LC.L(@"Using this option to handle symlinks different. The ""{0}"" option will simply record a symlink with its name and destination, and a restore will recreate the symlink as a link. Use the option ""{1}"" to ignore all symlinks and not store any information about them. Previous versions of Duplicati used the setting ""{2}"", which will cause symlinked files to be included and restore as normal files.", store, ignore, follow));
 }
Esempio n. 23
0
 public static string InvalidCryptoSystem(string algorithm)
 {
     return(LC.L(@"The cryptolibrary does not support re-usable transforms for the hash algorithm {0}", algorithm));
 }
Esempio n. 24
0
 public static string HardlinkpolicyLong(string first, string all, string none)
 {
     return(LC.L(@"Using this option to handle hardlinks (only works on Linux/OSX). The ""{0}"" option will record a hardlink ID for each hardlink to avoid storing hardlinked paths multiple times. The option ""{1}"" will ignore hardlink information, and treat each hardlink as a unique path. The option ""{2}"" will ignore all hardlinks with more than one link.", first, all, none));
 }
Esempio n. 25
0
 public static string SnapshotFailedError(string message)
 {
     return(LC.L(@"Failed to create a snapshot: {0}", message));
 }
Esempio n. 26
0
 public static string ExcludefilesattributesLong(string[] attributes)
 {
     return(LC.L(@"Use this option to exclude files with certain attributes. Use a comma separated list of attribute names to specify more that one. Possible values are: {0}", string.Join(", ", attributes)));
 }
Esempio n. 27
0
 public static string StartingOperationMessage(OperationMode operationname)
 {
     return(LC.L(@"The operation {0} has started", operationname));
 }
Esempio n. 28
0
 public static string CompressionextensionfileLong(string path)
 {
     return(LC.L(@"This property can be used to point to a text file where each line contains a file extension that indicates a non-compressible file. Files that have an extension found in the file will not be compressed, but simply stored in the archive. The file format ignores any lines that do not start with a period, and considers a space to indicate the end of the extension. A default file is supplied, that also serves as an example. The default file is placed in {0}.", path));
 }
Esempio n. 29
0
        protected virtual void  OnGUI()
        {
            if (HQ.Settings == null)
            {
                GUILayout.Label(string.Format(LC.G("RequiringConfigurationFile"), ColorMarkersWizard.Title));
                if (GUILayout.Button(LC.G("ShowPreferencesWindow")) == true)
                {
                    Utility.ShowPreferencesWindowAt(Constants.PreferenceTitle);
                }
                return;
            }

            ColorMarkersModuleSettings settings = HQ.Settings.Get <ColorMarkersModuleSettings>();

            this.r.x      = 0F;
            this.r.y      = 0F;
            this.r.width  = this.position.width;
            this.r.height = Constants.SingleLineHeight;

            if (GUI.Button(r, LC.G("AddMarker")) == true)
            {
                if (this.CheckMaxColorMarkers(settings.colorMarkers.Count) == true)
                {
                    Undo.RecordObject(settings, "Add color marker");

                    ColorMarker        marker       = new ColorMarker();
                    MainModuleSettings mainSettings = HQ.Settings.Get <MainModuleSettings>();

                    foreach (ILogFilter filter in mainSettings.GenerateFilters())
                    {
                        marker.groupFilters.filters.Add(filter);
                    }

                    settings.colorMarkers.Add(marker);

                    this.RefreshAllStreams();
                }
            }

            this.r.y += this.r.height + ColorMarkersWizard.MarkerSpacing;

            float totalHeight = 0f;

            for (int i = 0; i < settings.colorMarkers.Count; i++)
            {
                while (this.folds.Count < settings.colorMarkers.Count)
                {
                    this.folds.Add(true);
                }

                totalHeight += this.r.height + ColorMarkersWizard.Spacing + ColorMarkersWizard.MarkerSpacing;
                if (this.folds[i] == true)
                {
                    totalHeight += this.r.height + ColorMarkersWizard.Spacing;

                    for (int j = 0; j < settings.colorMarkers[i].groupFilters.filters.Count; j++)
                    {
                        if (settings.colorMarkers[i].groupFilters.filters[j].Enabled == true)
                        {
                            totalHeight += this.r.height + 2F;
                        }
                    }
                }
            }

            totalHeight         -= ColorMarkersWizard.MarkerSpacing;
            this.viewRect.height = totalHeight;

            Rect body = this.r;

            body.height = this.position.height - this.r.y;

            this.scrollPosition = GUI.BeginScrollView(body, this.scrollPosition, this.viewRect);
            {
                float width = body.width;

                if (totalHeight > body.height)
                {
                    width -= 16F;
                }

                this.r.y = 0F;
                for (int i = 0; i < settings.colorMarkers.Count; i++)
                {
                    this.r.x     = 0F;
                    this.r.width = width;

                    GUI.Box(r, GUIContent.none, GeneralStyles.Toolbar);

                    this.r.width  = width - 325F;
                    this.folds[i] = EditorGUI.Foldout(this.r, this.folds[i], LC.G("Marker") + " #" + (i + 1));
                    this.r.x     += this.r.width;

                    this.r.width = 200F;

                    EditorGUI.BeginChangeCheck();
                    Color color = EditorGUI.ColorField(r, settings.colorMarkers[i].backgroundColor);
                    if (EditorGUI.EndChangeCheck() == true)
                    {
                        this.alteredColorMarker = settings.colorMarkers[i];
                        this.newColor           = color;

                        settings.colorMarkers[i].backgroundColor = color;
                        Utility.RepaintEditorWindow(typeof(NGConsoleWindow));
                        Utility.RegisterIntervalCallback(this.DelayedSetBackgroundcolor, 100, 1);
                    }
                    this.r.x += this.r.width;

                    this.r.width = 65F;
                    EditorGUI.DrawRect(this.r, settings.colorMarkers[i].backgroundColor);
                    EditorGUI.LabelField(this.r, "# # # # #");
                    this.r.x += this.r.width;

                    this.r.width = 20F;

                    EditorGUI.BeginDisabledGroup(i == 0);
                    {
                        if (GUI.Button(r, "↑", GeneralStyles.ToolbarButton) == true)
                        {
                            Undo.RecordObject(settings, "Reorder color marker");
                            settings.colorMarkers.Reverse(i - 1, 2);
                            this.RefreshAllStreams();
                            break;
                        }
                        this.r.x += this.r.width;

                        GUI.enabled = i < settings.colorMarkers.Count - 1;
                        if (GUI.Button(r, "↓", GeneralStyles.ToolbarButton) == true)
                        {
                            Undo.RecordObject(settings, "Reorder color marker");
                            settings.colorMarkers.Reverse(i, 2);
                            this.RefreshAllStreams();
                            break;
                        }
                        this.r.x += this.r.width;

                        GUI.enabled = true;
                        if (GUI.Button(r, "X", GeneralStyles.ToolbarCloseButton) == true)
                        {
                            Undo.RecordObject(settings, "Delete color marker");
                            settings.colorMarkers.RemoveAt(i);
                            this.RefreshAllStreams();
                            break;
                        }
                    }
                    EditorGUI.EndDisabledGroup();

                    this.r.y += this.r.height + ColorMarkersWizard.Spacing;

                    if (this.folds[i] == true)
                    {
                        this.r.x = 0F;

                        EditorGUI.BeginChangeCheck();
                        {
                            settings.colorMarkers[i].groupFilters.OnGUI(r);

                            this.r.y += this.r.height + ColorMarkersWizard.Spacing;

                            for (int j = 0; j < settings.colorMarkers[i].groupFilters.filters.Count; j++)
                            {
                                if (settings.colorMarkers[i].groupFilters.filters[j].Enabled == true)
                                {
                                    this.r.x     = 0F;
                                    this.r.width = width;
                                    this.r       = settings.colorMarkers[i].groupFilters.filters[j].OnGUI(this.r, false);
                                }
                            }
                        }
                        if (EditorGUI.EndChangeCheck() == true)
                        {
                            this.RefreshAllStreams();
                        }
                    }

                    this.r.y += ColorMarkersWizard.MarkerSpacing;
                }
            }
            GUI.EndScrollView();
        }
Esempio n. 30
0
 public static string OptionSubjectLong(string optionname)
 {
     return(LC.L(@"This setting supplies the email subject. Values are replaced as described in the description for --{0}.", optionname));
 }