0
Welcome Guest! Login
0 items Join Now

SOLVED How does one change a button when the language chanes?

    • John Craig's Avatar

    SOLVED How does one change a button when the language chanes?

    Posted 18 years 10 months ago
    • Here is a question someone may be able to help me with. We are in the process of translating our site to both Portuguesse and Spanish, and have several buttons in our primary language, English. How, we can change the buttons when the language is changed? We also define several buttons in a CSS (for our Virtuecart add to cart) how would we change it from a CSS perspective. I know, I know, why am I posting this here at RocketTheme. Well, you guys or so darn smart that you probably no the answer without even having to look it up anywhere and the truth is people seem less condescending here then at joomla.org forums. (Actually there is no feeling of being talked down to here at all) So, if anybody knows the answer then I can avoid being mocked at joomla.org and just being ridiculed here form my simpleton question :)

      Oh ,we are using joomla 1.0.10 and the most rescent versions of Virtuemart, Joom!Fish if that helps.

      Thanks way advance for any help.
    • Last Edit: 18 years 10 months ago by .
    • John Craig's Avatar

    Re: SOLVED How does one change a button when the language chanes?

    Posted 18 years 10 months ago
    • Answering my own question, just in case someone else is interested.

      If using a CSS you just define it like this (for example a header image)
      <td width="760" colspan="3" align="right" valign="top" class="header-<?php echo $mosConfig_lang; ?>">
      td.header-portuguesse {
      background : url(../images/header-portuguesse.jpg);
      width : 760px;
      height : 135px;
      }
      td.header-english {
      background : url(../images/header-english.jpg);
      width : 760px;
      height : 135px;
      }
      td.header-spanish {
      background : url(../images/header-spanish.jpg);
      width : 760px;
      height : 135px;
      }

      or if using a php file without the css code you can define it like:

      <img src="templates/<?php echo $cur_template; ?>/images/header-<?php echo $mosConfig_lang; ?>l.jpg">

      Help provided by ivo.apostolov and mvalent

      If anybody has a better or another way just post it here.

      Thanks to

Time to create page: 0.062 seconds