Link text translation issue

ClassiBase classifieds script Forums General help Link text translation issue

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  Melchior 3 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1000 Reply

    Melchior
    Participant

    Hi,

    I’m building a multilingual website with Classibase 1.4.4 French and I encounter one issue on translation:

    When logged as a user, in Admin panel>Edit account, the ‘upgrade to dealer account’ link text cannot be translated into another language. Indeed, it doesn’t exist in the list of expressions for translation in the built-in translation module.

    I traced that link in editAccount.php in line 14.

    How can that issue be fixed?

    Thanks in advance for your help,

    Regards,

    Melchior.

    #1005 Reply

    ClassiBase
    Keymaster

    Yes we missed that term to pass for translation. To fix it replace line 14 like following.

    echo ' - <a href="' . Language::get_url('admin/upgradetodealer/') . '">upgrade to dealer account</a>';

    replace with

    echo ' - <a href="' . Language::get_url('admin/upgradetodealer/') . '">' . __('Upgrade to dealer account') . '</a>';

    Then go to “Settings” -> “Language” from admin panel and click on “Translate” button next to language. On opened page click on “Rebuild translation terms” button. This will search script for new terms and add them to message.php file. It will also remove unused terms from message.php.

    After the term added for translation click on “Display empty values” or search term using search field, and write translation to text field next to term. Then save changes.

    Thank you for reporting, we added it to script and will be available with next release.

    #1010 Reply

    Melchior
    Participant

    Thanks a lot, it works perfectly.

    Cheers,

    Melchior.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Link text translation issue
Your information: