Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2015-01-20 23:07:24 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2015-01-20 23:07:24 +0300
commit16c791f0b518197361cef99c40964caa4a69830d (patch)
treec7160834f923725932babad4b08393dfb4408838 /Duplicati/Library/Utility/Timeparser.cs
parenta8bf04444b6cc8a950426c2cd910a697c7889524 (diff)
Removed all resx files, now using Duplicati.Library.Localization exclusively
Diffstat (limited to 'Duplicati/Library/Utility/Timeparser.cs')
-rw-r--r--Duplicati/Library/Utility/Timeparser.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Duplicati/Library/Utility/Timeparser.cs b/Duplicati/Library/Utility/Timeparser.cs
index b71214639..f89448c13 100644
--- a/Duplicati/Library/Utility/Timeparser.cs
+++ b/Duplicati/Library/Utility/Timeparser.cs
@@ -75,7 +75,7 @@ namespace Duplicati.Library.Utility
string partial = datestring.Substring(previndex, index - previndex).Trim();
int factor;
if (!int.TryParse(partial, System.Globalization.NumberStyles.Integer, null, out factor))
- throw new Exception(string.Format(Strings.Timeparser.InvalidIntegerError, partial));
+ throw new Exception(Strings.Timeparser.InvalidIntegerError(partial));
factor *= multiplier;
@@ -103,13 +103,13 @@ namespace Duplicati.Library.Utility
offset = offset.AddYears(factor);
break;
default:
- throw new Exception(string.Format(Strings.Timeparser.InvalidSpecifierError, datestring[index]));
+ throw new Exception(Strings.Timeparser.InvalidSpecifierError(datestring[index]));
}
previndex = index + 1;
}
if (datestring.Substring(previndex).Trim().Length > 0)
- throw new Exception(string.Format(Strings.Timeparser.UnparsedDataFragmentError, datestring.Substring(previndex)));
+ throw new Exception(Strings.Timeparser.UnparsedDataFragmentError(datestring.Substring(previndex)));
return offset;
}