Skip Navigation

[Resolved] Do I have to translate with WPML?

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to translate the "--- not set ---" string in a CRED form, but I cannot find it to translated in any MO or PO files.

Solution: This string is not currently translatable using the standard MO / PO workflow. We are working on a fix to make this string translatable in CRED 1.9.3, which should be available soon.

This support ticket is created 7 years, 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#522066

Do I have to translate with WPML?

#522067

Is it possible to translate with .po and .mo files?

#522135

Hi, it's not required to use WPML. You can use .po / .mo files. Which plugins would you like to translate?

#522146

I want to translate Types, CRED and views to start with. Where can I find the files and where should I put them?

#522158

Where to find PO / POT files:
Types - wp-content/plugins/types/library/toolset/types/embedded/locale/
Views - wp-content/plugins/wp-views/embedded/toolset/toolset-common/languages/orig
CRED - wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/locale/orig

Where to place your translated .mo files:
Types - wp-content/plugins/types/library/toolset/types/embedded/locale/
Views - wp-content/plugins/wp-views/embedded/toolset/toolset-common/languages
CRED - wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/locale

Let me know how it goes

#522399
Screen Shot 2017-05-10 at 08.06.30.png

Thanks.
It don't work. I have a select field in "Post fields" and showing it with "CRED". I found the text "--- not set ---" in types translation files but it don't translate in frontend.

#522579

Hi, can you answer the following questions:

What file(s) did you change?
What did you name your exported file(s)?
Where did you place your exported file(s)?

#522883

Hi

I made a new translate file from "types.pot" and put the new file with the name "types-sv_SE.mo" in "wp-content/plugins/types/library/toolset/types/embedded/locale/"

#523113

Okay can you provide your debug information so I can take a look at your site configurations? We have an article with instructions located here: https://toolset.com/faq/provide-debug-information-faster-support/

NOTE: Please be sure to check the box to indicate you can provide debug info and paste your debug info in the debug field provided, and NOT in the general response field.

#523322

Great. Tell me if you need more information.

#524011
Screen Shot 2017-05-14 at 3.01.00 PM.png
Screen Shot 2017-05-14 at 2.55.11 PM.png

Hi, when I create a new site using the Swedish language, I see the default option "--- inte inställd ---" instead of "--- not set ---" (see screenshot). Can you tell me more about your site?

- Was this an English or other language site that was changed to Swedish?
- If you reinstall WordPress core, does the "not set" string change to "inte inställd"? See the screenshot for the reinstallation screen.

* take a full backup of your site before reinstalling WP *

#524105

Hi

Of course, I had the website settings to English. Now I changed to Swedish and I also get "--- inte inställd ---".
But I tried to change this to "--- ej vald ---" but I don't take that.

#524249

After discussing with out developers, it seems like this is currently not manageable using .mo and .po files, so I apologize for this oversight on my part. There is currently a ticket in place to resolve this issue, but in the meantime they have offered a workaround. Please add the following code to your theme's functions.php file:

function changenotset($current_options, $title, $type) {
     foreach ($current_options as &$option) {
         if ($option['#title']=='--- inte inställd ---') {
             $option['#title'] = "--- ej vald ---";
         }
     }
     return $current_options;
 }
 add_filter("wpt_field_options", 'changenotset', 10, 3);

Please let me know if this works for you.

#525654

Hi
Thanks for your answer. That is not on option if I have many translations. Is there a way to be informed when the issue is solved? I can maybe wait for that.

#525915

I see, and I understand that this isn't a practical approach for a large number of translations. As of right now, I do not have an estimated timeline for delivery of the permanent .mo / .po fix for this particular string, unfortunately. However, this workaround is not normal and should not need to be applied with a large number of translations because most strings can be translated with .mo / .po files. If you have a list of terms that you find untranslatable, I will be happy to share them all with our developers so they are aware that there are multiple gaps to fill. That way once they have time to tackle this task, they can knock out all the translation gaps with a single release.