test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • baijianpeng Friend
    #902354

    On the homepage of the JA Hotel template v1.0.3 quickstart installation, there are 3 ACM modules published to "section-2" position. Each of those 3 ACM modules has a button showing "View All".

    However, these button texts were not in the language file, instead, they were hardcoded in the php file inside the foler /templates/ja_hotel/acm/ .

    If the button text was hardcoded, that means, we can not translate them via language file. The worse is, we can not make it work on multi-lingual website.

    So, I think this is not a good idea to hardcode the button texts inside php files.

    You can also find out that, this is not only in one single php file, but in many php files of different "type" of ACM module.

    Could you please move all interface strings of ACM module into its language file?

    Thank you.

    Pankaj Sharma Moderator
    #902388

    Hi
    Kindly replace the View all text with

    <?php echo JText::_('TPL_VIEW_ALL'); ?>

    The define the below code in language file (en-GB.tpl_ja_hotel.ini)

    TPL_VIEW_ALL                    = "View all"

    And change the view all word with your word .
    In this way you can define it for different languages .
    I also forward your feedback regarding this matter to development team to consider this in upcoming version of template .

    baijianpeng Friend
    #903820

    Ok, thank you.

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

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

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