WPML String Translation Issue - by ddoman90

This topic has 9 replies, 3 voices, and was last updated 7 years, 9 months ago ago by Jack Richardson

  • Avatar: ddoman90
    ddoman90
    Participant
    July 18, 2016 at 21:03

    I cannot translate the theme related texts with WPML string translation. I can translate them in the admin part, but it is not appearing on visitor side.

    8 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 19, 2016 at 07:55

    Hello,

    Please provide WP Dashboard credentials in private content.

    Best regards,
    Jack Richardson.

    Avatar: ddoman90
    ddoman90
    Participant
    July 19, 2016 at 21:09

    credentials in private content

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    July 20, 2016 at 07:41

    Hello,

    As I see some strings aren’t translated, for example “Your Account”:
    http://prntscr.com/bv47ix

    Please check the strings again.

    Regards,
    Eva Kemp.

    Avatar: ddoman90
    ddoman90
    Participant
    July 20, 2016 at 20:00

    It is true. I don’t have translations for all of the strings. I thought I can see the partial translated languages too. Isn’t it possible?

    Avatar: ddoman90
    ddoman90
    Participant
    July 20, 2016 at 20:03

    For example I have translation for Logout in Hungarian (Kijelentkezés). If i change the language to Hungarian it still remains Logout.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 21, 2016 at 09:10

    Hello,

    I’ve added translation for “legenda” domain http://prntscr.com/bvl093 . Clear browser cache and check “Logout” link now.
    Also check all strings with “legenda” domain.

    Best regards,
    Jack Richardson.

    Avatar: ddoman90
    ddoman90
    Participant
    July 22, 2016 at 07:11

    Thanks, I see it is working. One more question. The site, what I mentioned is the development version of the production site. I cannot send you the production url, because it isn’t live yet(only by rewriting the local hosts file). I don’t really know what are these domains. On the production site I cannot see any legenda domain (what I can see is “default”). Is it possible to create it or should I search for different “domain-name”. Thanks for your answer.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 22, 2016 at 08:47

    Hello,

    1) You need add “Text Domain: legenda” in the header of style.css file in the theme directory, for example

    /*
    Theme Name: Legenda- 8theme WordPress theme
    Theme URI: https://www.8theme.com/
    Author: 8theme
    Author URI: http://themeforest.net/user/8theme
    Description: ThemeForest Premium Theme
    Version: 2.5
    License: GNU General Public License version 3.0
    License URI: http://www.gnu.org/licenses/gpl-3.0.html
    Text Domain: legenda
    */

    2) Then scan the strings in WPML > Theme and Plugins Localization, but before you need tick
    “Automatically use theme or plugin text domains, when gettext calls does not use a string literal.”

    Best regards,
    Jack Richardson.

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.