Hi! I have bought Galapagos 2 theme, and installed it on the drupal 6.14 with russian language pack, but ther are lots of english phrases left in administation menu and at the front end of my site :( Even the date at the upper right corner is in inglish. Plese can somebodi explain to me what should i do, to fix all this?
Answered via e-mail, but for anyone else with this problem:
There are definitely a few instances that must be changed manually to your desired language in the template.php file (found in the theme's root folder).
The first is on line 80:
$output .= t('Hi !user, welcome back.',
array('!user' => theme('username', $user)));
$output .= theme('item_list', array(
l(t('Your account'), 'user/'.$user->uid, array('title' => t('Edit your
account'))),
l(t('Sign out'), 'logout')));
You'll see here that the English is hardcoded and must be changed. So what you'd need to change is in the above code is:
Hi !user, welcome back. (but don't change !user if you want to show the username)
Edit Your Account
Your Account
Sign Out
Further down in the template.php file you'll want to change the Read More text that appears in the DDblock. You'll find this on line 154 and it appears as:
$slider_items[$key1]['slide_read_more'] = l('Read more...', 'node/' .
$result->nid);
So you'll want to change: Read more...
The 'Search This Site' can be changed in the file
'search_theme_form.tpl.php'
You'll see value="Search This Site" and that needs to be changed.
Note you'll have to encode these in UTF-8 format for them to save properly.
thanks for your post Rob! you know so much about coding. Can you teach me? lol
Hi,
I was under the impression that any t() variable was translatable, consequently, you could do it using the localization module.
Any feedback on that?
Thanks
Yes - I think this is probably true. I honestly haven't done much testing with the localization module at all. I do know that the Read More... and search form have to be altered manually, though.




