Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Turkish translate for 2.3.4


mustaphaturk

Recommended Posts

Hi,

i am trying to translate to Turkish for version 2.3.4?

Does anyone has files? I am started but it will take some time because i am not good at php or html or .......

and i have some questions:

 

1. first i changed the name of english.php to turkish.php, it should be true and i will translate in the folder of english into turkish too. Which other files should be changed?

 

2. line19

 

@setlocale(LC_ALL, array('tr_TR.UTF-8', 'tr_TR.UTF8', 'enu_usa'));

 

is it true? and what should be enu-usa ?

 

3. line25

 

define('JQUERY_DATEPICKER_I18N_CODE', 'i18n-tr'); // leave empty for en_US; see

 

i am not sure it is "i18n-tr". is it true? if not what should be?

 

4. line47

 

define('CHARSET', 'utf-8');

 

is it enough for turkish language to see properly

 

5. line162

 

define('PASSWORD_HIDDEN', '--HIDDEN--');

 

line181-184

 

define('PREVNEXT_BUTTON_FIRST', '<<FIRST');
define('PREVNEXT_BUTTON_PREV', '[<< Prev]');
define('PREVNEXT_BUTTON_NEXT', '[Next >>]');
define('PREVNEXT_BUTTON_LAST', 'LAST>>');

 

i didn't change anything because it seems something about php or system

 

6. line63

 

define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since');

 

i don't know its usage. Can you say me its usage?

 

7. line87

 

define('JS_REVIEW_TEXT', '* \'Review Text\' en az ' . REVIEW_TEXT_MIN_LENGTH . ' karakter olmalıdır.\n');

 

 

Should i translate this part: '* \'Review Text\'

 

Thanks...

Link to comment
Share on other sites

i have had this error when trying backfront of site in Turkish

 

 

Warning: require(includes/languages/turkish.php): failed to open stream: No such file or directory in /home/masskozmetik.com/***/includes/application_top.php on line 177

Fatal error: require(): Failed opening required 'includes/languages/turkish.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/masskozmetik.com/***/includes/application_top.php on line 177

 

 

i forget to add turkish.php and turkish folder in admin folder

Link to comment
Share on other sites

and new one.....

 

in admin pages now there are 2 languages: English and Turkish

 

main pages work fine but in tools (and many other places) i have same error in Turkish admin pages but in English pages they works.

 

Some examples in Turkish pages says:

 

Banner Manager

 

Fatal error: Class 'objectInfo' not found in /home/masskozmetik.com/admin/banner_manager.php on line 335

 

Action Recorder

 

Fatal error: Class 'objectInfo' not found in /home/masskozmetik.com/admin/action_recorder.php on line 155

 

Who's Online

 

Fatal error: Class 'ObjectInfo' not found in /home/masskozmetik.com/admin/whos_online.php on line 53

Link to comment
Share on other sites

and new one.....

 

in admin pages now there are 2 languages: English and Turkish

 

main pages work fine but in tools (and many other places) i have same error in Turkish admin pages but in English pages they works.

 

Some examples in Turkish pages says:

 

Banner Manager

 

Fatal error: Class 'objectInfo' not found in /home/masskozmetik.com/admin/banner_manager.php on line 335

if ((!isset($HTTP_GET_VARS['bID']) || (isset($HTTP_GET_VARS['bID']) && ($HTTP_GET_VARS['bID'] == $banners['banners_id']))) && !isset($bInfo) && (substr($action, 0, 3) != 'new')) {
        $bInfo_array = array_merge($banners, $info);
        $bInfo = new objectInfo($bInfo_array);
      }

Action Recorder

 

Fatal error: Class 'objectInfo' not found in /home/masskozmetik.com/admin/action_recorder.php on line 155

if ((!isset($HTTP_GET_VARS['aID']) || (isset($HTTP_GET_VARS['aID']) && ($HTTP_GET_VARS['aID'] == $actions['id']))) && !isset($aInfo)) {
      $actions_extra_query = tep_db_query("select identifier from " . TABLE_ACTION_RECORDER . " where id = '" . (int)$actions['id'] . "'");
      $actions_extra = tep_db_fetch_array($actions_extra_query);

      $aInfo_array = array_merge($actions, $actions_extra, array('module' => $module_title));
      $aInfo = new objectInfo($aInfo_array);
    }

Who's Online

 

Fatal error: Class 'ObjectInfo' not found in /home/masskozmetik.com/admin/whos_online.php on line 53

$whos_online_query = tep_db_query("select customer_id, full_name, ip_address, time_entry, time_last_click, last_page_url, session_id from " . TABLE_WHOS_ONLINE);
  while ($whos_online = tep_db_fetch_array($whos_online_query)) {
    $time_online = (time() - $whos_online['time_entry']);
    if ((!isset($HTTP_GET_VARS['info']) || (isset($HTTP_GET_VARS['info']) && ($HTTP_GET_VARS['info'] == $whos_online['session_id']))) && !isset($info)) {
      $info = new ObjectInfo($whos_online);
    }

There are much more errors.

Bu the way i am sorry, i couldn't find where to edit my old post.

Link to comment
Share on other sites

I found something. If i put english.php and english folder to admin/includes/languages only change their names as turkish, they work properly off course in Turkish section but still english. So i should try one by one which file/s aren't translated properly.

 

By the way i write here because if someone do same mistakes, he/she may find this:)

Link to comment
Share on other sites

turkish.php in admin/includes/languages line 17

setlocale(LC_ALL, array('en_US.UTF-8', 'en_US.UTF8', 'enu_usa'));

should be same to work properly, others will be translated.

 

edit: Yes, it works.

edit2: but some places when clicked turning its english page like

Newsletter Manager

Edited by mustaphaturk
Link to comment
Share on other sites

If you see ?_mark_in_black_diamond () in your site's frontpage on my account page please change account.php to:

 

<?php
/*
  $Id$


  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com


  Copyright (c) 2003 osCommerce


  Released under the GNU General Public License
*/


define('NAVBAR_TITLE', 'Hesabım');
define('HEADING_TITLE', 'Üyelik Bilgilerim');


define('OVERVIEW_TITLE', 'Önizleme');
define('OVERVIEW_SHOW_ALL_ORDERS', '(tüm siparişleri göster)');
define('OVERVIEW_PREVIOUS_ORDERS', 'Önceki Siparişler');


define('MY_ACCOUNT_TITLE', 'Hesabım');
define('MY_ACCOUNT_INFORMATION', 'Üyelik Bilgilerini Gör Ya Da Değiştir.');
define('MY_ACCOUNT_ADDRESS_BOOK', 'Adreslerimdeki Bilgileri Gör Ya Da Değiştir.');
define('MY_ACCOUNT_PASSWORD', 'Üyelik Şifremi Değiştir.');


define('MY_ORDERS_TITLE', 'Siparişlerim');
define('MY_ORDERS_VIEW', 'Verdiğim Siparişleri Gör.');


define('EMAIL_NOTIFICATIONS_TITLE', 'E-Mail Hatırlatmaları');
define('EMAIL_NOTIFICATIONS_NEWSLETTERS', 'Zincir maile üye ol ya da üyelikten çık.');
define('EMAIL_NOTIFICATIONS_PRODUCTS', 'Ürün hatırlatma listemi gör ya da değiştir.');
?>
Link to comment
Share on other sites

  • 1 year later...

kusura bakmayın beyler ingilizcem kötü 2.3.4'ü indirdim. kurdum sepeti her yenilediğimde hata alıyordum. turkish.php 'yi açtım en alt satırdaki boşlukları aldım birşey değişmedi. en son olarak Notepad++ ile açtım ve "kodlama " sekmesinden "BOM olmadan UTF-8 olarak kodla" diyerek upload ettim. sorun çözüldü. umarım aynı sorunu yaşıyan arkadaşlara yardımcı olur.

  Ayrıca bir sorum olacak, varsayılan dil Türkçe ayarlamama rağmen site her açılışta ingilizce açılıyor bunun bir çözümünü bilen var mı? Saygılar

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...