Making WordPress.org


Ignore:
Timestamp:
06/26/2021 04:06:06 PM (5 years ago)
Author:
ocean90
Message:

Translate: Show the date of the last modification for a translation.

The last modification is usually the date of the last status change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php

    r11069 r11070  
    265265                                                </dl>
    266266
    267                                                 <?php if ( $translation->translation_added && $translation->translation_added != '0000-00-00 00:00:00' ): ?>
     267                                                <?php if ( $translation->translation_added && $translation->translation_added !== '0000-00-00 00:00:00' ): ?>
    268268                                                        <dl>
    269                                                                 <dt><?php _e( 'Date added:', 'glotpress' ); ?></dt>
    270                                                                 <dd><?php echo $translation->translation_added; ?> GMT</dd>
     269                                                                <dt><?php _e( 'Added:', 'glotpress' ); ?></dt>
     270                                                                <dd><?php echo $translation->translation_added; ?> UTC</dd>
     271                                                        </dl>
     272                                                <?php endif; ?>
     273                                                <?php if ( $translation->date_modified && $translation->date_modified !== '0000-00-00 00:00:00' && $translation->date_modified !== $translation->translation_added ): ?>
     274                                                        <dl>
     275                                                                <dt><?php _e( 'Last modified:', 'glotpress' ); ?></dt>
     276                                                                <dd><?php echo $translation->date_modified; ?> UTC</dd>
    271277                                                        </dl>
    272278                                                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.