So in the javascript file
general.js in the
quickLogin method/function, there is this use of the
lang variable, e.g.
lang.username
lang.password
lang.login
lang.lost_password
etc.
Now where is this variable declared and initialized? I want to be able to modify it's initial values.
in default theme you call this vars inside header_wellcomebock_guests
At the beggining you give the values for quicklogin lang vars, and you can change as you want on lang files i thik, i don't change this values never, but i see a reference in that places, maybe helps to you.
Oh lol xD
I always ignored and overlooked this piece of script
<script type="text/javascript">
<!--
lang.username = "{$login_username}";
lang.password = "{$lang->login_password}";
lang.login = "{$lang->login}";
lang.lost_password = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
lang.register_url = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
lang.remember_me = "{$lang->remember_me}";
// -->
</script>
Because of the comments, I always thought this was just an unused/outcommented script. But now that I took a closer look, I see the comments are actually
inside the
<script> element, so yeah xD Makes sense now!