Support » Plugin: Carbon Fields » CF1.6 and l10n

  • Resolved hermit931

    (@hermit931)


    Broke compatibility with l10n when I try make container. After translate container name, container behavior becomes unpredictable.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Atanas Angelov

    (@atanasangelovdev)

    Hi @hermit931,

    Since Theme Option containers resolve their internal slug/filename from their title, translating the title will cause this issue.
    The solution is to use the set_page_file() method to define your own slug/filename so the container does not rely on the title e.g.:

    
    Container::make( 'theme_options', __( 'My Translated Container Title', 'crb' ) )
    	->set_page_file( 'my-container' )
    	->add_fields( array( ... ) );
    
Viewing 1 replies (of 1 total)
  • The topic ‘CF1.6 and l10n’ is closed to new replies.