Hi, i am really sorry about the long time to reply, but only today i have time to do this.
If you still believe this is a good proposal to the project, i realized some tests with gettext extension of PHP and the Portuguese translation.
At configuration level is too easy to implement, i just install the PHP extension and define the language in config.php, after this we just add a few lines in the functions.php to configure the local of compiled translations an hes names.
1 - config.php
setlocale(LC_ALL, 'pt_BR.UTF-8');
2 - functions.php
bindtextdomain("flowit", "locale");
textdomain("flowit");
With hard work we need transform all sentences in code in something like this:
3 - login.php )Lines between 253-254
<!-- /.login-logo -->
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg"><?php if (isset($response)) { echo $response; } ?></p>
<form method="post">
<div class="input-group mb-3" <?php if (isset($token_field)) { echo "hidden"; } ?>>
<input type="text" class="form-control" placeholder="<?php echo _("Agent Email") ?>" name="email" value="<?php if (isset($token_field)) { echo $email; }?>" required <?php if (!isset($token_field)) { echo "autofocus"; } ?> >
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
</div>
</div>
</div>
<div class="input-group mb-3" <?php if (isset($token_field)) { echo "hidden"; } ?>>
<input type="password" class="form-control" placeholder="<?php echo _("Agent password") ?>" name="password" value="<?php if (isset($token_field)) { echo $password; } ?>" required>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
<?php if (isset($token_field)) { echo $token_field; } ?>
<button type="submit" class="btn btn-primary btn-block mb-3" name="login"><?php echo _("Sign In") ?></button>
<hr><br>
<h4><?php echo _("Looking for the") ?> <a href="portal"><?php echo _("Client Portal?") ?><a/></h4>
</form>
</div>
And we have this:
I wait your feedback about that
Best regards!