Friendlier internationalization strings
authorMiguel de Icaza <miguel@gnome.org>
Sun, 14 Sep 2008 20:56:03 +0000 (20:56 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 14 Sep 2008 20:56:03 +0000 (20:56 -0000)
svn path=/trunk/mcs/; revision=112971

mcs/mcs/cs-tokenizer.cs

index 3b6e93577167b3f0531b877306b4f933344032a8..40dc80f8c5d87f45e16e84a321912404aac3850d 100644 (file)
@@ -1818,11 +1818,11 @@ namespace Mono.CSharp
                        }
 
                        if (!is_identifier_start_character (ident [0]))
-                               Report.Error (1001, Location, "Identifier expected: " + ident);
+                               Report.Error (1001, Location, "Identifier expected: {0}", ident);
                        
                        foreach (char c in ident.Substring (1)){
                                if (!is_identifier_part_character (c)){
-                                       Report.Error (1001, Location, "Identifier expected: " + ident);
+                                       Report.Error (1001, Location, "Identifier expected: {0}",  ident);
                                        return;
                                }
                        }
@@ -2210,7 +2210,7 @@ namespace Mono.CSharp
                {
                        Report.Error (
                                1028, Location,
-                               "Unexpected processor directive (" + extra + ")");
+                               "Unexpected processor directive ({0})", extra);
                }
 
                void Error_TokenExpected (string token)
@@ -2417,7 +2417,7 @@ namespace Mono.CSharp
                                        
                        switch (cmd){
                        case "error":
-                               Report.Error (1029, Location, "#error: '" + arg + "'");
+                               Report.Error (1029, Location, "#error: '{0}'", arg);
                                return true;
 
                        case "warning":