Making WordPress.org


Ignore:
Timestamp:
12/22/2014 01:14:50 AM (10 years ago)
Author:
nacin
Message:

Rosetta: Add notice for inactive translations. see #487.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/index.php

    r465 r1059  
    11<?php get_header(); ?>
    22    <div class="outer" id="mid-wrapper">
     3<?php
     4$latest_release = $rosetta->rosetta->get_latest_public_release();
     5if ( false === $latest_release && $rosetta->rosetta->get_latest_release() ) :
     6?>
     7        <div class="wrapper">
     8            <div class="section">
     9                <h3>The <?php bloginfo( 'name' ); ?> translation of WordPress is inactive</h3>
     10                <p><a href="https://wordpress.org/download/">Download the English version instead</a>.</p>
     11                <p>If you&#8217;re interested in translating WordPress to <?php bloginfo( 'name' ); ?>,
     12                join <a href="https://make.wordpress.org/polyglots/">the Polyglots team</a> and find out how.</p>
     13            </div>
     14        </div>
     15<?php endif; ?>
     16
    317        <div class="wrapper">
    418            <div class="section">
     
    2438    </div>
    2539<?php
    26     $latest_release = $rosetta->rosetta->get_latest_release();
     40    $latest_release = $rosetta->rosetta->get_latest_public_release();
    2741    if (false !== $latest_release):
    2842?>
Note: See TracChangeset for help on using the changeset viewer.