-
AuthorPosts
-
August 10, 2011 at 9:40 pm #167269
On my test site (Joomla 1.6.6) and Teline IV (1.1.1) I have Polish (PL) language as default for site and administrator. I have translated short and long names of days and months in /language/en-GB/en-GB.ini. Unfortunately I have short name of the month in English, but short name of the day (displaying over the year) is in Polish. I don’t know how to change months into Polish…
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
August 11, 2011 at 5:02 am #405563Hi
Please check http://www.joomlart.com/forums/topic/how-to-modify-date/ for translating the dates and check if you have done the same thing.
If the still does not show correctly, please provide your site admin details and ftp details at http://support.joomlart.com/index.php?/Tickets/Ticket/View/78683 so that I can take a look..
August 16, 2011 at 11:28 pm #406610<em>@himangi 258882 wrote:</em><blockquote>Hi
Please check http://www.joomlart.com/forums/topic/how-to-modify-date/ for translating the dates and check if you have done the same thing.
If the still does not show correctly, please provide your site admin details and ftp details at http://support.joomlart.com/index.php?/Tickets/Ticket/View/78683 so that I can take a look..</blockquote>
This link is about Teline III. I have Teline IV and content of its files are different than in posts from this link. So I will use this support link, but i have to provide also user name and password to open my test site and admin. Can I add this to “Message Details”?
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
August 17, 2011 at 5:29 am #406640Hi,
I checked the details but it seems you have set a htaccess security for your site.. Can you please provide the same, so that I can see the site. I could connect via ftp but havent tried changing anything since I can not see any changes currently.
August 19, 2011 at 2:12 pm #407089<em>@himangi 260262 wrote:</em><blockquote>Hi,
I checked the details but it seems you have set a htaccess security for your site.. Can you please provide the same, so that I can see the site. I could connect via ftp but havent tried changing anything since I can not see any changes currently.</blockquote>
Sorry. My mistake – You can find user name and login in my Ticket: #DEO-224-44941.
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
August 20, 2011 at 6:03 am #407211Hi
The issue is fixed for August.. Here are the changes I made.
In file templates/ja_teline_iv/blocks/topbar.php, on line 22, I change code from
<blockquote>echo “<span class=”month”>”.date (‘M’).”</span>”;</blockquote> to <blockquote>echo “<span class=”month”>”.JText::_(date (‘M’)).”</span>”; </blockquote>
so that the month name will be treated as a language variable.In file language/pl-PL/pl-PL.ini, line no 245, I changed <blockquote>AUGUST_SHORT=”Sie” </blockquote>to <blockquote>AUG=”Sie”</blockquote> since date (‘M’) gives you AUG, not aUGUST_SHORT, which is treated as a language variable.
Now you will need to change the other months accordingly or change the format in topbar.php such that you can use AUGUST_SHORT=”Sie” for translation.khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
August 20, 2011 at 8:42 am #407234Hi,
You just replace this code from /templates/ja_teline_iv/blocks/topbar.php
echo "<span class="month">".date ('M')."</span>";
with
echo "<span class="month">".JHTML::date(date (''), 'M')."</span>";
You don’t need to change /language/pl-PL/pl-PL.ini1 user says Thank You to khoand for this useful post
August 21, 2011 at 4:30 pm #407442<em>@khoand 261027 wrote:</em><blockquote>Hi,
You just replace this code from /templates/ja_teline_iv/blocks/topbar.php
echo "<span class="month">".date ('M')."</span>";
with
echo "<span class="month">".JHTML::date(date (''), 'M')."</span>";
You don’t need to change /language/pl-PL/pl-PL.ini</blockquote>OK. It’s working 🙂 Thanx!
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 3 voices, and was last updated by piotras100 13 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Actual date – problem with days and months translation
Viewing 8 posts - 1 through 8 (of 8 total)