antalya gergi tavan antalya duvar kağıdı

TAB translation

Home Support Free Theme: Access Shop TAB translation

This topic contains 8 replies, has 2 voices, and was last updated by  wervisser 2 years, 10 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3787

    wervisser
    Participant

    How can I change the TAB name on the product page. The view.phtml file has been updates to override the default (base) view.phtml, but still uses i.e. the description.phtml file. In this file the column name is set, but there’s an override in the CSS to set this to display:none.

    #3792

    Check on view.phtml file about line 156 you can find the tabs listing. May be you can manage those from there or at least get idea what to do to change those.
    Write back if you don’t get it right.

    #3795

    wervisser
    Participant

    Yes, I already found that part of the file, but couldn’t figure out where the title is coming from. In the dexcription.phtml the title is set with <h2><?php echo $this->__('Details') ?></h2>

    Within the rewritten part of view.phtml I see this is set as

    <a data-toggle="tab" href="#<?php echo "box-{$alias}"?>">
        <?php if ($title = $this->getChildData($alias, 'title')):?>
            <?php echo ($title!='')?$title:ucwords($alias); ?>
        <?php else:?>
            <?php echo ucwords($alias); ?>
        <?php endif;?>
    </a>

    This doesn’t make sense to me 😉

    #3796

    Can you send us screenshot with what is currently and what you want us to make it? May be we can help you out with that.
    Thanks!

    #3801

    wervisser
    Participant

    [URL=http://www.dumpt.com/img/viewer.php?file=s75ytcmha0iyqg0d15gf.jpg][IMG]http://www.dumpt.com/img/files/s75ytcmha0iyqg0d15gf_thumb.jpg[/IMG][/URL]

    I would like to translate these values. Normally I would be able to do this via the CSV files in my language file.

    For example, Description would be translated into Omschrijving. Additional into Extra, and so on.

    #3802

    You mean those could not be changed via csv for languages?? Is it??

    #3803

    wervisser
    Participant

    Exactly.

    The word Description should be translated to Omschrijving. The method of setting this name in the tab however differs from the default method. So, I’m not able to change the name.
    Please see post 3795 for the information how it is set by default.

    #3806

    Try replacing the code after line 156 with this:

    <ul class="nav nav-tabs" role="tablist">
        <?php $i=0; foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
          <li class="<?php if($i==0){echo "active";}?>">
            <a data-toggle="tab" href="#<?php echo "box-{$alias}"?>">
                <?php if ($title = $this->getChildData($alias, 'title')):?>
                    <?php echo ($title!='')?$this->__($title):$this->__(ucwords($alias)); ?>
                <?php else:?>
                    <?php echo $this->__(ucwords($alias)); ?>
                <?php endif;?>
            </a>
          </li>             
        <?php $i++; endforeach;?>
        <li><a data-toggle="tab" class="reviews" name="reviews-tab" href="#reviews"><?php echo $this->__('Reviews') ?></a></li>
        <li><a data-toggle="tab" href="#product-tags"><?php echo $this->__('Tags');?></a></li>
        <li><a data-toggle="tab" href="#custom-tab1"><?php echo($customtab1->getTitle()!='')?$customtab1->getTitle():$this->__('Custom Tab 1');?></a></li>
        <li><a data-toggle="tab" href="#custom-tab2"><?php echo($customtab2->getTitle()!='')?$customtab2->getTitle():$this->__('Custom Tab 2');?></a></li>
    </ul>

    and then change it via csv.

    For custom tabs you can change those titles via backend > static blocks.
    for other you may try putting condition like if(..){then …}

    Thanks!

    #3809

    wervisser
    Participant

    It works perfectly ! This should be an addition to the theme in the future so everybody who wants to translate the fields can use the builtin csv files.

    Thank you for the excellent support !

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

anal porno watch porn anal