Making WordPress.org

Changeset 11070


Ignore:
Timestamp:
06/26/2021 04:06:06 PM (3 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.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css

    r11069 r11070  
    23732373}
    23742374
     2375.editor-panel .meta dt {
     2376    margin-right: .25em;
     2377}
     2378
    23752379.editor-panel .meta {
    23762380    float: none;
     
    24412445
    24422446.editor-panel__right {
    2443     flex: 0 0 20rem;
     2447    flex: 0 0 21rem;
    24442448    min-width: 1%;
    24452449}
  • 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.