New language text domain?

I wanted to translate the new version of pro 5, especially the area of Content Dock “Do not show again”.

Bildschirmfoto 2021-08-31 um 09.29.17

but i couldn’t find it in the pro.pot, and i couldn’t find it even if i create a new pot from pro sourcecode.

Also i found new text-domain ‘cornerstone’ in the translation. Is __x__ still the desired text-domain or does cornerstone need a separate po file?

Hello @Regnalf,

Thanks for writing to us.

In case if you are using the X theme then the Cornerstone plugin is been installed as a separate page builder plugin in that case you need to use the text domain as “cornerstone” in case if you are using the Pro theme then you can use the text domain as “__x__” since Cornerstone page builder plugin is inbuilt in the Pro theme so you can not have multiple text domain in the theme.

In case if you have not seen our doc of translation please have a look at it.

To translate that the specific text please have a look at this doc for reference.

Hope it helps
Thanks

Thanks, but there is still a little bit of confusion left!

When I open your pro.pot file it contains 2,105 records. When I extract strings from the whole source code with PO-Edit, I get 3,642 records.

Bildschirmfoto 2021-09-01 um 16.25.52

The version I extracted with PO-Edit also contains these with the TextDomain ‘cornerstone’.

Bildschirmfoto 2021-09-01 um 16.26.08

Does that mean that when I use your pro.pot file I have no translations of the ‘cornerstone’ phrases?

Hello @Regnalf,

The “Do Not Show Again” keyword is not part of the theme files. It is part of the Content Dock extension. Are you using WPML in translating your site? You should be able to translate it in the WPML > Translations. If you are using just the .pot files in translating the theme, you may need to create your own pot files for the content dock extension. You can find the files in wp-content/plugins/tco-content-dock.

As for the “Cornerstone” text domain in the Pro theme, I will forward this thread to Alex so that he can chime in and explain further how the translation of those keywords works.

Please bear with us.

I’ve extracted the strings for the content-dock and create a translation but either tco-content-dock-de_DE.po/mo or __tco__-de_DE.po/mo works! I copied it to the /language/plugins folder.

Hi @Regnalf,

I’m sorry, things are a bit mixed up at the moment regarding text domains. We’re going to change everything in the /cornerstone folder of Pro to use cornerstone as the text domain. This is because many things are duplicated across Pro/Cornerstone requiring translation multiple times. We’re going to be cleaning this all up over the next few cycles.

Try adding this in a Child Theme

add_action( 'init', function() {
  if (function_exists('CS')) {
    load_plugin_textdomain( 'cornerstone', false, CS()->path('/lang') );
  }
} );

Then in cornerstone/lang there’s another .pot you can translate.

Thx @alexander for that info, then i will wait with final translation.

You are most welcome, @Regnalf!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.