Página 1 de 2
[solucionado] Relación Idioma E Imágenes
Publicado: 17 Jun 2007, 19:08
por mipavluk
Hola!
Resulta que en mi archivo overall_header, creé una barra de navegación, arriba de la que coloca el foro por defecto, porque mi sitio tiene otras cosas fuera del foro.
La barra de navegación la hice con imágenes/botones.
Mi foro está disponible en español e inglés. Creé mis imágenes/botones en ambos idiomas, las nombré iguales y las coloqué en sus respectivas carpetas de idiomas.
Mi pregunta es: ¿cómo hago para que en cada idioma aparezcan las botones correspondientes a ese idioma? Ya que en español sigo viendo los botones en inglés.
Graciassssssssssssssss
M.
Re: Relación Idioma E Imágenes
Publicado: 17 Jun 2007, 22:52
por Zuker
Las imagenes deben ir en el cfg del template, y ser llamadas por una variable en el archivo. Fijate como se utiliza. Dependiendo del idioma por que tienen la variable {LANG} No es dificil
Re: Relación Idioma E Imágenes
Publicado: 17 Jun 2007, 23:05
por mipavluk
ok, lo voy a intentar! gracias!
Re: Relación Idioma E Imágenes
Publicado: 17 Jun 2007, 23:34
por mipavluk
Matías, lo hice, pero sigo sin ver os botones en español, te podrías fijar si estoy ruteando bien las imágenes?
te dejo el overall header acá
y el cfg del template acá
Gracias!!!
Re: Relación Idioma E Imágenes
Publicado: 17 Jun 2007, 23:45
por Zuker
Te pongo un ejemplo, mira
En el CFG agregas
Código: Seleccionar todo
$images['header1'] = "$current_template_images/{LANG}/header1.gif";
y tambien agregas esto
Código: Seleccionar todo
// adding custom template variables
$template->assign_vars(array(
'HEADER_1' => $images['header1'],
'HEADER_2' => $images['header2'],
)
);
De esa manera, el el template, vas a poder utilizar
{HEADER_1} para mostrar donde quieras la imagen

Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 00:12
por mipavluk
no me funciona... todo el index me queda en blando al agregar lo 2do. en el cfg
¿debo agregarlo en algún lugar en especial??
Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 00:32
por Zuker
edite mi mensaje, fijate
Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 00:53
por mipavluk
casi casi... no encuentra la imagen porque tiene un error en la ruta... mirá donde la busca
http://scrapperszone.com/Forum/template ... er/images/%7BLANG%7D/blog.jpg
y lo que te resalté... es lo que yo reemplacé en el cfg por {LANG}
glup
sigo revisando pero no veo mi error!! toy chicata de tanto código!!!

Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 03:04
por Zuker
A ver, dejame tu cfg luego de haberla editado en pastebin por favor
Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 03:12
por mipavluk
te lo dejo acá
¿un mate mientras trabajamos? jeje
Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 05:40
por Zuker
parece estar todo bien :S
el header como esta?
Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 13:50
por mipavluk
uy!
bueno, acá te dejo el header... seguro el error está acá... en como rutee la imagen... fijate!
graciasssssssssssssss
M:
Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 15:16
por Zuker
Efectivamente
Ahi estaba el error
fijate que cuando pones
Código: Seleccionar todo
<img src={HOME} alt="SZ Home" width="82" height="20" border="0" />
deberia ser
Código: Seleccionar todo
<img src="{HOME}" alt="SZ Home" width="82" height="20" border="0" />
Saludos

Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 16:54
por mipavluk
gracias... pero el error persiste... sigue exactamente igual... agregué todas las comillas pero sigue buscando la imagen en la siguiente ruta:
http://www.scrapperszone.com/Forum/temp ... allery.jpg
glup y re-glup
Re: Relación Idioma E Imágenes
Publicado: 18 Jun 2007, 23:02
por Zuker
Fijate de dejar el cfg asi
Código: Seleccionar todo
<?php
//
// ** Configuration file for subSilver template **
//
// ** copyright (C) 2001 The phpBB Group **
// ** Created by subBlue design **
// ** www.subBlue.com **
//
// ** subSilver dev. forum: www.subSky.com/phpBB2/ **
//
// $Id: subSilver.cfg,v 1.11.2.1 2005/10/08 19:41:31 grahamje Exp $
//
// Please note that to enable support of different languages
// the {LANG} place holder is available. This will be replaced
// with xxx where xxx is the users selected language. If
// that language isn't available it will default to english.
// Therefore you MUST ensure you have at least a english
// directory if you choose to localise your template
//
//
// Do not alter this line!
//
define(TEMPLATE_CONFIG, TRUE);
$current_template_images = $current_template_path . "/images";
$images['icon_quote'] = "$current_template_images/{LANG}/icon_quote.gif";
$images['icon_edit'] = "$current_template_images/{LANG}/icon_edit.gif";
$images['icon_search'] = "$current_template_images/{LANG}/icon_search.gif";
$images['icon_profile'] = "$current_template_images/{LANG}/icon_profile.gif";
$images['icon_pm'] = "$current_template_images/{LANG}/icon_pm.gif";
$images['icon_email'] = "$current_template_images/{LANG}/icon_email.gif";
$images['icon_delpost'] = "$current_template_images/icon_delete.gif";
$images['icon_ip'] = "$current_template_images/{LANG}/icon_ip.gif";
$images['icon_www'] = "$current_template_images/{LANG}/icon_www.gif";
$images['icon_icq'] = "$current_template_images/{LANG}/icon_icq_add.gif";
$images['icon_aim'] = "$current_template_images/{LANG}/icon_aim.gif";
$images['icon_yim'] = "$current_template_images/{LANG}/icon_yim.gif";
$images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif";
$images['icon_minipost'] = "$current_template_images/icon_minipost.gif";
$images['icon_gotopost'] = "$current_template_images/icon_minipost.gif";
$images['icon_minipost_new'] = "$current_template_images/icon_minipost_new.gif";
$images['icon_latest_reply'] = "$current_template_images/icon_latest_reply.gif";
$images['icon_newest_reply'] = "$current_template_images/icon_newest_reply.gif";
$images['forum'] = "$current_template_images/folder_big.gif";
$images['forum_new'] = "$current_template_images/folder_new_big.gif";
$images['forum_locked'] = "$current_template_images/folder_locked_big.gif";
$images['folder'] = "$current_template_images/folder.gif";
$images['folder_new'] = "$current_template_images/folder_new.gif";
$images['folder_hot'] = "$current_template_images/folder_hot.gif";
$images['folder_hot_new'] = "$current_template_images/folder_new_hot.gif";
$images['folder_locked'] = "$current_template_images/folder_lock.gif";
$images['folder_locked_new'] = "$current_template_images/folder_lock_new.gif";
$images['folder_sticky'] = "$current_template_images/folder_sticky.gif";
$images['folder_sticky_new'] = "$current_template_images/folder_sticky_new.gif";
$images['folder_announce'] = "$current_template_images/folder_announce.gif";
$images['folder_announce_new'] = "$current_template_images/folder_announce_new.gif";
$images['post_new'] = "$current_template_images/{LANG}/post.gif";
$images['post_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
$images['reply_new'] = "$current_template_images/{LANG}/reply.gif";
$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
$images['pm_inbox'] = "$current_template_images/msg_inbox.gif";
$images['pm_outbox'] = "$current_template_images/msg_outbox.gif";
$images['pm_savebox'] = "$current_template_images/msg_savebox.gif";
$images['pm_sentbox'] = "$current_template_images/msg_sentbox.gif";
$images['pm_readmsg'] = "$current_template_images/folder.gif";
$images['pm_unreadmsg'] = "$current_template_images/folder_new.gif";
$images['pm_replymsg'] = "$current_template_images/{LANG}/reply.gif";
$images['pm_postmsg'] = "$current_template_images/{LANG}/msg_newpost.gif";
$images['pm_quotemsg'] = "$current_template_images/{LANG}/icon_quote.gif";
$images['pm_editmsg'] = "$current_template_images/{LANG}/icon_edit.gif";
$images['pm_new_msg'] = "";
$images['pm_no_new_msg'] = "";
$images['Topic_watch'] = "";
$images['topic_un_watch'] = "";
$images['topic_mod_lock'] = "$current_template_images/topic_lock.gif";
$images['topic_mod_unlock'] = "$current_template_images/topic_unlock.gif";
$images['topic_mod_split'] = "$current_template_images/topic_split.gif";
$images['topic_mod_move'] = "$current_template_images/topic_move.gif";
$images['topic_mod_delete'] = "$current_template_images/topic_delete.gif";
$images['voting_graphic'][0] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][1] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][2] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][3] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][4] = "$current_template_images/voting_bar.gif";
//
// Vote graphic length defines the maximum length of a vote result
// graphic, ie. 100% = this length
//
$board_config['vote_graphic_length'] = 205;
$board_config['privmsg_graphic_length'] = 175;
// Start add - Gender MOD
$images['icon_minigender_male'] = "$current_template_images/icon_minigender_male.gif";
$images['icon_minigender_female'] = "$current_template_images/icon_minigender_female.gif";
// End add - Gender MOD
// Mighty Gorgon - Full Album Pack - BEGIN
$images['icon_left_arrow3'] = "$current_template_images/icon_left_arrow3.gif";
$images['icon_right_arrow3'] = "$current_template_images/icon_right_arrow3.gif";
$images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg";
$images['spacer'] = "$current_template_images/spacer.gif";
$images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif";
$images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif";
$images['icon_album'] = "$current_template_images/{LANG}/icon_album.gif";
$images['manage_pic'] = "$current_template_images/{LANG}/manage_pic.gif";
$images['upload_pic'] = "$current_template_images/{LANG}/upload_pic.gif";
$images['download_pic'] = "$current_template_images/{LANG}/download.gif";
$images['all_pic_view_mode'] = "$current_template_images/{LANG}/simple_view.gif";
$images['normal_pic_view_mode'] = "$current_template_images/{LANG}/normal_view.gif";
$images['show_all_pics'] = "$current_template_images/{LANG}/show_all_pics.gif";
$images['show_all_ratings'] = "$current_template_images/{LANG}/show_all_ratings.gif";
$images['show_all_comments'] = "$current_template_images/{LANG}/show_all_comments.gif";
$images['orange_dot'] = "$current_template_images/orange_dot.png";
$images['blue_dot'] = "$current_template_images/blue_dot.png";
$images['green_dot'] = "$current_template_images/green_dot.png";
$images['yellow_dot'] = "$current_template_images/yellow_dot.png";
// Mighty Gorgon - Full Album Pack - END
$images['blog'] = "$current_template_images/{LANG}/blog.jpg";
$images['calendar'] = "$current_template_images/{LANG}/calendar.jpg";
$images['forum'] = "$current_template_images/{LANG}/forum.jpg";
$images['freebies'] = "$current_template_images/{LANG}/freebies.jpg";
$images['gallery'] = "$current_template_images/{LANG}/gallery.jpg";
$images['home'] = "$current_template_images/{LANG}/home.jpg";
$images['news'] = "$current_template_images/{LANG}/news.jpg";
$images['store'] = "$current_template_images/{LANG}/store.jpg";
// adding custom template variables
$template->assign_vars(array(
'BLOG' => $images['blog'],
'CALENDAR' => $images['calendar'],
'FORUM' => $images['forum'],
'FREEBIES' => $images['freebies'],
'GALLERY' => $images['gallery'],
'HOME' => $images['home'],
'NEWS' => $images['news'],
'STORE' => $images['store'],
)
);
?>
Si asi no funciona, va a haber que añadir las variables en el php