Skip Navigation

[Resolved] Traduct placeholder post form

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 5 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1325809

Hi,
I need to translate the placeholder in postform with wpml, can you tell me how to do that ?
I also have to translate the label "add a new file" for the repeating image fields? but I do not see anywhere or translate it.
Thanks.

#1325849

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Normally, you can translate all text from WPML's String Translation. Please check the following Doc:
=> https://toolset.com/documentation/translating-sites-built-with-toolset/

If Text is not controllabled by String Translation, you can use the gettext() function. For example:

add_filter( 'gettext', 'tssupp_custom_translate', 20, 3 );
/**
 * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
 */
function tssupp_custom_translate( $translated_text, $text, $domain ) {
 
    if ( $text == 'Add new' && $domain = 'wpv-views' ){
        $translated_text = "replace Add New in another language";
    }
 
    return $translated_text;
}