package eu.kandru.luna.i18n;

import java.text.MessageFormat;

public class MessageBuilder {

    private static MessageFormat passwordMessage = new MessageFormat("\nHi {0},\n" +
                                                                             "someone, hopefully you, tries to use your identity to log into my web interface. \n" +
                                                                             "If it''s actually you, use[b]{1}[/b] as password. " +
                                                                             "If not, just ignore this message.");

	public static String generatePasswordMessage(String password, String username){
        return passwordMessage.format(new Object[]{username, password});
    }
	
}

@@ -156,16 +156,29 @@
 eFormat(
+%0A            
 %22%5CnHi %7B0
@@ -189,65 +189,8 @@
 %22 +%0A
-                                                         
     
@@ -297,65 +297,8 @@
 %22 +%0A
-                                                         
     
@@ -340,16 +340,17 @@
 you, use
+ 
 %5Bb%5D%7B1%7D%5B/
@@ -373,65 +373,8 @@
 %22 +%0A
-                                                         
     

fix missing space in password message