hi all,
i noticed that after choosing english in the admin interface only the wordpress part is in english, the integrated oscommerce part are by default in turkish.
anybody has a clue on how to change this to english?
thanks,
Randall
hi all,
i noticed that after choosing english in the admin interface only the wordpress part is in english, the integrated oscommerce part are by default in turkish.
anybody has a clue on how to change this to english?
thanks,
Randall
Hi, to fix this problem you can edit wp-config.php file.
We may forget to remove tr_TR definition for first upload. Find below row
find this row:
define ('WPLANG', 'tr_TR');
replace with this:
define ('WPLANG', '');
thanks for the reply Kako,
but it is currently already set to define ('WPLANG', ''); by default.
also would this not only effect the wordpress side of the thing?
its the oscommerce functions that are turkish only
think i got it,
is it possible some files in /wp-admin/includes/languages/english are not there?
please let me know if somebody is already working on this or if its readily available somewhere else.
i don't mind spending a rainy afternoon doing this
Hi randall,
open wp-admin/admin-header.php and find this line:
<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
add below code after this:
<?php
$languages = tep_get_languages();
$languages_array = array();
$languages_selected = DEFAULT_LANGUAGE;
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$languages_array[] = array('id' => $languages[$i]['code'],
'text' => $languages[$i]['name']);
if ($languages[$i]['directory'] == $language) {
$languages_selected = $languages[$i]['code'];
}
}
echo tep_draw_form('adminlanguage', 'index.php', '', 'get') . tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"') . tep_hide_session_id() . '</form>'; ?>
you'll see language selection drop down box on top of page
thanks ;)
that works, although partially, since i guess it really is still missing some translations
yes, admin side English language definitions are not completed, i plan to fix missings for next upload in 2-3 days
after this fix i get the following error when calling the plugin config page.
Fatal error: Call to undefined function tep_get_languages() in /var/www/www.ano-hosting.nl/shop/wp-admin/admin-header.php on line 125
open wp-admin/admin-header.php and change previously added code with this:
<?php
if(defined('DEFAULT_LANGUAGE')){
$languages = tep_get_languages();
$languages_array = array();
$languages_selected = DEFAULT_LANGUAGE;
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$languages_array[] = array('id' => $languages[$i]['code'],
'text' => $languages[$i]['name']);
if ($languages[$i]['directory'] == $language) {
$languages_selected = $languages[$i]['code'];
}
}
echo tep_draw_form('adminlanguage', 'index.php', '', 'get') . tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"') . tep_hide_session_id() . '</form>';}
?>works great now,
damn you're fast ;)
thanks
thanks
please let me know when you finish the english translation, then if you want i can translate into dutch
subscribe this topic i will leave note here about it, i guess i'll upload tomorrow with particular fixes, thanks for dutch translation
you can download v0.51 -> http://wosci.googlecode.com/files/wosci_public_v0.51.zip
You must log in to post.