December 23, 2022 at 10:25 am #1377192December 24, 2022 at 9:00 pm #1377302
unfortunately, your screenshot is not working so I’m not sure what you meant, perhaps you made an error in your custom post type, try using the /enfold/includes/admin/register-portfolio.php file for reference and see this thread.
MikeOctober 2, 2023 at 12:27 pm #1421123
It is been a while. Here a screenshot;
‘Page’ becomes ‘Pagina’ (NL)
But how to translate voor example ‘Fund’ into ‘Fonds’ (NL)
Labels in the custom post type are correct. But her it uses the cpt ‘slug’ instead of the ‘title’.
Team VDLPOctober 3, 2023 at 5:59 pm #1421307
Is this screenshot in the backend? I believe that you can edit the language file for your language with Poedit, the language files are at enfold/lang/
MikeNovember 24, 2023 at 8:36 am #1426369
This is idd a screenshot in the backend. But it is not a language string. So it will not be listed in de language files.
This list outputs for example the ‘Post Type Key’ Fund (CPT) and Alb_elements, instead of the ‘Singular Label’ of this post type.November 24, 2023 at 9:51 am #1426378
Thank you for the update.
Did you remove the above screenshot? How did you create the custom post type? If you register the CPT manually, make sure that the post type name is wrapped in the following functions so that they can be translated to other languages.
You can find the label examples for the Portfolio post type in the /enfold/includes/admin/register-portfolio.php file around line 11.
$labels = array( 'name' => _x( 'Portfolio Items', 'post type general name','avia_framework' ), 'singular_name' => _x( 'Portfolio Entry', 'post type singular name','avia_framework' ), 'add_new' => _x( 'Add New', 'portfolio', 'avia_framework' ), 'add_new_item' => __( 'Add New Portfolio Entry', 'avia_framework' ), 'edit_item' => __( 'Edit Portfolio Entry', 'avia_framework' ), 'new_item' => __( 'New Portfolio Entry', 'avia_framework' ), 'view_item' => __( 'View Portfolio Entry', 'avia_framework' ), 'search_items' => __( 'Search Portfolio Entries', 'avia_framework' ), 'not_found' => __( 'No Portfolio Entries found', 'avia_framework' ), 'not_found_in_trash' => __( 'No Portfolio Entries found in Trash', 'avia_framework' ), 'parent_item_colon' => '' );
- You must be logged in to reply to this topic.