Making WordPress.org


Ignore:
Timestamp:
12/09/2015 08:32:12 PM (9 years ago)
Author:
ocean90
Message:

Translate: Show plugin warnings on locale projects too.

See [2118], [2119].
Fixes #1450.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates-new/locale-project.php

    r1778 r2181  
    9191    </div>
    9292</div>
     93
     94<?php
     95if ( 'wp-plugins' === $project->path && ! in_array( 'dev', $sub_project_slugs ) && ! in_array( 'stable', $sub_project_slugs ) ) {
     96    ?>
     97    <div class="wporg-notice wporg-notice-warning">
     98        <p>This plugin is not properly prepared for localization. If you would like to translate this plugin, <a href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $sub_project->slug ); ?>">please contact the author.</a></p>
     99    </div>
     100    <?php
     101}
     102?>
    93103
    94104<div class="locale-project">
Note: See TracChangeset for help on using the changeset viewer.