Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1377192

    Hi There team Kriesi,

    Is there a way to translate these post types (screenshot). For example. When linking a button to a page, post or other custom post type, it shows the post type name as label instead of a proper translation / label.

    image

    Kind regards,

    Arjan
    VDLP

    #1377302

    Hey vdlpwp,
    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.

    Best regards,
    Mike

    #1421123

    Hi Mike,

    It is been a while. Here a screenshot;

    https://i.postimg.cc/MGM0V0MV/1a488869-d059-4cb8-913c-2d581107798c.png

    ‘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’.

    Kind regards,
    Team VDLP

    #1421307

    Hi,
    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/

    Best regards,
    Mike

    #1426369

    Hi Mike,

    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.

    #1426378

    Hi,

    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.

    // https://developer.wordpress.org/reference/functions/_x/
    // https://developer.wordpress.org/reference/functions/__/

    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'	=> ''
    				);
    

    Best regards,
    Ismael

    #1432016

    Hi Ismael,

    Our apologies for the late reply.

    We added our custom post types with ACF. It should return the custom post type ‘name’ instead of the ‘Post Type Key’.

    For example ‘post’ should be ‘Berichten’, like ‘page’ is ‘Pagina’s’ in the screenshot beneath (Masonry element);
    https://i.postimg.cc/MGM0V0MV/1a488869-d059-4cb8-913c-2d581107798c.png

    Is there any workaround or filter/function for our child theme to fix this?

    Kind regards
    Team VDLP

    #1432104

    Hi,

    Thank you for the info.

    We may need to access in order to properly check the issue. Please provide the WP and S/FTP login details in the private field.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.