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
This commit is contained in:
parent
7f98b9beaf
commit
6d8fa2f388
|
@ -34,7 +34,7 @@ function wp_credits() {
|
||||||
|
|
||||||
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
|
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$results = unserialize( wp_remote_retrieve_body( $response ) );
|
$results = unserialize( wp_remote_retrieve_body( $response ) );
|
||||||
|
|
||||||
if ( !is_array( $results ) )
|
if ( !is_array( $results ) )
|
||||||
|
@ -61,14 +61,12 @@ include( './admin-header.php' );
|
||||||
$results = wp_credits();
|
$results = wp_credits();
|
||||||
|
|
||||||
if ( !isset( $results['people'] ) ) {
|
if ( !isset( $results['people'] ) ) {
|
||||||
echo '<p>' . sprintf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
|
echo '<p>' . sprintf( __( 'WordPress is created by a <a href="%s">worldwide team</a> of passionate individuals. <a href="http://codex.wordpress.org/Contributing_to_WordPress">Get involved in WordPress</a>.' ), 'http://wordpress.org/about/' ) . '</p>';
|
||||||
'http://wordpress.org/about/',
|
|
||||||
'http://codex.wordpress.org/Contributing_to_WordPress' ) . '</p>';
|
|
||||||
include( './admin-footer.php' );
|
include( './admin-footer.php' );
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<p>' . __( "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:" ) . "</p>\n";
|
echo '<p>' . __( '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:' ) . "</p>\n";
|
||||||
|
|
||||||
$gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/';
|
$gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/';
|
||||||
|
|
||||||
|
@ -93,7 +91,7 @@ if ( isset( $results['props'] ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<p class="clear"><?php printf( __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ), 'http://codex.wordpress.org/Contributing_to_WordPress' ); ?></p>
|
<p class="clear"><?php _e( 'Want to see your name in lights on this page? <a href="http://codex.wordpress.org/Contributing_to_WordPress">Get involved in WordPress</a>.' ); ?></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
@ -115,4 +113,4 @@ __( 'Designer' );
|
||||||
__( 'XML-RPC Developer' );
|
__( 'XML-RPC Developer' );
|
||||||
__( 'Internationalization' );
|
__( 'Internationalization' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -18,25 +18,25 @@ include( './admin-header.php' );
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
<h2><?php _e( 'Freedoms' ); ?></h2>
|
<h2><?php _e( 'Freedoms' ); ?></h2>
|
||||||
|
|
||||||
<p><?php _e( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="http://wordpress.org/about/license/">license</a>, the GPL.' ); ?></p>
|
<p><?php printf( __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ), 'http://wordpress.org/about/license/' ); ?></p>
|
||||||
|
|
||||||
<ol start="0">
|
<ol start="0">
|
||||||
<li><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></li>
|
<li><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></li>
|
||||||
<li><?php _e( 'You have access to the source code, the freedom to study how the program works, and the freedom to change it to make it do what you wish.' ); ?></li>
|
<li><?php _e( 'You have access to the source code, the freedom to study how the program works, and the freedom to change it to make it do what you wish.' ); ?></li>
|
||||||
<li><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></li>
|
<li><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></li>
|
||||||
<li><?php _e( 'You have the freedom to distribute copies of your modified versions to others. By doing this you can give the whole community a chance to benefit from your changes.' ); ?></li>
|
<li><?php _e( 'You have the freedom to distribute copies of your modified versions to others. By doing this you can give the whole community a chance to benefit from your changes.' ); ?></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<p><?php _e( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We’re flattered every time someone spreads the good word, just make sure to <a href="http://wordpressfoundation.org/trademark-policy/">check out our trademark guidelines</a> first.' ); ?></p>
|
<p><?php printf( __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We’re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ), 'http://wordpressfoundation.org/trademark-policy/' ); ?></p>
|
||||||
|
|
||||||
<p><?php
|
<p><?php
|
||||||
|
|
||||||
$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : 'http://wordpress.org/extend/plugins/';
|
$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : 'http://wordpress.org/extend/plugins/';
|
||||||
$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : 'http://wordpress.org/extend/themes/';
|
$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : 'http://wordpress.org/extend/themes/';
|
||||||
|
|
||||||
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 <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="http://wordpress.org/about/license/">ask them if it’s GPL</a> first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url ); ?></p>
|
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 <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it’s GPL</a> first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'http://wordpress.org/about/license/' ); ?></p>
|
||||||
|
|
||||||
<p><?php _e( 'Don’t you wish all software came with these freedoms? So do we! For more information, check out the <a href="http://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
|
<p><?php _e( 'Don’t you wish all software came with these freedoms? So do we! For more information, check out the <a href="http://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php include( './admin-footer.php' ); ?>
|
<?php include( './admin-footer.php' ); ?>
|
||||||
|
|
Loading…
Reference in New Issue