From 6d8fa2f3883adca108d06eb62892eda2aa3ad028 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 18 May 2011 19:39:24 +0000 Subject: [PATCH] Allow Codex URLs to be translated. Don't offer wp.org/about/ URLs for translation. props zeo, xibe. fixes #17480. git-svn-id: http://svn.automattic.com/wordpress/trunk@17960 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/credits.php | 12 +++++------- wp-admin/freedoms.php | 12 ++++++------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/wp-admin/credits.php b/wp-admin/credits.php index a2e7e7fe8..be1a391a5 100644 --- a/wp-admin/credits.php +++ b/wp-admin/credits.php @@ -34,7 +34,7 @@ function wp_credits() { if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) return false; - + $results = unserialize( wp_remote_retrieve_body( $response ) ); if ( !is_array( $results ) ) @@ -61,14 +61,12 @@ include( './admin-header.php' ); $results = wp_credits(); if ( !isset( $results['people'] ) ) { - echo '

' . sprintf( __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), - 'http://wordpress.org/about/', - 'http://codex.wordpress.org/Contributing_to_WordPress' ) . '

'; + echo '

' . sprintf( __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), 'http://wordpress.org/about/' ) . '

'; include( './admin-footer.php' ); exit; } -echo '

' . __( "WordPress is created by a worldwide team of passionate individuals. We couldn't possibly list them all, but here some of the most influential people currently involved with the project:" ) . "

\n"; +echo '

' . __( 'WordPress is created by a worldwide team of passionate individuals. We couldn’t possibly list them all, but here some of the most influential people currently involved with the project:' ) . "

\n"; $gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/'; @@ -93,7 +91,7 @@ if ( isset( $results['props'] ) ) { } ?> -

Get involved in WordPress.' ), 'http://codex.wordpress.org/Contributing_to_WordPress' ); ?>

+

Get involved in WordPress.' ); ?>

\ No newline at end of file +?> diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php index 7c9d78510..cf7309a27 100644 --- a/wp-admin/freedoms.php +++ b/wp-admin/freedoms.php @@ -18,25 +18,25 @@ include( './admin-header.php' );

-

license, the GPL.' ); ?>

+

license, the GPL.' ), 'http://wordpress.org/about/license/' ); ?>

  1. -
  2. +
  3. -
+ -

check out our trademark guidelines first.' ); ?>

+

check out our trademark guidelines first.' ), 'http://wordpressfoundation.org/trademark-policy/' ); ?>

plugins and themes there. If you get a plugin or theme from another source, make sure to ask them if it’s GPL first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url ); ?>

+printf( __( 'Every plugin and theme in WordPress.org’s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding plugins and themes there. If you get a plugin or theme from another source, make sure to ask them if it’s GPL first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'http://wordpress.org/about/license/' ); ?>

Free Software Foundation.' ); ?>

- \ No newline at end of file +