test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Andre Prior Friend
    #129817

    I followed the date translation tipps and it worked when my website is online, but in my local network iam getting the following error message

    Notice: Use of undefined constant l – assumed ‘l’ in /srv/www/htdocs/diplomatenpost/templates/ja_teline_ii/index.php on line 113

    This is the line in the php script

    <?php echo JHTML::_(‘date’, date(l), JText::_(‘DATE_FORMAT_LC5’)) ?>

    and this is in my language file

    DATE_FORMAT_LC5=<span>%A,</span><div>%d %B %Y</div>

    VisiGod Friend
    #254390

    Is your localhost on IIS?
    try with:
    <?php echo JHTML::_(‘date’, date(d), JText::_(‘DATE_FORMAT_LC5’)) ?>

    Andre Prior Friend
    #254394

    Sadly it didnt work 🙁

    IIS? dont know, its a apache server in our local network. Everythink else working great.

    VisiGod Friend
    #254396

    was the date displayed prior to the fix you applied?

    Andre Prior Friend
    #254400

    Yes, it showed the date correctly in english. I tried the fix on my online version and it worked perfectly but not in our intranet offline solution.

    VisiGod Friend
    #254403

    ****
    try with
    date(%A)

    Andre Prior Friend
    #254889

    I tried

    <?php echo JHTML::_(‘date’, date(%A), JText::_(‘DATE_FORMAT_LC5’)) ?>

    but its giving me a parse error.

    Any other idea? 🙁

    VisiGod Friend
    #254892

    Nope, I am lost.
    date(l) works on all hosts I tested it.

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

This topic contains 8 replies, has 2 voices, and was last updated by  VisiGod 16 years, 5 months ago.

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