Making WordPress.org


Ignore:
Timestamp:
09/22/2015 01:41:09 PM (9 years ago)
Author:
samuelsidler
Message:

Theme Directory: Both "Theme Style Sheet" links should be translatable.

Props SergeyBiryukov.
Fixes #1243.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r1857 r1906  
    120120
    121121        if ( ! $this->theme_name = $this->theme->get( 'Name' ) ) {
    122             return __( "The theme has no name. Add it to style.css and upload the theme again. <a href='https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet'>Theme Style Sheets</a>", 'wporg-themes' );
     122            return sprintf( __( 'The theme has no name. Add it to style.css and upload the theme again. <a href="%s">Theme Style Sheets</a>', 'wporg-themes' ), __( 'https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet', 'wporg-themes' ) );
    123123        }
    124124
     
    138138        $theme_description = $this->strip_non_utf8( (string) $this->theme->get( 'Description' ) );
    139139        if ( empty( $theme_description ) ) {
    140             return sprintf( __( 'The theme has no description. Add it to <code>style.css</code> and upload the theme again. <a href="%s">Theme Style Sheets</a>', 'wporg-themes' ), 'https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet' );
     140            return sprintf( __( 'The theme has no description. Add it to <code>style.css</code> and upload the theme again. <a href="%s">Theme Style Sheets</a>', 'wporg-themes' ), __( 'https://codex.wordpress.org/Theme_Development#Theme_Style_Sheet', 'wporg-themes' ) );
    141141        }
    142142
Note: See TracChangeset for help on using the changeset viewer.