I've successfully coded an Options page for the theme I'm developing for my personal Website but translation doesn't work inside an array.
Here's the code:
$options = array (
array( "name" => __( 'Title', 'my_theme' ),
"type" => "title"),
array( "type" => "open"),
array( "name" => __( 'Title separation character', 'my_theme' ),
"desc" => __( 'Enter the character(s) you want the title be separated with.', 'my_theme' ),
"id" => $shortname."_t_s",
"type" => "text",
"std" => "|"),
array( "name" => __( 'Title pages separation character', 'my_theme' ),
"desc" => __( 'Enter the character(s) you want the page title be separated with.', 'my_theme' ),
"id" => $shortname."_t_p_s",
"type" => "text",
"std" => "::"),
array( "type" => "close"),
Translation inside other pages and inside the options page works. In arrays just doesn't work :(
What's wrong in the code?
I'm using Poedit for Windows. Strings appear as translated.
Thanks in advance,
Marco (from Italy)