Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • sushismb Friend
    #198516

    Hello,

    I’ve noticed that the ja-day format located at the top left portion of the page is different from the default/common date.

    I want this to be the same as the default/common date, same with how it is shown in the articles.

    How do I do this?

    If there is no way, then how do I change the format?

    Thanks!

    pavit Moderator
    #537981

    Hi

    You can change date format editing this file templatesja_nex_t3tplsblockstop-header.php

    <div class="wrap ja-topheader">
    <div class="container">
    <div class="row">

    <div class="span3">
    <p class="ja-day">
    <span class="year"><?php echo date ('Y') ?></span>
    <span class="month"><?php echo JText::_(strtoupper(date ('F'))) ?></span>
    <span class="date"><?php echo JText::_(strtoupper(date ('l'))) ?> <?php echo date ( 'd') ?></span>
    </p>
    </div>

    HERE you can find the php manual

    sushismb Friend
    #538013

    Hello pavit,

    I couldn’t find the file you mentioned.

    template/ja_nex/

    After that, no such directory as tpls

    There is templates/ja_nex/blocks/header.php but I can’t find those strings in it.

    THanks.

    pavit Moderator
    #538017

    Hi

    The link i posted above was for T3 version.

    You can find same code editing this file templatesja_nexblockstopmenu.php

    sushismb Friend
    #538025

    Hello pavit,

    Thank you for your help, I was able to fix the format.

    However, I noticed that it’s pulling a different translation file (I’m using the template in Japanese).

    Can you point to me which language file this date is using? It should be different from the dates in the articles.

    Thank you!

    pavit Moderator
    #538045

    Hi

    The file loaded for the translation is in the languagesja-JP folder ja-JP.ini

    You should verify the correct translation there , also clean your JaT3 cache

    sushismb Friend
    #539768

    Hello pavit,

    I’ve got another question regarding this matter.

    In Japanese, we format the M-D-Y as X月X日X年。As you can see on my site http://www.coco.ph, the translation of the 日or day and 年or year is missing. Where and how can I add this in the language translation?

    Thanks!

    pavit Moderator
    #539772

    Hi

    I’m not an expert in Japanese language but checking some google docs and php settings i made a test with this format :

    Edit the clas ja-day in this file templatesja_nexblockstopmenu.php in this way

    ?>

    <p class="ja-day">
    <?php
    echo "<span class="month">".JText::_(strtoupper(date ('F')))."</span>";
    echo "<span class="date">".date ('d').'日'."</span>";
    echo "<span class="year">".date ('Y').'年'."</span>";
    ?>
    </p>

    clean your jat3 cache and refresh

    This is the result in my localhost


    1. Screenshot_10
    sushismb Friend
    #539805

    Hello pavit,

    Amazing!

    Thank you so much for your help.

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

This topic contains 9 replies, has 2 voices, and was last updated by  sushismb 9 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum