-
AuthorPosts
-
May 31, 2013 at 4:27 pm #187881
Hi, I translated all the texts anyway READ MORE from ALL ITEMS items in the page not change
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 3, 2013 at 10:06 am #494571You can change it here
Open language/en-GB/en-GB.com_k2.ini file
K2_READ_MORE="Read more..."
Open language/en-GB/en-GB.tpl_ja_zite.ini file
K2_READ_MORE="Read more"
Remember to clear cache before after changing the above files.
palos Friendpalos
- Join date:
- January 2013
- Posts:
- 369
- Downloads:
- 37
- Uploads:
- 8
- Thanks:
- 125
- Thanked:
- 27 times in 7 posts
July 3, 2013 at 8:26 pm #497881That is nice but how should we handle a site with more languages?
The author, date, etc at the blog is also seems to be hardcoded why?
Please show me the way!:((palos Friendpalos
- Join date:
- January 2013
- Posts:
- 369
- Downloads:
- 37
- Uploads:
- 8
- Thanks:
- 125
- Thanked:
- 27 times in 7 posts
July 3, 2013 at 8:36 pm #497883Post by “xy” On “local date format”
“Post by” and “On” remains english…:((Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 4, 2013 at 4:16 am #497911<blockquote>how should we handle a site with more languages?</blockquote>
With each language folder you should have language file for this template: /languages/Your_Language/Your_Language.tpl_ja_zite.ini
For example with English, you will have file: language/en-GB/en-GB.tpl_ja_zite.ini
<blockquote>”Post by” and “On” remains english</blockquote>
You can change here:
JACOM_CONTENT_CATEGORY="In %s"
JACOM_CONTENT_WRITTEN_BY="Post by %s"
JACOM_CONTENT_PUBLISHED_DATE_ON="On %s"
K2_WRITTEN_BY="Post by"
K2_PUBLISHED_DATE_ON="On"
K2_CATEGORY="In"
K2_DATE_FORMAT_LC1="%A, %d %B %Y %H:%M"1 user says Thank You to Ninja Lead for this useful post
palos Friendpalos
- Join date:
- January 2013
- Posts:
- 369
- Downloads:
- 37
- Uploads:
- 8
- Thanks:
- 125
- Thanked:
- 27 times in 7 posts
July 4, 2013 at 5:47 am #497925Thank you, Ninja Lead!
Last night I also found it out and created a My_Language.tpl_ja_zite.ini. Mostly it solved the problems but not with K2 COMMENTS where still remains “Post by” and “On” in English.Otherwise we do not use the leading zeros in dating like 04 July nor capitalizing the name of the month.
So I changed %d to %e and %B to %h …or even %b but nothing changes.
Please share your know-how with me 😉
(I still do not see any reason for hardcoding such things)Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 5, 2013 at 3:39 am #498028You are right with “Post by” and “On“, I see some hardcode about JText in K2 component customized on JA Zite template
+ Path file
<blockquote>templates/ja_zite/html/com_k2/ja_zite_blog/category_item.php
templates/ja_zite/html/com_k2/ja_zite/category_item.php
templates/ja_zite/html/com_k2/ja_zite-static/category_item.php</blockquote>+ and JText translate
<strong><?php echo JText::_('Post by'); ?></strong>
<strong><?php echo JText::_('In'); ?></strong>
<strong><?php echo JText::_('On'); ?></strong>+ You can re-define it again
About date format you can find code appear it in 3 file php code above
<blockquote><?php echo JHTML::_(‘date’, $this->item->created , JText::_(‘DATE_FORMAT_LC3’)); ?></blockquote>
and it was defined on this path: language/en-GB/en-GB.ini
DATE_FORMAT_LC="l, d F Y"
DATE_FORMAT_LC1="l, d F Y"
DATE_FORMAT_LC2="l, d F Y H:i"
DATE_FORMAT_LC3="d F Y"
DATE_FORMAT_LC4="Y-m-d"
DATE_FORMAT_JS1="y-m-d"
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by Ninja Lead 11 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum