Skip Navigation

[Gelöst] No Comments and 1 Comment are not translated to german language

This support ticket is created vor 6 Jahren, 1 Monat. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 5 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 6 Jahren, 1 Monat.

Assistiert von: Minesh.

Author
Artikel
#1133255

Tell us what you are trying to do?
Some language strings are not translated. No Comments and 1 Comment is not in german. And I can't find german po file for views and types.

I have create the comments with shortcode:

<span class="comment-comments"> [wpv-post-comments-number]</span>

can you help me to solve this?

What is the link to your site?
versteckter Link

#1133338

Minesh
Supporter

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Well - I would like to know here are you using WPML plugin here to translate your strings?

#1133382

thank you for your fast reply.

I don't use wpml. Iuse poedit to translate my strings or loco translate

Regards
Andre

#1133523

Minesh
Supporter

Sprachen: Englisch (English )

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

Well - you will find mo files at:
=> wp-views\vendor\toolset\toolset-common\languages

What if you try to add following code to your current theme's functions.php file:

add_filter('gettext', 'func_translate_strings', 10, 2);
function func_translate_strings($translated_text, $domain){
    if($domain != 'wpv-views') return $translated_text;

    if($translated_text == 'No Comments'){
        $translated_text = 'No Comments in your langaage';
    }
    return $translated_text;
}

More help:
https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

#1133567

thank you.

I have try it but nothing happens. I have clear the cache but it's the same.

and where can I find the german views po file?

best regards
Andre

#1134210

Minesh
Supporter

Sprachen: Englisch (English )

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

We just ship MO files, no other language PO files is shared with the plugin.

Could you please share access details with me so I can check what's going wrong there?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.