The deeplink module does all of this internally. In StartDeepLink.java you will find the following snippet of code:
Map<String, String> args = new HashMap<String, String>();
args.put("url", url);
args.put("result", result);
args.put("relpath", getRelPath(request));
renderTemplate("login", args, response);
Only two possible values for result will ever be passed to this:
private static final String DEFAULTLOGINTEXT = "Sign in";
private static final String ERRORLOGINTEXT = "The username or password you entered is incorrect.";`
So this is where you could change this. In general it seems like it's somewhat of an issue that i8n is not taken into account at all here, as these are hardcoded Strings.
Hi Topin,
For as far as I know the login logic uses the js files in deployment\web\js for the texts. Translations are in the login_i18n.js file and login.js contains the logic on the client side.
I don't know if this login_i18n.js is generated based on data that you can edit in the modeler. But overwriting it could be done using the theme folder.