Autodetectar idioma som sites já com páginas traduzidas £10-20 GBP Publicado hace alrededor de 10 años
£10-20 GBP Pagado a la entrega
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
ID del proyecto: 5562592
Información sobre el proyecto 2 propuestas
Proyecto remoto
Activo hace 10 años
¿Buscas ganar dinero? Dirección de email Postular a trabajos similares Beneficios de presentar ofertas en Freelancer Fija tu plazo y presupuesto
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de £26 GBP por este trabajo
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 en 1 día
0,0 (0 comentarios) A proposal has not yet been provided
£18 GBP en 1 día
0,0 (0 comentarios)