Jump to:
| Project: | Ajax Login/Register |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
ajax_register.module
for the moment I found no other way to change the language, that to edit your code. Someone told me there is a solution with .t(" "), but I am not experienced enough to chance it on my own.
Please update your code to change the language within drupal. Thanks a lot.
about line: 82
function ajax_get_login_block_content() {
global $user;
$user_uri = l('Mein Konto','user/'.$user->uid);
$login_uri = l('Anmelden', 'ajax_register/login',array('attributes'=>array('class'=>'thickbox',)));
$register_uri = l('Eintragen', 'ajax_register/register',array('attributes'=>array('class'=>'thickbox',)));
$logout_uri = l('Abmelden','logout');
if (user_is_anonymous()){
$block_content = "". $login_uri ."
". $register_uri ."";
return $block_content;
}
else{
$block_content = "
".t("Willkommen: ")."". $user->name ."
". $user_uri ."
". $logout_uri ."";
return $block_content;
}
}
Comments
#1
All strings in the module are surrounded with a t() which means that you can change them using the locale Translate Interface feature
#2
Well maybe I made a mistake, but my attempts to chance the language didn't really worked out.
Thank you
matangi