Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strings of 'kadence-extension-block-css' are not displayed translated #546

Open
DAnn2012 opened this issue Sep 1, 2024 · 2 comments
Open

Comments

@DAnn2012
Copy link
Contributor

DAnn2012 commented Sep 1, 2024

Strings of 'kadence-extension-block-css' are not displayed translated:

Example (Language set to Dutch)
custom-css-kadence

// Block CSS Scripts & Styles.
$kadence_block_css_meta = kadence_blocks_get_asset_file( 'dist/extension-block-css' );
wp_register_script( 'kadence-extension-block-css', KADENCE_BLOCKS_URL . 'dist/extension-block-css.js', array_merge( $kadence_block_css_meta['dependencies'], array( 'wp-api', 'kadence-blocks-js' ) ), $kadence_block_css_meta['version'], true );
// wp_register_style( 'kadence-extension-block-css', KADENCE_BLOCKS_URL . 'dist/extension/block-css.css', array( 'wp-edit-blocks' ), $kadence_block_css_meta['version'] );
wp_set_script_translations( 'kadence-extension-block-css', 'kadence-blocks' );

I noticed that the "kadence-blocks-nl_NL-1a73d00ae8457b305d7bec9a7dab6918.json" file with the translations is not created in the "/wp-content/languages/plugins/" folder. I tried creating it manually and my translations showed up.

@DAnn2012
Copy link
Contributor Author

Hi @kadencewp and @oakesjosh

please could you kindly take a look at this my Issue report?

Thank you.

@DAnn2012
Copy link
Contributor Author

Hi @kadencewp and @oakesjosh

I would also like to point out that the strings in this file: https://github.com/stellarwp/kadence-blocks/blob/master/src/extension/block-css/index.js and the corresponding file: https://plugins.trac.wordpress.org/browser/kadence-blocks/tags/3.3.2/dist/extension-block-css.js

are not included among those present on translate.wordpress.org and in the kadence-blocks.pot file.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant