Move presets to json objects

This commit is contained in:
Brian Miyaji
2014-05-02 17:27:18 +10:00
parent 6ce1953dc2
commit 388817111a
22 changed files with 438 additions and 365 deletions

View File

@@ -110,6 +110,12 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
if ( is_admin() ):
if ( is_sp_config_type( $typenow ) ):
switch ( $untranslated_text ):
case 'Excerpt':
$translated_text = __( 'Description', 'sportspress' );
break;
case 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>':
$translated_text = __( 'The description is not prominent by default; however, some themes may show it.', 'sportspress' );
break;
case 'Slug':
$translated_text = ( in_array( $typenow, array( 'sp_column', 'sp_statistic' ) ) ) ? __( 'Key', 'sportspress' ) : __( 'Variable', 'sportspress' );
break;