lbdublb Posted March 11, 2014 Share Posted March 11, 2014 Hello, I hav ea problem with the danish language on my site http://www.handy-freunde.de/index.php?language=da Putting something into basket leads to a language switch to english...I do not know why...all language files seems to be correctly configured. Reinstall of the danish language brought no changes. Thanks for any helping ideas! Best regards, Lars Quote Link to comment Share on other sites More sharing options...
MrPhil Posted March 11, 2014 Share Posted March 11, 2014 What version of osC? Language handling was fixed only recently, in 2.3.3 or maybe later. It's the application_top.php files. I don't recall hearing about this specific problem, but there were other language problems fixed then. Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 11, 2014 Author Share Posted March 11, 2014 Version 2.3.4. English and German works fine also during the checkout, but danish is a mess... My application_top: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2008 osCommerce Released under the GNU General Public License */ // start the timer for the page parse time log define('PAGE_PARSE_START_TIME', microtime()); // set the level of error reporting error_reporting(E_ALL & ~E_NOTICE); // check support for register_globals if (function_exists('ini_get') && (ini_get('register_globals') == false) && (PHP_VERSION < 4.3) ) { exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. Please use PHP 4.3+ if register_globals cannot be enabled on the server.'); } // load server configuration parameters if (file_exists('includes/local/configure.php')) { // for developers include('includes/local/configure.php'); } else { include('includes/configure.php'); } if (strlen(DB_SERVER) < 1) { if (is_dir('install')) { header('Location: install/index.php'); } } // define the project version --- obsolete, now retrieved with tep_get_version() define('PROJECT_VERSION', 'osCommerce Online Merchant v2.3'); // some code to solve compatibility issues require(DIR_WS_FUNCTIONS . 'compatibility.php'); // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; // set php_self in the local scope $PHP_SELF = (((strlen(ini_get('cgi.fix_pathinfo')) > 0) && ((bool)ini_get('cgi.fix_pathinfo') == false)) || !isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) ? basename($HTTP_SERVER_VARS['PHP_SELF']) : basename($HTTP_SERVER_VARS['SCRIPT_NAME']); if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); } // include the list of project filenames require(DIR_WS_INCLUDES . 'filenames.php'); // include the list of project database tables require(DIR_WS_INCLUDES . 'database_tables.php'); // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } // if gzip_compression is enabled, start to buffer the output if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded = extension_loaded('zlib')) && !headers_sent() ) { if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) { if (PHP_VERSION < '5.4' || PHP_VERSION > '5.4.5') { // see PHP bug 55544 if (PHP_VERSION >= '4.0.4') { ob_start('ob_gzhandler'); } elseif (PHP_VERSION >= '4.0.1') { include(DIR_WS_FUNCTIONS . 'gzip_compression.php'); ob_start(); ob_implicit_flush(); } } } elseif (function_exists('ini_set')) { ini_set('zlib.output_compression_level', GZIP_LEVEL); } } // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { if (strlen(getenv('PATH_INFO')) > 1) { $GET_array = array(); $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF); $vars = explode('/', substr(getenv('PATH_INFO'), 1)); do_magic_quotes_gpc($vars); for ($i=0, $n=sizeof($vars); $i<$n; $i++) { if (strpos($vars[$i], '[]')) { $GET_array[substr($vars[$i], 0, -2)][] = $vars[$i+1]; } else { $HTTP_GET_VARS[$vars[$i]] = $vars[$i+1]; } $i++; } if (sizeof($GET_array) > 0) { while (list($key, $value) = each($GET_array)) { $HTTP_GET_VARS[$key] = $value; } } } } // define general functions used application-wide require(DIR_WS_FUNCTIONS . 'general.php'); require(DIR_WS_FUNCTIONS . 'html_output.php'); // set the cookie domain $cookie_domain = (($request_type == 'NONSSL') ? HTTP_COOKIE_DOMAIN : HTTPS_COOKIE_DOMAIN); $cookie_path = (($request_type == 'NONSSL') ? HTTP_COOKIE_PATH : HTTPS_COOKIE_PATH); // include cache functions if enabled if (USE_CACHE == 'true') include(DIR_WS_FUNCTIONS . 'cache.php'); // include shopping cart class require(DIR_WS_CLASSES . 'shopping_cart.php'); // include navigation history class require(DIR_WS_CLASSES . 'navigation_history.php'); // define how the session functions will be used require(DIR_WS_FUNCTIONS . 'sessions.php'); // set the session name and save path tep_session_name('osCsid'); tep_session_save_path(SESSION_WRITE_DIRECTORY); // set the session cookie parameters if (function_exists('session_set_cookie_params')) { session_set_cookie_params(0, $cookie_path, $cookie_domain); } elseif (function_exists('ini_set')) { ini_set('session.cookie_lifetime', '0'); ini_set('session.cookie_path', $cookie_path); ini_set('session.cookie_domain', $cookie_domain); } @ini_set('session.use_only_cookies', (SESSION_FORCE_COOKIE_USE == 'True') ? 1 : 0); // set the session ID if it exists if (isset($HTTP_POST_VARS[tep_session_name()])) { tep_session_id($HTTP_POST_VARS[tep_session_name()]); } elseif ( ($request_type == 'SSL') && isset($HTTP_GET_VARS[tep_session_name()]) ) { tep_session_id($HTTP_GET_VARS[tep_session_name()]); } // start the session $session_started = false; if (SESSION_FORCE_COOKIE_USE == 'True') { tep_setcookie('cookie_test', 'please_accept_for_session', time()+60*60*24*30, $cookie_path, $cookie_domain); if (isset($HTTP_COOKIE_VARS['cookie_test'])) { tep_session_start(); $session_started = true; } } elseif (SESSION_BLOCK_SPIDERS == 'True') { $user_agent = strtolower(getenv('HTTP_USER_AGENT')); $spider_flag = false; if (tep_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=sizeof($spiders); $i<$n; $i++) { if (tep_not_null($spiders[$i])) { if (is_integer(strpos($user_agent, trim($spiders[$i])))) { $spider_flag = true; break; } } } } if ($spider_flag == false) { tep_session_start(); $session_started = true; } } else { tep_session_start(); $session_started = true; } if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) { extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS); } // initialize a session token if (!tep_session_is_registered('sessiontoken')) { $sessiontoken = md5(tep_rand() . tep_rand() . tep_rand() . tep_rand()); tep_session_register('sessiontoken'); } // set SID once, even if empty $SID = (defined('SID') ? SID : ''); // verify the ssl_session_id if the feature is enabled if ( ($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == true) && ($session_started == true) ) { $ssl_session_id = getenv('SSL_SESSION_ID'); if (!tep_session_is_registered('SSL_SESSION_ID')) { $SESSION_SSL_ID = $ssl_session_id; tep_session_register('SESSION_SSL_ID'); } if ($SESSION_SSL_ID != $ssl_session_id) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_SSL_CHECK)); } } // verify the browser user agent if the feature is enabled if (SESSION_CHECK_USER_AGENT == 'True') { $http_user_agent = getenv('HTTP_USER_AGENT'); if (!tep_session_is_registered('SESSION_USER_AGENT')) { $SESSION_USER_AGENT = $http_user_agent; tep_session_register('SESSION_USER_AGENT'); } if ($SESSION_USER_AGENT != $http_user_agent) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_LOGIN)); } } // verify the IP address if the feature is enabled if (SESSION_CHECK_IP_ADDRESS == 'True') { $ip_address = tep_get_ip_address(); if (!tep_session_is_registered('SESSION_IP_ADDRESS')) { $SESSION_IP_ADDRESS = $ip_address; tep_session_register('SESSION_IP_ADDRESS'); } if ($SESSION_IP_ADDRESS != $ip_address) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_LOGIN)); } } // create the shopping cart if (!tep_session_is_registered('cart') || !is_object($cart)) { tep_session_register('cart'); $cart = new shoppingCart; } // include currencies class and create an instance require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); // include the mail classes require(DIR_WS_CLASSES . 'mime.php'); require(DIR_WS_CLASSES . 'email.php'); // set the language if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) { if (!tep_session_is_registered('language')) { tep_session_register('language'); tep_session_register('languages_id'); } include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) { $lng->set_language($HTTP_GET_VARS['language']); } else { $lng->get_browser_language(); } $language = $lng->language['directory']; $languages_id = $lng->language['id']; } // include the language translations $_system_locale_numeric = setlocale(LC_NUMERIC, 0); require(DIR_WS_LANGUAGES . $language . '.php'); setlocale(LC_NUMERIC, $_system_locale_numeric); // Prevent LC_ALL from setting LC_NUMERIC to a locale with 1,0 float/decimal values instead of 1.0 (see bug #634) // currency if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) { if (!tep_session_is_registered('currency')) tep_session_register('currency'); if (isset($HTTP_GET_VARS['currency']) && $currencies->is_set($HTTP_GET_VARS['currency'])) { $currency = $HTTP_GET_VARS['currency']; } else { $currency = ((USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && $currencies->is_set(LANGUAGE_CURRENCY)) ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; } } // navigation history if (!tep_session_is_registered('navigation') || !is_object($navigation)) { tep_session_register('navigation'); $navigation = new navigationHistory; } $navigation->add_current_page(); // action recorder include('includes/classes/action_recorder.php'); // Shopping cart actions if (isset($HTTP_GET_VARS['action'])) { // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($HTTP_GET_VARS['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id'); } else { $parameters = array('action', 'pid'); } } switch ($HTTP_GET_VARS['action']) { // customer wants to update the product quantity in their shopping cart case 'update_product' : for ($i=0, $n=sizeof($HTTP_POST_VARS['products_id']); $i<$n; $i++) { if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) { $cart->remove($HTTP_POST_VARS['products_id'][$i]); } else { $attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : ''; $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $attributes = isset($HTTP_POST_VARS['id']) ? $HTTP_POST_VARS['id'] : ''; $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+1, $attributes); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // customer removes a product from their shopping cart case 'remove_product' : if (isset($HTTP_GET_VARS['products_id'])) { $cart->remove($HTTP_GET_VARS['products_id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; case 'notify' : if (tep_session_is_registered('customer_id')) { if (isset($HTTP_GET_VARS['products_id'])) { $notify = $HTTP_GET_VARS['products_id']; } elseif (isset($HTTP_GET_VARS['notify'])) { $notify = $HTTP_GET_VARS['notify']; } elseif (isset($HTTP_POST_VARS['notify'])) { $notify = $HTTP_POST_VARS['notify']; } else { tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int)$notify[$i] . "' and customers_id = '" . (int)$customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] < 1) { tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . (int)$notify[$i] . "', '" . (int)$customer_id . "', now())"); } } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'notify_remove' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['products_id'])) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and customers_id = '" . (int)$customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { tep_db_query("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and customers_id = '" . (int)$customer_id . "'"); } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); } else { $cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; } } // include the who's online functions require(DIR_WS_FUNCTIONS . 'whos_online.php'); tep_update_whos_online(); // include the password crypto functions require(DIR_WS_FUNCTIONS . 'password_funcs.php'); // include validation functions (right now only email address) require(DIR_WS_FUNCTIONS . 'validations.php'); // split-page-results require(DIR_WS_CLASSES . 'split_page_results.php'); // infobox require(DIR_WS_CLASSES . 'boxes.php'); // auto activate and expire banners require(DIR_WS_FUNCTIONS . 'banner.php'); tep_activate_banners(); tep_expire_banners(); // auto expire special products require(DIR_WS_FUNCTIONS . 'specials.php'); tep_expire_specials(); require(DIR_WS_CLASSES . 'osc_template.php'); $oscTemplate = new oscTemplate(); // calculate category path if (isset($HTTP_GET_VARS['cPath'])) { $cPath = $HTTP_GET_VARS['cPath']; } elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) { $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']); } else { $cPath = ''; } if (tep_not_null($cPath)) { $cPath_array = tep_parse_category_path($cPath); $cPath = implode('_', $cPath_array); $current_category_id = $cPath_array[(sizeof($cPath_array)-1)]; } else { $current_category_id = 0; } // include the breadcrumb class and start the breadcrumb trail require(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); // add category names or the manufacturer name to the breadcrumb trail if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'])); } } // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; ?> Quote Link to comment Share on other sites More sharing options...
MrPhil Posted March 11, 2014 Share Posted March 11, 2014 2.3.3.4? That's the latest version. How about the beginning of your Danish language support file (danish.php, I think)? Maybe it has an odd setting for locale or language or encoding. Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 12, 2014 Author Share Posted March 12, 2014 Here is the danish.php: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2013 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Examples: // on RedHat try 'en_US' // on FreeBSD try 'en_US.ISO_8859-1' // on Windows try 'en', or 'English' //@setlocale(LC_TIME, 'da_DK.ISO_8859-1'); @setlocale(LC_TIME, 'da_DK.UTF-8'); define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'd/m/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); define('JQUERY_DATEPICKER_I18N_CODE', ''); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization define('JQUERY_DATEPICKER_FORMAT', 'dd.mm.yy'); // see http://docs.jquery.com/UI/Datepicker/formatDate //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'DKK'); // Global entries for the <html> tag //define('HTML_PARAMS','dir="LTR" lang="en"'); define('HTML_PARAMS','dir="LTR" lang="dk"'); // charset for web pages and emails //define('CHARSET', 'iso-8859-1'); define('CHARSET', 'UTF-8'); // page title define('TITLE', STORE_NAME); // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Opret Konto'); define('HEADER_TITLE_MY_ACCOUNT', 'Min Konto'); define('HEADER_TITLE_CART_CONTENTS', 'Indkøbskurv'); define('HEADER_TITLE_CHECKOUT', 'Til Kassen'); define('HEADER_TITLE_TOP', 'Forside'); define('HEADER_TITLE_CATALOG', 'Butik'); define('HEADER_TITLE_LOGOFF', 'Log Af'); define('HEADER_TITLE_LOGIN', 'Log På'); define('HEADER_TITLE_HOME', 'Home'); define('STORE', 'Store'); define('INPUT_SEARCH', 'Søg...'); define('BOX_HEADING_WHATS_NEW', 'New Products'); define('BOX_HEADING_SPECIALS', 'Specials'); define('CATEGORIES', 'Mobiltelefoner & Tablets'); define('BOX_INFORMATION_CONTACT', 'Contact'); define('INFO_1', 'Impressum & Kontakt'); define('INFO_2', 'AGB'); define('INFO_3', 'Service & Retur'); define('INFO_4', 'Betalning & Frakt'); define('REFERENCES', 'Sikkerhed'); define('MANU', 'Manufacturer'); define('AKTIONEN', 'Stay in touch'); define('NEWS', 'Join our Newsletter'); define('NEWS_SLOGAN', 'Stay updated with Offers & New Arrivals'); define('SHOPS', 'Store Finder'); define('SHOPS_SLOGAN', 'Find our stores'); define('TEXT_CART_EMPTY', 'Indkøbskurven er tom.'); define('PRODUCT_TITLE_CART', 'Produkt'); define('PRODUCT_QTY_CART', 'Mængde'); define('PRODUCT_UPDATE_CART', 'Opdatering'); define('PRODUCT_REMOVE_CART', 'Fjerne'); define('ENTRY_TOTAL_CART', 'Pris incl. moms'); define('TABLE_HEADING_REMOVE', 'Fjerne'); define('TABLE_HEADING_QUANTITY', 'Mængde'); define('TABLE_HEADING_MODEL', 'Varenummer'); define('TABLE_HEADING_PRODUCTS', 'Produkt'); define('TABLE_HEADING_TOTAL', 'Sum'); define('TEXT_ALTERNATIVE_CHECKOUT_METHODS', '- ELLER -'); define('TEXT_OR', 'eller'); define('TEXT_REMOVE', 'fjerne'); define('LATEST_PRODUCTS', 'Nye Produkter'); //define('BOX_CONFIGURATION_STORE_LOGO', 'Butik Logo'); // footer text in includes/footer.php define('FOOTER_TEXT_REQUESTS_SINCE', 'Hits siden'); // text for gender define('MALE', 'Mand'); define('FEMALE', 'Kvinde'); define('MALE_ADDRESS', 'Hr.'); define('FEMALE_ADDRESS', 'Fru'); // text for date of birth example define('DOB_FORMAT_STRING', 'dd/mm/yyyy'); // categories box text in includes/boxes/categories.php define('BOX_HEADING_CATEGORIES', 'Varegrupper'); // manufacturers box text in includes/boxes/manufacturers.php define('BOX_HEADING_MANUFACTURERS', 'Producenter'); // whats_new box text in includes/boxes/whats_new.php define('BOX_HEADING_WHATS_NEW', 'Nyheder'); // quick_find box text in includes/boxes/quick_find.php define('BOX_HEADING_SEARCH', 'Hurtig Søg'); define('BOX_SEARCH_TEXT', 'Brug stikord til at finde varen du er på udkig efter.'); define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanceret Søg'); // specials box text in includes/boxes/specials.php define('BOX_HEADING_SPECIALS', 'Tilbud'); /* // reviews box text in includes/boxes/reviews.php define('BOX_HEADING_REVIEWS', 'Anmeldelser'); define('BOX_REVIEWS_WRITE_REVIEW', 'Anmeld dette produkt'); define('BOX_REVIEWS_NO_REVIEWS', 'Der er i øjeblikket ingen anmeldelse til dette produkt'); define('BOX_REVIEWS_TEXT_OF_5_STARS', '%s af 5 Stjerner!'); // shopping_cart box text in includes/boxes/shopping_cart.php define('BOX_HEADING_SHOPPING_CART', 'Indkøbskurv'); define('BOX_SHOPPING_CART_EMPTY', '0 Varer'); // order_history box text in includes/boxes/order_history.php define('BOX_HEADING_CUSTOMER_ORDERS', 'Tidligere ordre'); // best_sellers box text in includes/boxes/best_sellers.php define('BOX_HEADING_BESTSELLERS', 'Top Sælgere'); define('BOX_HEADING_BESTSELLERS_IN', 'Topsælgere i<br> '); // notifications box text in includes/boxes/products_notifications.php define('BOX_HEADING_NOTIFICATIONS', 'Advisering'); define('BOX_NOTIFICATIONS_NOTIFY', 'Advisér mig om opdateringer på <b>%s</b>'); define('BOX_NOTIFICATIONS_NOTIFY_REMOVE', 'Ingen advisering for <b>%s</b>'); // manufacturer box text define('BOX_HEADING_MANUFACTURER_INFO', 'Producent Info'); define('BOX_MANUFACTURER_INFO_HOMEPAGE', '%s Hjemmeside'); define('BOX_MANUFACTURER_INFO_OTHER_PRODUCTS', 'Andre Produkter'); // languages box text in includes/boxes/languages.php define('BOX_HEADING_LANGUAGES', 'Sprog'); // currencies box text in includes/boxes/currencies.php define('BOX_HEADING_CURRENCIES', 'Valuta'); // information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Fortrolighed'); define('BOX_INFORMATION_CONDITIONS', 'Anvendelse'); define('BOX_INFORMATION_SHIPPING', 'Forsendelse & Retur'); define('BOX_INFORMATION_CONTACT', 'Kontakt Os'); // tell a friend box text in includes/boxes/tell_a_friend.php define('BOX_HEADING_TELL_A_FRIEND', 'Anbefal til en ven'); define('BOX_TELL_A_FRIEND_TEXT', 'Fortæl en ven om denne vare.'); */ // checkout procedure text define('CHECKOUT_BAR_DELIVERY', 'Forsendelses Information'); define('CHECKOUT_BAR_PAYMENT', 'Betalings Information'); define('CHECKOUT_BAR_CONFIRMATION', 'Bekræft'); define('CHECKOUT_BAR_FINISHED', 'Færdig!'); // pull down default text define('PULL_DOWN_DEFAULT', 'Vælg'); define('TYPE_BELOW', 'Indtast nedenfor'); // javascript messages define('JS_ERROR', 'Der er opstået en fejl under behandlingen af din formular!\nRet venligst følgende:\n\n'); define('JS_REVIEW_TEXT', '* \'Anmeldelsen\' skal mindst havet ' . REVIEW_TEXT_MIN_LENGTH . ' tegn.\n'); define('JS_REVIEW_RATING', '* Du skal give din anmeldelse en karakter.\n'); define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Vælg venligst en betalings-metode for din ordre.\n'); define('JS_ERROR_SUBMITTED', 'Denne form er allerede afsendt. Klik på Ok og vent på at processen afslutter.'); define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Du har ikke valgt betalings måde!.'); define('CATEGORY_COMPANY', 'Firma'); define('CATEGORY_PERSONAL', 'Personlig'); define('CATEGORY_ADDRESS', 'Adresse'); define('CATEGORY_CONTACT', 'Kontakt'); define('CATEGORY_OPTIONS', 'Mulige tilvalg'); define('CATEGORY_PASSWORD', 'Password'); define('ENTRY_COMPANY', 'Firma:'); //define('ENTRY_COMPANY_ERROR', ''); define('ENTRY_COMPANY_TEXT', ''); define('ENTRY_GENDER', 'Køn:'); define('ENTRY_GENDER_ERROR', 'Vælg venligst køn.'); define('ENTRY_GENDER_TEXT', '*'); define('ENTRY_FIRST_NAME', 'Fornavn: '); define('ENTRY_FIRST_NAME_ERROR', 'Fornavn skal være min ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' tegn.'); define('ENTRY_FIRST_NAME_TEXT', '*'); define('ENTRY_LAST_NAME', 'Efternavn:'); define('ENTRY_LAST_NAME_ERROR', 'Efternavn skal være min ' . ENTRY_LAST_NAME_MIN_LENGTH . ' tegn.'); define('ENTRY_LAST_NAME_TEXT', '*'); define('ENTRY_DATE_OF_BIRTH', 'Fødselsdag:'); define('ENTRY_DATE_OF_BIRTH_ERROR', 'Din fødselsdato skal være efter formatet DD.MM.ÅÅÅÅ (Fx 21.05.1970)'); define('ENTRY_DATE_OF_BIRTH_TEXT', '* (Fx 21/05/1970)'); define('ENTRY_EMAIL_ADDRESS', 'E-Mail Adresse:'); define('ENTRY_EMAIL_ADDRESS_ERROR', 'E-mail adressee skal være min ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' tegn'); define('ENTRY_EMAIL_ADDRESS_CHECK_ERROR', 'Din email adresse ser ikke ud til at være korrekt!'); define('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS', 'E-mail adressen eksistere allerede! Log venligst ind med E-mail adressen, eller opret kontoen med en anden E-mail adresse'); define('ENTRY_EMAIL_ADDRESS_TEXT', '*'); define('ENTRY_STREET_ADDRESS', 'Gade: '); define('ENTRY_STREET_ADDRESS_ERROR', 'Adresse skal være min ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' tegn'); define('ENTRY_STREET_ADDRESS_TEXT', '*'); define('ENTRY_SUBURB', 'Bydel:'); //define('ENTRY_SUBURB_ERROR', ''); define('ENTRY_SUBURB_TEXT', ''); define('ENTRY_POST_CODE', 'Postnr:'); define('ENTRY_POST_CODE_ERROR', 'Postnr. skal være min ' . ENTRY_POSTCODE_MIN_LENGTH . ' tegn'); define('ENTRY_POST_CODE_TEXT', '*'); define('ENTRY_CITY', 'By:'); define('ENTRY_CITY_ERROR', 'Bynavn skal være min ' . ENTRY_CITY_MIN_LENGTH . ' tegn'); define('ENTRY_CITY_TEXT', '*'); define('ENTRY_STATE', 'Stat:'); define('ENTRY_STATE_ERROR', 'Stat skal bestå af minimum ' . ENTRY_STATE_MIN_LENGTH . ' bogstaver/tegn.'); define('ENTRY_STATE_ERROR_SELECT', 'Vælg venligst en stat fra rullened-menuen.'); define('ENTRY_STATE_TEXT', '*'); define('ENTRY_COUNTRY', 'Land:'); define('ENTRY_COUNTRY_ERROR', 'Du skal vælge et land fra rullened-menuen.'); define('ENTRY_COUNTRY_TEXT', '*'); define('ENTRY_TELEPHONE_NUMBER', 'Telefon nummer: '); define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Telefonnr. skal være min ' . ENTRY_TELEPHONE_MIN_LENGTH . ' cifre'); define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); define('ENTRY_FAX_NUMBER', 'Fax nummer:'); //define('ENTRY_FAX_NUMBER_ERROR', ''); define('ENTRY_FAX_NUMBER_TEXT', ''); define('ENTRY_NEWSLETTER', 'Nyhedsbrev:'); define('ENTRY_NEWSLETTER_TEXT', ''); define('ENTRY_NEWSLETTER_YES', 'Tilmeldt'); define('ENTRY_NEWSLETTER_NO', 'Frameldt'); //define('ENTRY_NEWSLETTER_ERROR', ''); define('ENTRY_PASSWORD', 'Password:'); define('ENTRY_PASSWORD_ERROR', 'Password skal være min ' . ENTRY_PASSWORD_MIN_LENGTH . ' tegn'); define('ENTRY_PASSWORD_ERROR_NOT_MATCHING', 'Password bekræftelsen skal være den samme som dit password.'); define('ENTRY_PASSWORD_TEXT', '*'); define('ENTRY_PASSWORD_CONFIRMATION', 'Password:'); define('ENTRY_PASSWORD_CONFIRMATION_TEXT', '*'); define('ENTRY_PASSWORD_CURRENT', 'Nuværende Password:'); define('ENTRY_PASSWORD_CURRENT_TEXT', '*'); define('ENTRY_PASSWORD_CURRENT_ERROR', 'Dit password skal bestå af minimum ' . ENTRY_PASSWORD_MIN_LENGTH . ' bogstaver/tegn.'); define('ENTRY_PASSWORD_NEW', 'Nyt Password:'); define('ENTRY_PASSWORD_NEW_TEXT', '*'); define('ENTRY_PASSWORD_NEW_ERROR', 'Dit nye password skal bestå af minimum ' . ENTRY_PASSWORD_MIN_LENGTH . ' bogstaver/tegn.'); define('ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING', 'Password bekræftigelsen skal være det samme som dit nye password.'); define('PASSWORD_HIDDEN', '--SKJULT--'); define('FORM_REQUIRED_INFORMATION', '* Skal udfyldes'); // constants for use in tep_prev_next_display function define('TEXT_RESULT_PAGE', 'Søgningen fandt:'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Viser <b>%d</b> til <b>%d</b> (af <b>%d</b> produkter)'); define('TEXT_DISPLAY_NUMBER_OF_ORDERS', 'Viser <b>%d</b> til <b>%d</b> (af <b>%d</b> ordre)'); define('TEXT_DISPLAY_NUMBER_OF_REVIEWS', 'Viser <b>%d</b> til <b>%d</b> (af <b>%d</b> anmeldelser)'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW', 'Viser <b>%d</b> til <b>%d</b> (af <b>%d</b> nye varer)'); define('TEXT_DISPLAY_NUMBER_OF_SPECIALS', 'Viser <b>%d</b> til <b>%d</b> (af <b>%d</b> tilbud)'); define('PREVNEXT_TITLE_FIRST_PAGE', 'Første side'); define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Forrige side'); define('PREVNEXT_TITLE_NEXT_PAGE', 'Næste side'); define('PREVNEXT_TITLE_LAST_PAGE', 'Sidste side'); define('PREVNEXT_TITLE_PAGE_NO', 'Side %d'); define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Forrige del af %d Sider'); define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Næste del af %d sider'); define('PREVNEXT_BUTTON_FIRST', '<<Første'); define('PREVNEXT_BUTTON_PREV', '[<< Forrige]'); define('PREVNEXT_BUTTON_NEXT', '[Næste >>]'); define('PREVNEXT_BUTTON_LAST', 'Sidste>>'); define('IMAGE_BUTTON_ADD_ADDRESS', 'Tilføj adresse'); define('IMAGE_BUTTON_ADDRESS_BOOK', 'Adressebog'); define('IMAGE_BUTTON_BACK', 'Tilbage'); define('IMAGE_BUTTON_BUY_NOW', 'Køb Nu'); define('IMAGE_BUTTON_CHANGE_ADDRESS', 'Ret adresse'); define('IMAGE_BUTTON_CHECKOUT', 'Til Kassen'); define('IMAGE_BUTTON_CONFIRM_ORDER', 'Bekræft ordre'); define('IMAGE_BUTTON_CONTINUE', 'Fortsæt'); define('IMAGE_BUTTON_CONTINUE_SHOPPING', 'Lad mig shoppe lidt mere'); define('IMAGE_BUTTON_DELETE', 'Slet'); define('IMAGE_BUTTON_EDIT_ACCOUNT', 'Ret medlemskonto'); define('IMAGE_BUTTON_HISTORY', 'Tidligere ordrer'); define('IMAGE_BUTTON_LOGIN', 'Log på'); define('IMAGE_BUTTON_IN_CART', 'I indkøbskurven'); define('IMAGE_BUTTON_NOTIFICATIONS', 'Adviséringer'); define('IMAGE_BUTTON_QUICK_FIND', 'Hurtig tilføj'); define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Slet advisering'); define('IMAGE_BUTTON_REVIEWS', 'Anmeldelser'); define('IMAGE_BUTTON_SEARCH', 'Søg'); define('IMAGE_BUTTON_SHIPPING_OPTIONS', 'Forsendelses valg'); define('IMAGE_BUTTON_TELL_A_FRIEND', 'Anbefal en ven'); define('IMAGE_BUTTON_UPDATE', 'Opdatér'); define('IMAGE_BUTTON_UPDATE_CART', 'Opdatér indkøbskurv'); define('IMAGE_BUTTON_WRITE_REVIEW', 'Skriv anmeldelse'); //define('IMAGE_BUTTON_REQUEST', 'Anmodning'); define('SMALL_IMAGE_BUTTON_DELETE', 'Slet'); define('SMALL_IMAGE_BUTTON_EDIT', 'Ret'); define('SMALL_IMAGE_BUTTON_VIEW', 'Vis'); define('ICON_ARROW_RIGHT', 'mere'); define('ICON_CART', 'I indkøbskurv'); define('ICON_ERROR', 'Fejl!'); define('ICON_SUCCESS', 'Success'); define('ICON_WARNING', 'Advarsel'); define('TEXT_GREETING_PERSONAL', 'Hej <span class="greetUser">%s!</span><br>Kunne du tænke dig at se <a href="%s"><u> de seneste nyheder</u></a>?<br>'); define('TEXT_GREETING_PERSONAL_RELOGON', '<small>Jeg er ikke %s, så jeg <a href="%s"><u>logger lige på</u></a> med mine egne konto oplysninger.</small>'); define('TEXT_GREETING_GUEST', 'Velkommen kære <span class="greetUser">gæst!</span>'); define('TEXT_SORT_PRODUCTS', 'Sortér produkterne '); define('TEXT_DESCENDINGLY', 'Faldende'); define('TEXT_ASCENDINGLY', 'stigende'); define('TEXT_BY', ' efter '); define('TEXT_REVIEW_BY', 'efter %s'); define('TEXT_REVIEW_WORD_COUNT', '%s ord'); define('TEXT_REVIEW_RATING', 'Rating: %s [%s]'); define('TEXT_REVIEW_DATE_ADDED', 'Tilføjet dato: %s'); define('TEXT_NO_REVIEWS', 'Der er i øjeblikket ingen anmeldelser.'); define('TEXT_NO_NEW_PRODUCTS', 'Der er i øjeblikket ingen nyheder.'); define('TEXT_UNKNOWN_TAX_RATE', 'Ukendt moms-værdi'); define('TEXT_REQUIRED', '<span class="errorText">Skal udfyldes</span>'); define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</b></font>'); /* define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Warning: Installation directory exists at: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Please remove this directory for security reasons.'); define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'); define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.'); define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . tep_session_save_path() . '. Sessions will not work until the right user permissions are set.'); define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.'); define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.'); */ define('TEXT_CCVAL_ERROR_INVALID_DATE', 'Ugyldig udløbs-dato for kreditkortet.<br>Kontroller dato og prøv igen.'); define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'Ugyldigt kreditkortnummer.<br>Kontroller nummeret og prøv igen.'); define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'De første 4 cifre er indtastet som: %s<br>Hvis det er korrekt, er kortet ikke en type vi modtager.<br>Er det ikke korrekt, så prøv igen.'); define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.shopwebshop.eu/osc_shop/catalog/" target="_blank">shopwebshop.eu</a>'); /* //Dankort define('CHECKOUT_BAR_ONLINE_PAYMENT', 'Transaktion'); // Added by JHK define('IMAGE_BUTTON_PBSCC_ORDER', 'Online betaling'); // Added by JHK //BOF MVS define('MULTIPLE_SHIP_METHODS_TITLE', 'Kombineret forsendelse'); define('IMAGE_BUTTON_RESET', 'Reset'); define('IMAGE_BUTTON_CLOSE', 'Luk'); define('IMAGE_BUTTON_SHIP_ESTIMATOR', 'Beregn forsendelsesomkostninger'); define('TEXT_SHIP_ESTIMATOR', 'Beregn forsendelsesomkostninger'); //EOF MVS */ //----- BEGINNING OF ADDITION: MATC -----// define('MATC_CONDITION_AGREEMENT', 'Jeg har læst <a href="%s" target="_blank"><strong><u>Vilkår og betingelser</u></strong></a> og jeg er enig til dem: '); define('MATC_HEADING_CONDITIONS', 'Vilkår og betingelser aftale'); define('MATC_ERROR', 'Du skal acceptere vores vilkår og betingelser for at fortsætte.'); define('JS_MATC_ERROR', '* Du skal acceptere vores vilkår og betingelser for at fortsætte.'); //----- BEGINNING END ADDITION: MATC -----// /* define('FOOTER_TEXT_QUERIES_COUNT', 'Queries count:'); define('EMAIL_TEXT_SUBJECT', 'Nyheder om din ordre på ' . STORE_NAME); define('EMAIL_TEXT_ORDER_NUMBER', 'Ordre:'); define('EMAIL_TEXT_INVOICE_URL', 'For yderligere oplysninger om din ordre på linket:'); define('EMAIL_TEXT_DATE_ORDERED', 'Ordredato:'); define('EMAIL_TEXT_STATUS_UPDATE', 'Status for din ordre er blevet ændret.' . "\n\n" . 'Ny Status: %s' . "\n\n" . 'Hvis du har spørgsmål vedrørende din ordre, bedes du svare på denne mail.' . "\n\n"); define('EMAIL_SIGNATUR', 'venlig hilsen' . "\n\n" . 'Din ' . STORE_NAME . '-hold' . "\n\n" . STORE_NAME . "\n". 'PUR YOUR ADDRESS HERE'); define('EMAIL_TEXT_COMMENTS_UPDATE', 'Noter og kommentarer til din ordre:' . "\n\n%s\n\n"); define('EMAIL_TEXT_PRODUCTS', 'Produkter'); define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Leveringsadresse'); define('EMAIL_TEXT_BILLING_ADDRESS', 'Faktureringsadresse'); define('EMAIL_TEXT_PAYMENT_METHOD', 'Betalingsmetode'); define('EMAIL_PAYPAL_PENDING_NOTICE', 'Din betaling er i øjeblikket verserende. Vi sender dig en kopi af din ordre, når betalingen er godkendt.'); define('EMAIL_TEXT_SUBTOTAL', 'Sub-Total:'); define('EMAIL_TEXT_TAX', 'Moms: '); define('EMAIL_TEXT_SHIPPING', 'Forsendelse: '); define('EMAIL_TEXT_TOTAL', 'Total: '); define('EMAIL_TEXT_SUBJECT_TRACK', STORE_NAME .' levering'); define('EMAIL_TEXT_TRACK', 'Din ordre er blevet afsendt af #carrier#.' . "\n\n" . 'Du kan spore din pakke med pakkenummer: '); define('EMAIL_TEXT_TRACK_NACHTRAG',' .'. "\n\n" . 'Vigtigt: Når du modtager pakken, kan du tjekke pakken grundigt for udvendige skader. Hvis der er nogen skader, skal du få en skriftlig bekræftelse fra pakkebudet om at pakken er leveret i en dårlig stand. Ellers er vi ikke ansvarlige for fejl eller tabte genstande. Under alle omstændigheder bedes du straks kontakte os. ' . "\n\n"); */ ?> Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted March 12, 2014 Share Posted March 12, 2014 (edited) Have you tried to change this define('HTML_PARAMS','dir="LTR" lang="dk"'); to this define('HTML_PARAMS','dir="LTR" lang="da"'); Edited March 12, 2014 by Tsimi Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 12, 2014 Author Share Posted March 12, 2014 I tried it, but no change :( Quote Link to comment Share on other sites More sharing options...
MrPhil Posted March 12, 2014 Share Posted March 12, 2014 @setlocale(LC_TIME, 'da_DK.UTF-8'); tells the system to use Danish settings and language, with UTF-8 encoding. Assuming your language files are written in UTF-8, and the pages overall are UTF-8 display, that looks right. Even so, I don't see anything that would switch you to English in some cases. BTW, I don't like using '@', because it hides error messages. You could try removing the '@' from in front of setlocale, and see if you get any error messages. I'm concerned about the following code in application_top.php: if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) { $lng->set_language($HTTP_GET_VARS['language']); } else { $lng->get_browser_language(); } Do you see a link with language=en or similar when doing shopping cart operations? If not, it looks like it's using the browser's language (default English?) to select the language. I will try to remember to compare your application_top with a stock 2.3.3.4 version when I get home tonight. You said that German (de) works OK, without unexpected switching to English? That would suggest that the base code and the German language pack are OK, and that there's something odd with the Danish language pack. Perhaps someone could compare German and Danish and see if there are any code differences, beyond the obvious different text. What is the history of this store? What was the original installation version, and how was it updated to 2.3.3.4, or is it a direct 2.3.3.4 install? Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 12, 2014 Author Share Posted March 12, 2014 I tried removing the @, but no error messages came up. I think it is not really switching language at all. If I am in danish mode, put something into the basket and go to shopping cart it shows me all in danish, that is defined in the danish.php, but the boxes, shopping_cart (not right now, because I shifted somesdefines in danish.php) etc. are in english. If I go further the checkout_process (login.php and later checkout_shipping etc.) everything is in english... language=en or ...da etc. is only shown in link bar when I change the language, but I have choosen danish, german, english in browser in this order of priority. I cannot see any difference of danish.php and german.php. The store is 2.3.3 and was updated to 2.3.3.1, 2.3.3.2, 2.3.3.3 and 2.3.3.4 right after shop installation. Many Thanks! Quote Link to comment Share on other sites More sharing options...
MrPhil Posted March 13, 2014 Share Posted March 13, 2014 The "set language" section is entered only if you do not have a 'language' session set, or you have language=XX in the URL Query String. Do you know if you are having any problems with sessions (perhaps related to a recent PHP upgrade)? You said that you do not see language=en or anything similar when clicking on the link to put something in the basket. If language=XX is given in the link, the language is set to XX. Otherwise, presumably there is no existing language set (there was no language session), so the browser's default language setting is used (which is frequently English). Your latest post was a little confusing to me. Are you saying that simply putting something into the basket is not in fact changing the language to English, but you are using (in Danish) some titles and such that have not been translated from English to Danish? But when you actually log in, everything does go to English? I think at that point you may actually be setting or changing sessions from what you had as a guest (not logged in), which could conceivably clear the 'language' session, forcing you to go through the "set language" section. Since you don't have a language=XX Query String at that point, the only thing application_top can do is ask the browser what language to use. If that's what's happening, it could be considered an osC design problem. You say you're sure that's Danish and not English? Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 13, 2014 Author Share Posted March 13, 2014 Even if I put language=da manually into the url, the boxes titles are still in english: http://www.handy-freunde.de/shopping_cart.php?language=da http://www.handy-freunde.de/shopping_cart.php?language=de AND http://www.handy-freunde.de/shopping_cart.php?language=en are working fine. The problem only appears, if I put something into the basket. If the basket is empty, it shows everything correctly in danish on shopping_cart.php. So, if I remove any product from basket and choose danish as languae again, everything is translated correctly in shopping_cart.php... Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 15, 2014 Author Share Posted March 15, 2014 Even if I put language=da manually into the url, the boxes titles are still in english: http://www.handy-freunde.de/shopping_cart.php?language=da http://www.handy-freunde.de/shopping_cart.php?language=de AND http://www.handy-freunde.de/shopping_cart.php?language=en are working fine. The problem only appears, if I put something into the basket. If the basket is empty, it shows everything correctly in danish on shopping_cart.php. So, if I remove any product from basket and choose danish as languae again, everything is translated correctly in shopping_cart.php... Any ideas? Quote Link to comment Share on other sites More sharing options...
♥joli1811 Posted March 15, 2014 Share Posted March 15, 2014 Beginning to wonder if this is something to do with the cookie addon that you have It is a difficult and strange problem looks to me the minute the site stores a cookie it reverts to English so maybe some type of session problem would be looking first at application_top.php and the configure.php and maybe first disabling the cookie warning to debug It is a highly modified template have you asked your template provider ? Besides that there is a strong chance that the problem lies with the danish language files no quick solution maybe trying another front end language pack would help to debug Upon further thought as it seems to work Ok with the English and German it does tend to suggest that something is wrong with the danish language pack is there another one available to test ? Regards Joli Quote To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
♥joli1811 Posted March 15, 2014 Share Posted March 15, 2014 (edited) Few mini changes the original really does look ok but no harm to test @setlocale(LC_TIME, 'da_DK.UTF-8', 'Danish'); define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'd/m/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); define('JQUERY_DATEPICKER_I18N_CODE', ''); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization define('JQUERY_DATEPICKER_FORMAT', 'dd.mm.yy'); // see http://docs.jquery.com/UI/Datepicker/formatDate //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'DKK'); // Global entries for the <html> tag //define('HTML_PARAMS','dir="LTR" lang="en"'); define('HTML_PARAMS','dir="ltr" lang="dk"'); // charset for web pages and emails //define('CHARSET', 'iso-8859-1'); define('CHARSET', 'utf-8'); // page title PS also a long shot here but replace your include/language/danish/shopping_cart.php temporarily with the standard English just in case there is a bad code and he is reverting to English highly unlikely but guess that is part of debugging Edited March 15, 2014 by joli1811 Quote To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
MrPhil Posted March 16, 2014 Share Posted March 16, 2014 Data point: I followed the link above (shopping_cart.php?language=da) and answered "No" to both cookie questions. Everything displayed in Danish. I put an iPhone in the cart and everything was English. I removed the iPhone and it stayed English. Is this the behavior you see? I repeated the process in German, but was not asked the cookie questions at the top of the page. Putting an iPhone in the cart left the language in German. Note that clicking on the Danish flag does not change the language until the cart is empty. Is this consistent with what others see? It's very strange behavior. Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 16, 2014 Author Share Posted March 16, 2014 Yes, thats exactly the problem procedure I also experienced...strange... Quote Link to comment Share on other sites More sharing options...
lbdublb Posted March 16, 2014 Author Share Posted March 16, 2014 SOLVED (w00t) I renamed the german language folder to danish and tried it...it was working. So the problem must be somewhere in that folder...trying the different subfolders lead to the assumption that it must be somewhere in the payment folder. At the end I figured out that there where some language files missing for some payment options. Copying the german files missing in the danish payment language folder solved the problem and I am happy now! Thanks all for your help! Quote Link to comment Share on other sites More sharing options...
♥joli1811 Posted March 16, 2014 Share Posted March 16, 2014 (edited) Yes experienced also a similar problem with a Dutch language pack had a weird error because of files missing / not updated :thumbsup: Glad you caught that bug that was causing the problem I had (one of many) a buggy password_forgotten.php / password_reset.php Also a lot of the admin dashboard files were missing Regards Joli Edited March 16, 2014 by joli1811 Quote To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.