diff options
author | Matt Ward <matt.ward@xamarin.com> | 2016-05-05 12:22:33 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@xamarin.com> | 2016-05-05 12:22:33 +0300 |
commit | 7172cbba8836c9c23f2925ad2f5fb4b15ea3a979 (patch) | |
tree | 8c2ed211f046e786dc394a5f8a87fc05d4f5b88c /main/src/addins/TextTemplating | |
parent | 3956b764fa06f8f5de1bae70732897606b8b1bc3 (diff) |
[T4] Add missing translation strings.
Diffstat (limited to 'main/src/addins/TextTemplating')
-rw-r--r-- | main/src/addins/TextTemplating/MonoDevelop.TextTemplating/T4FileTemplate.cs | 2 | ||||
-rw-r--r-- | main/src/addins/TextTemplating/MonoDevelop.TextTemplating/TextTemplatingFilePreprocessor.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/T4FileTemplate.cs b/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/T4FileTemplate.cs index df1bb81309..8b8562e7fe 100644 --- a/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/T4FileTemplate.cs +++ b/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/T4FileTemplate.cs @@ -67,7 +67,7 @@ namespace MonoDevelop.TextTemplating foreach (var err in host.Errors)
LoggingService.LogError ("Error in template generator: {0}", err.ToString());
var firstError = host.Errors.OfType<CompilerError> ().First (f => !f.IsWarning); - throw new Exception ("Failed to generate file: " + firstError.ErrorText); + throw new Exception (GettextCatalog.GetString ("Failed to generate file: {0}", firstError.ErrorText)); }
return output;
}
diff --git a/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/TextTemplatingFilePreprocessor.cs b/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/TextTemplatingFilePreprocessor.cs index 4387d8d872..c9f0f900d1 100644 --- a/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/TextTemplatingFilePreprocessor.cs +++ b/main/src/addins/TextTemplating/MonoDevelop.TextTemplating/TextTemplatingFilePreprocessor.cs @@ -65,7 +65,7 @@ namespace MonoDevelop.TextTemplating } catch (IOException ex) { host.Errors.Add (new CompilerError { - ErrorText = "Could not read input file '" + file.FilePath + "':\n" + ex + ErrorText = GettextCatalog.GetString ("Could not read input file '{0}':\n{1}", file.FilePath, ex) }); return; } @@ -101,7 +101,7 @@ namespace MonoDevelop.TextTemplating } catch (IOException ex) { host.Errors.Add (new CompilerError { - ErrorText = "Could not write output file '" + outputFile + "':\n" + ex + ErrorText = GettextCatalog.GetString ("Could not write output file '{0}':\n{1}", outputFile, ex) }); } } |