[wp-trac] [WordPress Trac] #24681: Translating custom image size names
WordPress Trac
noreply at wordpress.org
Wed Jul 3 20:12:46 UTC 2013
#24681: Translating custom image size names
---------------------------+-----------------------------
Reporter: sami.keijonen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
---------------------------+-----------------------------
Should there be parameter in
[http://codex.wordpress.org/Function_Reference/add_image_size
add_image_size] for a translated name? Now we need to use
{{{image_size_names_choose}}} hook.
Something like {{{add_image_size( $name, $translated_name, $width,
$height, $crop );}}}
Example {{{add_image_size( 'my-thumbnail-portfolio', __( 'My Portfolio
thumbnail', 'text-domain' ), 450, 309, true );}}}
I wrote [https://foxnet-themes.fi/2013/07/03/translating-custom-image-
sizes/ article about it] the get the idea why and how to translate custom
image sizes now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24681>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list