Move presets to json objects
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user