Making WordPress.org


Ignore:
Timestamp:
06/26/2021 03:30:52 PM (3 years ago)
Author:
ocean90
Message:

Translate: Fix layout of editor for glossary entries and increase font sizes used in meta column of the translation editor.

File:
1 edited

Legend:

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

    r11055 r11069  
    239239                    <div class="meta">
    240240
    241                         <?php if ( $translation->translation_status ): ?>
     241                        <?php if ( $translation->translation_status && ( $can_approve_translation || $can_reject_self ) ): ?>
    242242                            <div class="status-actions">
    243                             <?php if ( $can_approve_translation ) : ?>
    244                                 <?php if ( 'current' !== $translation->translation_status ) : ?>
    245                                     <button class="approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php _e( 'Approve', 'glotpress' ); ?></button>
    246                                 <?php endif; ?>
    247                                 <?php if ( 'rejected' !== $translation->translation_status ) : ?>
    248                                     <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php _e( 'Reject', 'glotpress' ); ?></button>
    249                                 <?php endif; ?>
    250                                 <?php if ( 'fuzzy' !== $translation->translation_status ) : ?>
     243                                <?php if ( $can_approve_translation ) : ?>
     244                                    <?php if ( 'current' !== $translation->translation_status ) : ?>
     245                                        <button class="approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php _e( 'Approve', 'glotpress' ); ?></button>
     246                                    <?php endif; ?>
     247                                    <?php if ( 'rejected' !== $translation->translation_status ) : ?>
     248                                        <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php _e( 'Reject', 'glotpress' ); ?></button>
     249                                    <?php endif; ?>
     250                                    <?php if ( 'fuzzy' !== $translation->translation_status ) : ?>
     251                                        <button class="fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>
     252                                    <?php endif; ?>
     253                                <?php elseif ( $can_reject_self ): ?>
     254                                    <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php _e( 'Reject Suggestion', 'glotpress' ); ?></button>
    251255                                    <button class="fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>
    252256                                <?php endif; ?>
    253                             <?php elseif ( $can_reject_self ): ?>
    254                                 <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php _e( 'Reject Suggestion', 'glotpress' ); ?></button>
    255                                 <button class="fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>
    256                             <?php endif; ?>
    257257                            </div>
    258258                        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.