Find Jobs
Hire Freelancers

Autodetectar idioma som sites já com páginas traduzidas

£10-20 GBP

Completed
Posted about 10 years ago

£10-20 GBP

Paid on delivery
Ola Pessoal, Eu tenho um site que já tem alguns idiomas, o [login to view URL] , mas ele não detectar automaticamente o idioma automaticamente e queria saber se alguém sabe como fazer isso, alguém pode me ajudar? Vou passar algumas páginas de código: **INCLUDE/CONFIG:** `<? $config = array(); // Begin Configuration $config['basedir'] = '---'; $config['baseurl'] = '---'; $default_language = "english"; //Valid options are english, french, spanish, portuguese, japanese, chinese_simplified or chinese_traditional // End Configuration session_start(); date_default_timezone_set('America/New_York'); $config['adminurl'] = $config['baseurl'].'/administrator'; $config['cssurl'] = $config['baseurl'].'/css'; $config['imagedir'] = $config['basedir'].'/img'; $config['imageurl'] = $config['baseurl'].'/img'; $config['pdir'] = $config['basedir'].'/pics'; $config['purl'] = $config['baseurl'].'/pics'; $config['mdir'] = $config['basedir'].'/mpics'; $config['murl'] = $config['baseurl'].'/mpics'; echo file_get_contents($config['baseurl']."/[login to view URL]"); require_once($config['basedir'].'/smarty/libs/[login to view URL]'); function strip_mq_gpc($arg) { $arg = str_replace('"',"'",$arg); $arg = stripslashes($arg); return $arg; } $conn = &ADONewConnection($DBTYPE); $conn->PConnect($DBHOST, $DBUSER, $DBPASSWORD, $DBNAME); @mysql_query("SET NAMES 'UTF8'"); $sql = "SELECT * from config"; $rsc = $conn->Execute($sql); if($rsc){while(!$rsc->EOF) { $field = $rsc->fields['setting']; $config[$field] = $rsc->fields['value']; STemplate::assign($field, strip_mq_gpc($config[$field])); @$rsc->MoveNext(); }} if ($_REQUEST['language'] != "") { if ($_REQUEST['language'] == "english") { $_SESSION['language'] = "english"; } elseif ($_REQUEST['language'] == "french") { $_SESSION['language'] = "french"; } elseif ($_REQUEST['language'] == "spanish") { $_SESSION['language'] = "spanish"; } elseif ($_REQUEST['language'] == "portuguese") { $_SESSION['language'] = "portuguese"; } elseif ($_REQUEST['language'] == "japanese") { $_SESSION['language'] = "japanese"; } elseif ($_REQUEST['language'] == "chinese_simplified") { $_SESSION['language'] = "chinese_simplified"; } elseif ($_REQUEST['language'] == "chinese_traditional") { $_SESSION['language'] = "chinese_traditional"; } } if ($_SESSION['language'] == "") { $_SESSION['language'] = $default_language; } if ($_SESSION['language'] == "english") { include("lang/[login to view URL]"); } elseif ($_SESSION['language'] == "french") { include("lang/[login to view URL]"); } elseif ($_SESSION['language'] == "spanish") { include("lang/[login to view URL]"); } elseif ($_SESSION['language'] == "portuguese") { include("lang/[login to view URL]"); } elseif ($_SESSION['language'] == "japanese") { include("lang/[login to view URL]"); } elseif ($_SESSION['language'] == "chinese_simplified") { include("lang/[login to view URL]"); } elseif ($_SESSION['language'] == "chinese_traditional") { include("lang/[login to view URL]"); } else { include("lang/".$default_language.".php"); } for ($i=0; $i<count($lang); $i++) { STemplate::assign('lang'.$i, $lang[$i]); } if($config['re_mobile'] == "1" && $config['m_url'] != "") ... ------------------------------------------------------------------- **e tem as paginas de idiomas no include/lang, veja um exemplo da English:** <? $lang = array(); $lang['0'] = "Login"; $lang['1'] = "Home"; ------------------------------------------------------------------ Tem também Portuguese, Spanish, Japanese
Project ID: 5562592

About the project

2 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Ainda não foi fornecida uma proposta
£33 GBP in 1 day
4.9 (5 reviews)
4.1
4.1
2 freelancers are bidding on average £26 GBP for this job
User Avatar
Dear Sir, we are pleased to inform you that we have studied all the requirements and can deliver the same to u .we already have similar work experience and have worked on similar projects in the past and can deliver u as u have specified in your requirements we have similar work experience and can handle this quite well We are one of the leading service providers in the field of Website Designing, Application Software Development, System Software Development, E-commerce Development, CRM, MLM, Corporate Presentations and Customize Web Solutions. As a trusted web development and internet marketing company, we offer our clients strategic web solutions geared for taking the competition head on. Our aim is to provide current and up to date information technology solutions; solutions, which enhance the work environment and make work simpler and more efficient. Also the solution must provide for the considerable saving of times and human resources, which can be utilized for other purpose. In effect, a good software solution can improve the productivity of the company. plz let us know your skype or e-mail so that we can discuss further Regards
£22 GBP in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
£18 GBP in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of BRAZIL
Santos, Brazil
5.0
1
Payment method verified
Member since Mar 16, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.