Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
Cambiar a español 'search' 'guest' y mensaje de bienvenida.
Torrecus_mybb_import8215   4 Jan, 2011, 4:37 pm
#1

Que tal.

Pues como indica el título, mis dudas son esas (una disculpa si el tema no va acá y debería reportarse en su lugar como un error de tradn.), y aunque dí una buscada ligera en los temas ya abiertos, no encontré algo similar. ¿Alguien me podría por favor ayudar e indicarme donde ajustar para:?

- Cambiar el texto 'Search' de la caja de búsqueda al español
- Cambiar el modo 'Guest' al español
- Cambiar el mensaje de bienvenida al foro 'Welcome to our board!' al español

Cabe señalar que ya instalé el paquete de lenguaje español, pero aún así esos textos en particular no aparecen traducidos, así que supongo que habrá que hacerlo manualmente. Me habían dicho que buscara en la plantilla

header_welcomeblock_guest

y así lo hice pero no cambió nada. Gracias de antemano. Saludos


nentab   4 Jan, 2011, 4:41 pm
#2
Pega aquí la plantilla header y la header_welcomeblock_guest ^^
Torrecus_mybb_import8215   4 Jan, 2011, 4:50 pm
#3
Esta es la header:

Código:
<!-- theme_changer -->
<a name="top" id="top"></a>
<div class="menu_l"><div class="menu">
    <ul>
        <li id="search"><form method="post" action="{$mybb->settings['bburl']}/search.php">
            <input type="hidden" name="action" value="do_search" />
            <input type="hidden" name="postthread" value="1" />
            <input type="hidden" name="forums" value="all" />
            <input type="hidden" name="showresults" value="threads" />
            <input type="text" name="keywords" value="Search..." onfocus="if(this.value == 'Search...') { this.value = ''; }" onblur="if(this.value=='') { this.value='Search...'; }" class="search_box" />
            <input type="submit" class="search_button" value="" />
        </form></li>
        <li style="padding-left: 0; background: 0;"><a href="{$mybb->settings['bburl']}">Home</a></li>
        <li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
        <li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
        <li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
        <li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
    </ul>
</div></div>
<div id="container">
    <div id="header">
        <div id="header_img">
            <div class="float_right">
                <div id="controls">
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/blue.css" class="c_color"><img src="{$theme['imgdir']}/css/ct_blue.png" class="ct_img" alt="" title="Change color scheme: Blue" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/red.css" class="c_color"><img src="{$theme['imgdir']}/css/ct_red.png" class="ct_img" alt="" title="Change color scheme: Red" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/green.css" class="c_color"><img src="{$theme['imgdir']}/css/ct_green.png" class="ct_img" alt="" title="Change color scheme: Green" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/thin.css" class="c_width"><img src="{$theme['imgdir']}/css/ct_thin.png" class="ct_img" alt="" title="Switch to thin display" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/wide.css" class="c_width"><img src="{$theme['imgdir']}/css/ct_wide.png" class="ct_img" alt="" title="Switch to wide display" /></a>
                </div>
                <div id="panel">
                    {$welcomeblock}
                </div>
            </div>
            <div id="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
        </div>
    </div>
    <navigation>
    <div id="content">
        {$pm_notice}
        {$bannedwarning}
        {$bbclosedwarning}
        {$unreadreports}
        {$pending_joinrequests}


Y esta es la header_welcomeblock_guest

Código:
<div id="panel_usermenu"><img src="{$theme['imgdir']}/panel_guest.png" style="vertical-align: middle;" alt="" /> Guest</div>
<div id="panel_pms"><img src="{$theme['imgdir']}/panel_welcome.png" style="vertical-align: middle;" alt="" /> Welcome to our board!</div>

<a href="{$mybb->settings['bburl']}/member.php?action=login" style="float: right;"><img src="{$theme['imgdir']}/panel_login.png" alt="Login" /></a>
<a href="{$mybb->settings['bburl']}/member.php?action=register"><img src="{$theme['imgdir']}/panel_regnow.png" alt="Register Now" /></a>
<!-- <span style="float: right;">{$lang->welcome_current_time}</span>
        <span id="quick_login">{$lang->welcome_guest} (<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>)</span> -->
nentab   4 Jan, 2011, 5:06 pm
#4
header

Código:
<!-- theme_changer -->
<a name="top" id="top"></a>
<div class="menu_l"><div class="menu">
    <ul>
        <li id="search"><form method="post" action="{$mybb->settings['bburl']}/search.php">
            <input type="hidden" name="action" value="do_search" />
            <input type="hidden" name="postthread" value="1" />
            <input type="hidden" name="forums" value="all" />
            <input type="hidden" name="showresults" value="threads" />
            <input type="text" name="keywords" value="Buscar..." onfocus="if(this.value == 'Buscar...') { this.value = ''; }" onblur="if(this.value=='') { this.value='Buscar...'; }" class="search_box" />
            <input type="submit" class="search_button" value="" />
        </form></li>
        <li style="padding-left: 0; background: 0;"><a href="{$mybb->settings['bburl']}">Home</a></li>
        <li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
        <li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
        <li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
        <li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
    </ul>
</div></div>
<div id="container">
    <div id="header">
        <div id="header_img">
            <div class="float_right">
                <div id="controls">
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/blue.css" class="c_color"><img src="{$theme['imgdir']}/css/ct_blue.png" class="ct_img" alt="" title="Change color scheme: Blue" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/red.css" class="c_color"><img src="{$theme['imgdir']}/css/ct_red.png" class="ct_img" alt="" title="Change color scheme: Red" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/green.css" class="c_color"><img src="{$theme['imgdir']}/css/ct_green.png" class="ct_img" alt="" title="Change color scheme: Green" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/thin.css" class="c_width"><img src="{$theme['imgdir']}/css/ct_thin.png" class="ct_img" alt="" title="Switch to thin display" /></a>
                    <a href="#" rel="{$mybb->settings['bburl']}/{$theme['imgdir']}/css/wide.css" class="c_width"><img src="{$theme['imgdir']}/css/ct_wide.png" class="ct_img" alt="" title="Switch to wide display" /></a>
                </div>
                <div id="panel">
                    {$welcomeblock}
                </div>
            </div>
            <div id="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
        </div>
    </div>
    <navigation>
    <div id="content">
        {$pm_notice}
        {$bannedwarning}
        {$bbclosedwarning}
        {$unreadreports}
        {$pending_joinrequests}

header_welcomeblock_guest

Código:
<div id="panel_usermenu"><img src="{$theme['imgdir']}/panel_guest.png" style="vertical-align: middle;" alt="" /> Invitado</div>
<div id="panel_pms"><img src="{$theme['imgdir']}/panel_welcome.png" style="vertical-align: middle;" alt="" /> Bienvenido a la comunidad!</div>

<a href="{$mybb->settings['bburl']}/member.php?action=login" style="float: right;"><img src="{$theme['imgdir']}/panel_login.png" alt="Login" /></a>
<a href="{$mybb->settings['bburl']}/member.php?action=register"><img src="{$theme['imgdir']}/panel_regnow.png" alt="Register Now" /></a>
<!-- <span style="float: right;">{$lang->welcome_current_time}</span>
        <span id="quick_login">{$lang->welcome_guest} (<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>)</span> -->
Torrecus_mybb_import8215   4 Jan, 2011, 5:23 pm
#5
¡Guau! Master, mis respetos Smile

Ya quedó con los cambios que indicaste. Gracias
  
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.