• I want to translate the field relating to the Heading text (e.g. “Article Contents”)

    I have looked in WPML> String Translation, through all the texts and in the “table-of-contents-plus” domain, but can’t see the text to translate.

    Can anyone help find this text?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    Can you tell me which theme are you using?
    Where are you modifying Heading text field, is it available via Customizer?

    Warm regards

    • This reply was modified 8 years, 4 months ago by Vuk Vukovic.
    Thread Starter dngood

    (@dngood)

    I am using the supportdesk theme (https://themeforest.net/item/support-desk-a-responsive-helpdesk-theme/4321280).

    In Settings> TOC+, I have set the Heading Text to display “Article Contents”, but would like to translate this for other languages.

    I cannot see the text “Article Contents” to translate in WPML’s string translator.

    I hope that makes more sense!

    David.

    Sure, if it is located in WP admin area, you should go to
    WPML > String Translation > Translate texts in admin screens (at the bottom-left of the page)

    Try to find desired string among checkboxes and collapsed menus.
    Check the checkbox and go for Apply.

    Thread Starter dngood

    (@dngood)

    Hi, sorry if I am misunderstanding you, but I don’t want to translate the name of the field in the admin panel, but I want to translate the text I enter:

    Article Contents text

    i.e. I want to translate the text “Article Contents”

    I don’t see this text anywhere in WPML>String Translation

    Sure, that is what I understood.

    Have you followed my previous instructions?
    Have you found this option from the image?

    Translate texts in admin screens

    Thread Starter dngood

    (@dngood)

    Sorry for the delay…

    I have done this, and see the “[toc-options]heading_text” string in the “admin_texts_toc-options” domain, and I have translated this, but the front-end still shows the default (english) “Article Contents” text.

    Any ideas?

    this helped me.
    change the last line in toc.php from:

    // do the magic
    $tic = new toc();

    To this:

    // do the magic
    add_action('plugins_loaded', 'toc_init', 12);
    function toc_init() {
      global $toc;
      $toc = new toc();
    }

    sorry, the correct code is:

    // do the magic
    add_action('plugins_loaded', 'toc_init', 12);
    function toc_init() {
      global $tic;
      $tic = new toc();
    }
    Thread Starter dngood

    (@dngood)

    Thanks @soap.

    @vukvukovich, can you comment on this – I would rather not change your core .php pages which might be overwritten in future updates.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WPML and Translation of ‘Heading text’’ is closed to new replies.