Making WordPress.org


Ignore:
Timestamp:
04/01/2022 11:42:40 AM (3 years ago)
Author:
ocean90
Message:

Translate: Various styling adjustments following changes in GlotPress 3.0.

See #6246.

File:
1 edited

Legend:

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

    r11316 r11732  
    184184                            <?php if ( $can_edit ) : ?>
    185185                                <div class="translation-actions__primary">
    186                                     <button class="translation-actions__save with-tooltip"
     186                                    <button class="button is-primary translation-actions__save with-tooltip"
    187187                                            type="button"
    188188                                            aria-label="<?php echo $can_approve_translation ? 'Save and approve translation' : 'Suggest new translation'; ?>"
     
    192192                                </div>
    193193                                <div class="translation-actions__secondary">
    194                                     <button type="button" class="translation-actions__copy with-tooltip" aria-label="Copy original">
     194                                    <button type="button" class="button is-small translation-actions__copy with-tooltip" aria-label="Copy original">
    195195                                        <span class="screen-reader-text">Copy</span><span aria-hidden="true" class="dashicons dashicons-admin-page"></span>
    196196                                    </button>
    197                                     <button type="button" class="translation-actions__ltr with-tooltip" aria-label="Switch to LTR">
     197                                    <button type="button" class="button is-small translation-actions__insert-tab with-tooltip" aria-label="Insert tab">
     198                                        <span class="screen-reader-text">Insert tab</span><span aria-hidden="true" class="dashicons dashicons-editor-indent"></span>
     199                                    </button>
     200                                    <button type="button" class="button is-small translation-actions__insert-newline with-tooltip" aria-label="Insert newline">
     201                                        <span class="screen-reader-text">Insert newline</span><span aria-hidden="true" class="dashicons dashicons-editor-break"></span>
     202                                    </button>
     203                                    <button type="button" class="button is-small translation-actions__ltr with-tooltip" aria-label="Switch to LTR">
    198204                                        <span class="screen-reader-text">LTR</span><span aria-hidden="true" class="dashicons dashicons-editor-ltr"></span>
    199205                                    </button>
    200                                     <button type="button" class="translation-actions__rtl with-tooltip" aria-label="Switch to RTL">
     206                                    <button type="button" class="button is-small translation-actions__rtl with-tooltip" aria-label="Switch to RTL">
    201207                                        <span class="screen-reader-text">RTL</span><span aria-hidden="true" class="dashicons dashicons-editor-rtl"></span>
    202208                                    </button>
    203                                     <button type="button" class="translation-actions__help with-tooltip" aria-label="Show help">
     209                                    <button type="button" class="button is-small translation-actions__help with-tooltip" aria-label="Show help">
    204210                                        <span class="screen-reader-text">Help</span><span aria-hidden="true" class="dashicons dashicons-editor-help"></span>
    205211                                    </button>
     
    243249                                <?php if ( $can_approve_translation ) : ?>
    244250                                    <?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>
     251                                        <button class="button  is-primary 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>
    246252                                    <?php endif; ?>
    247253                                    <?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>
     254                                        <button class="button 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>
    249255                                    <?php endif; ?>
    250256                                    <?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>
     257                                        <button class="button 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>
    252258                                    <?php endif; ?>
    253259                                <?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>
     260                                    <button class="button 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>
     261                                    <button class="button 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>
    256262                                <?php endif; ?>
    257263                            </div>
Note: See TracChangeset for help on using the changeset viewer.