test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • davidyv Friend
    #154100

    I like to translation the name of these profiles in the Cpanel to chinese, Please help…


    1. Screenshot-2-david
    Saguaros Moderator
    #354876

    now, you copy this file: the pluginssystemjat3base-themesdefaultblocksusertoolsprofiles.php and copy it into the templates/ja_droid/usertools/ folder. And You open the copying file, and find the fillowing code:

    [PHP]
    <?php echo $profile ?>
    [/PHP]
    replace:
    [PHP]
    <?php echo JText::_($profile) ?>
    [/PHP]

    and then you make some translating text into the languageen-GBen-GB.tpl_ja_droid.ini as following:

    DEFAULT=Default
    GREY-COLOR=Grey Color
    GREEN-COLOR=Green Color
    RED-COLOR=Red Color

    davidyv Friend
    #354905

    Thank tienhc for your inspiration! The following step is ok:

    First we need to copy this file:

    /plugins/system/jat3/base-themes/default/blocks/usertools/profiles.php

    to this location, creating the appropriate directories in the event they don’t already exist:

    /templates/ja_droid/blocks/usertools/profiles.php

    And You open the copying file, and find the fillowing code:
    [PHP]<label for=”user_profile_<?php echo $profile ?>” title=”<?php echo $profile ?>”><span><?php echo $profile ?></span>[/PHP]

    replace:

    [PHP]<label for=”user_profile_<?php echo $profile ?>” title=”<?php echo JText::_($profile) ?>”><span><?php echo JText::_($profile) ?></span>[/PHP]

    And we need to copy this file:

    /language/en-GB/en-GB.tpl_ja_droid.ini

    to this location:

    languageYOUR LANG CODE(IE: languagezh-CN)

    And rename the en-GB.tpl_ja_droid.ini to YOUR LANG CODE.tpl_ja_droid.ini(IE: zh-CN.tpl_ja_droid.ini)

    And You open the renamed file to make some translating text as following:

    DEFAULT=YOUR LANG NAME
    GREY-COLOR=YOUR LANG NAME
    GREEN-COLOR=YOUR LANG NAME
    RED-COLOR=YOUR LANG NAME
    VIOLET-COLOR=YOUR LANG NAME

    Done!

    rlgonzalez50 Friend
    #356729

    I could not do this. Can you help please?

    Saguaros Moderator
    #356739

    Did you resolve this issue , the davidyv’s solution worked for you?

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

This topic contains 5 replies, has 3 voices, and was last updated by  Saguaros 14 years, 3 months ago.

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