Skip Navigation

[Resolved] Cant find couple string to translate

This support ticket is created 5 years, 2 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.

Our next available supporter will start replying to tickets in about 0.31 hours from now. Thank you for your understanding.

This topic contains 8 replies, has 3 voices.

Last updated by rolandP 5 years, 2 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#510114

I am trying to: translate

I visited this URL:

I expected to see:

Instead, I got:

Hi,

I use Toolset Framework Installer and import classfields theme with all settings
I`m almost done but cant find couple string to translate my lang polish.
Yes I have enable my lang in settings wordpress.
Yes i check where can translate before I write on this forum.
I use Loco plugin to find this translate but cant find.

1. This is content from: add-new-ad>add-another-premium-ad
I cant find where translate this element
hidden link

2. This is content from: my-account
I cant find where translate this element:
hidden link

3. This is content my-account>my-account-settings
I cant find where translate this element:
hidden link

4. This is content from: /add-new-ad/add-a-new-free-ad/
In Post Forms i use method AJAX submission, but cant find where translate this element
hidden link

Thank you for understanding.

Best regards

#510668

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

- Are you using WPML String translation plugin?

I see the string "Please Wait. You are being redirected..." is localized in CRED plugin so to translate it you need WPML String Translation plugin to translate those strings.

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#510689

Hi Minesh,

Open private box I will send you my debug and access to my website. Please.

I dont use WPML.

best regards
Krystian

#510692

Minesh
Supporter

Languages: English (English )

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

*** 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.

#511544

Minesh
Supporter

Languages: English (English )

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

Unfortunately, the wp-admin URL is not loaded, I mean I do not able to access the wp-admin login page. The wp-admin login page not loaded successfully.

Could you please check once and resend me the access details.

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

#514801

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Krystian,

Minesh is in vacation, I take care this thread.
It should be a compatibility problem between "Loco Translate" plugin and CRED plugin, CRED plugin is full compatible with WPML plugin:
https://wpml.org

As you can see all strings in the CRED form are wraped into shortcode [wpml-string], you can translate then with WPML string translation:
https://wpml.org/documentation/getting-started-guide/string-translation/

#515166

Hi,

I do not want to use wpml. My site has one language.

I use loco for generate po file from plugin. Then I use software for windows po edit to translate.

Can you help me fint where translate string to my lang. I dont use english only polish lang.

1. This is content from: add-new-ad>add-another-premium-ad
I cant find where translate this element
hidden link

2. This is content from: my-account
I cant find where translate this element:
hidden link

3. This is content my-account>my-account-settings
I cant find where translate this element:
hidden link

4. This is content from: /add-new-ad/add-a-new-free-ad/
In Post Forms i use method AJAX submission, but cant find where translate this element
hidden link

best regards

#515249

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Q1) This is content from: add-new-ad>add-another-premium-ad
hidden link
Since your screenshot isn't in English, I assume it is CRED form "Add new xxx" button, it is defined in CRED plugin file \cred-frontend-editor\library\toolset\toolset-common\toolset-forms\templates\metaform.php, line 59:

		echo apply_filters( 'toolset_button_add_repetition_text', esc_attr( sprintf( __( 'Add new %s', 'wpv-views' ), $cfg['title'] ) ), $cfg );

You can translate it with wordpress filter hook 'gettext'
https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
or the CRED filter hook 'toolset_button_add_repetition_text', see similar thread:
https://toolset.com/forums/topic/change-repeating-field-control-texts/#post-452602

Q2) my-account
hidden link
It should be outputted from Views shortcode [wpv-login-form], you can translate it with wordpress filter hook 'gettext'
for example, for example add below codes into your theme/functions.php:

add_filter('gettext', 'mycustom_func_1', 10, 2);
function mycustom_func($translated_text, $domain){
    if($translated_text == 'Username or Email'){
        $translated_text = 'Username or Email in Polish ';
    }
    return $translated_text;
}

Q3) those text are defined in the content template "My Account sidebar", you can modify the content template directly

Q4) Same as Q2, you can translate it with wordpress filter hook 'gettext'

add_filter('gettext', 'mycustom_func_2', 10, 2);
function mycustom_func($translated_text, $domain){
    if($translated_text == 'Please Wait. You are being redirected...'){
        $translated_text = 'Please Wait. You are being redirected...  in Polish';
    }
    return $translated_text;
}
#515779

Thank you.