Advertisement:

Traducir mods

Aloittaja Titoxicko, tammikuu 30, 2009, 06:48:19 IP

« edellinen - seuraava »

Titoxicko

Buenas!

Tengo varios mods que ocupo con el theme SMF default theme CORE, y bueno, me funcionan bien, pero el problema es al cambiarle el idioma, estoy ocuando el idioma Spanish_es y Spanish_utf8, y los mods no me funcionan, digo, si funcionan pero las letras no me salen y salen en blanco S: asi que me gustaria que me enseñaran como traducir los mods de una y no andar preguntando, ya que busque y por ahi dijieron que iva a hacer un tutorial para traducirlos pero al parecer aun no lo hacen  >:(

eso, Espero su ayuda.

=)

pendrakon

solo tienes que abrir el zip del mod, abrir en un editor de texto install.xml(puede tener otro nombre)
buscar la operacion que hace los cambios en los archivos de lenguajes, pro ejemplo buscas el que cambia el archivo modifications.english.php, copias todo ese codigo lo pegas abajo de donde hace esa operacion y cambias el nombre a modifications.tuidioma.php y traduces todas las variables que salen en ingles... espero no haber estado muy enredado

Titoxicko

#2
Mira si bien entiendo bien:

Este mod es el de Anonymizer, el redireccionamiento de los links, etc, bueno segun lo que lei en el codigo, hay unas partes con opciones del lenguaje, por ejemplo:



<!--// The language strings  //-->
<file name="$themedir/languages/Modifications.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['anonymizer'] = 'Enable Anonymizer';
$txt['anonymizer_desc'] = 'Uncheck to disable the mod completely';
$txt['anonymizer_setup'] = 'Anonymizer Setup';
$txt['anonymizer_setup_desc'] = 'Choose what to Anonymize';
$txt['anonymizer_setup_0'] = 'ALL Links';
$txt['anonymizer_setup_1'] = 'ALL Links (Except [noanon] bbcoded links)';
$txt['anonymizer_setup_2'] = 'ONLY [anon] bbcoded links';
$txt['anonymizer_setup_3'] = 'ONLY links on the Inclusions List';
$txt['anonymizer_site'] = 'Anonymizer Site';
$txt['anonymizer_site_desc'] = 'Choose the anonymizer to use';
$txt['anonymizer_site_0'] = 'Random';
$txt['anonymizer_site_1'] = 'Anonym.to';
$txt['anonymizer_site_2'] = 'De-Referer.com';
$txt['anonymizer_sub'] = 'Anonymize YOUR Base/Subdomain Links';
$txt['anonymizer_sub_desc'] = '(Recommended if you do NOT own the domain)';
$txt['anonymizer_ip'] = 'Anonymize YOUR Servers IP Links';
$txt['anonymizer_ip_desc'] = '(Recommended if you do not own the domain or are on shared/free hosting)';
$txt['anonymizer_exc'] = 'Exclusions [(Sub-)Domains/IPs to NEVER Anonymize]';
$txt['anonymizer_exc_desc'] = 'domain.tld or sub.domain.tld or 123.456.789.0 <b>(ONE per line)</b><br />
The base domain (domain.tld) covers all subdomains aswell<br />
Use www. to only cover the base domain (www.domain.tld)';
$txt['anonymizer_inc'] = 'Inclusions [(Sub-)Domains/IPs to ALWAYS Anonymize]';
$txt['anonymizer_inc_desc1'] = 'OVERRIDES exclusions, setup and [noanon] bbcode';
$txt['anonymizer_inc_desc2'] = 'domain.tld or sub.domain.tld or 123.456.789.0 <b>(ONE per line)</b><br />
The base domain (domain.tld) covers all subdomains aswell<br />
Use www. to only cover the base domain (www.domain.tld)';
]]></add>
</operation>
</file>




Este codigo esta ocupando el lenguaje Modifications.english.php, ahora bien.
yo ocupo el Spanish_es o el Spanish_utf8.

donde dice en el codigo:

<file name="$themedir/languages/Modifications.english.php">

yo tendria que reemplazarlo por:

<file name="$themedir/languages/Modifications.spanish_es.php">

y traducir el resto del codigo, osea esta parte:

$txt['anonymizer'] = 'Enable Anonymizer';
$txt['anonymizer_desc'] = 'Uncheck to disable the mod completely';
$txt['anonymizer_setup'] = 'Anonymizer Setup';
$txt['anonymizer_setup_desc'] = 'Choose what to Anonymize';
$txt['anonymizer_setup_0'] = 'ALL Links';
$txt['anonymizer_setup_1'] = 'ALL Links (Except [noanon] bbcoded links)';
$txt['anonymizer_setup_2'] = 'ONLY [anon] bbcoded links';
$txt['anonymizer_setup_3'] = 'ONLY links on the Inclusions List';
$txt['anonymizer_site'] = 'Anonymizer Site';
$txt['anonymizer_site_desc'] = 'Choose the anonymizer to use';
$txt['anonymizer_site_0'] = 'Random';
$txt['anonymizer_site_1'] = 'Anonym.to';
$txt['anonymizer_site_2'] = 'De-Referer.com';
$txt['anonymizer_sub'] = 'Anonymize YOUR Base/Subdomain Links';
$txt['anonymizer_sub_desc'] = '(Recommended if you do NOT own the domain)';
$txt['anonymizer_ip'] = 'Anonymize YOUR Servers IP Links';
$txt['anonymizer_ip_desc'] = '(Recommended if you do not own the domain or are on shared/free hosting)';
$txt['anonymizer_exc'] = 'Exclusions [(Sub-)Domains/IPs to NEVER Anonymize]';
$txt['anonymizer_exc_desc'] = 'domain.tld or sub.domain.tld or 123.456.789.0 <b>(ONE per line)</b><br />
The base domain (domain.tld) covers all subdomains aswell<br />
Use www. to only cover the base domain (www.domain.tld)';
$txt['anonymizer_inc'] = 'Inclusions [(Sub-)Domains/IPs to ALWAYS Anonymize]';
$txt['anonymizer_inc_desc1'] = 'OVERRIDES exclusions, setup and [noanon] bbcode';
$txt['anonymizer_inc_desc2'] = 'domain.tld or sub.domain.tld or 123.456.789.0 <b>(ONE per line)</b><br />
The base domain (domain.tld) covers all subdomains aswell<br />
Use www. to only cover the base domain (www.domain.tld)';
]]></add>


Asi????

pendrakon

exactamente asi o copiar el codigo que hace elreemplazo en ingles y usar el codigo copiado para hacer la traduccion, asi puedes tener con dos idiomas el mod, el tuyo y el original en ingles

Titoxicko

Bien, entonces probare con este, Gracias, cualquier proble ahi te aviso!


=)

Advertisement: