-
AuthorPosts
-
sushismb Friend
sushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
June 5, 2014 at 5:51 pm #198516Hello,
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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
June 6, 2014 at 5:32 am #537981Hi
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 Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
June 6, 2014 at 8:53 am #538013Hello 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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
sushismb Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
June 6, 2014 at 9:46 am #538025Hello 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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
sushismb Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
June 22, 2014 at 4:09 pm #539768Hello 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 Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
June 22, 2014 at 4:55 pm #539772Hi
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 user says Thank You to pavit for this useful post
sushismb Friendsushismb
- Join date:
- October 2008
- Posts:
- 370
- Downloads:
- 59
- Uploads:
- 24
- Thanks:
- 86
- Thanked:
- 8 times in 1 posts
June 23, 2014 at 3:45 am #539805Hello pavit,
Amazing!
Thank you so much for your help.
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by sushismb 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
ja-day format change
Viewing 9 posts - 1 through 9 (of 9 total)