Making WordPress.org


Ignore:
Timestamp:
09/21/2015 02:20:23 PM (9 years ago)
Author:
obenland
Message:

WP.org Themes: Add a translation section.

This is supposed to encourage users to get involved and help translate themes
and hopefully more into their languages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/theme-single.php

    r1771 r1900  
    6666                        );
    6767                    }
    68                     echo implode( ', ', $tag_links );                       
     68                    echo implode( ', ', $tag_links );
    6969                    ?>
    7070                </div><!-- .theme-tags -->
     
    123123                </div><!-- .theme-support -->
    124124
     125                <div class="theme-translations">
     126                    <h4><?php _e( 'Translations', 'wporg-themes' ); ?></h4>
     127                    <p>
     128                        <a href="<?php echo esc_url( "https://translate.wordpress.org/projects/wp-themes/{$theme->slug}" ); ?>">
     129                            <?php printf( __( 'Translate %s', 'wporg-themes' ), $theme->name ); ?>
     130                        </a>
     131                    </p>
     132                </div><!-- .theme-translations -->
     133
    125134                <div class="theme-devs">
    126135                    <h4><?php _e( 'Development', 'wporg-themes' ); ?></h4>
Note: See TracChangeset for help on using the changeset viewer.