Making WordPress.org


Ignore:
Timestamp:
05/08/2019 07:33:18 PM (5 years ago)
Author:
ocean90
Message:

Translate: Update editor interface for translations.

  • Increase focus on translation by moving original, context and translation into the same column.
  • Add tabs for plural forms.
  • Move action buttons more closely to textarea.
  • Increase size for textareas.
  • Automatically resize textarea heights.
  • Provide an area for suggestions, see #4430.
  • Add help dialog with support for locale resources, see #3522.
  • Stack columns on mobile.

See #4431.

File:
1 edited

Legend:

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

    r8386 r8751  
    2222    </td>
    2323    <td class="original">
    24         <?php echo prepare_original( esc_translation( $t->singular ) ); ?>
     24        <span class="original-text"><?php echo esc_translation( $t->singular ); ?></span>
    2525        <?php if ( $t->context ): ?>
    2626        <span class="context bubble" title="<?php printf( __( 'Context: %s', 'glotpress' ), esc_html($t->context) ); ?>"><?php echo esc_html($t->context); ?></span>
     
    4444            echo $missing_text;
    4545        elseif ( ! $t->plural ) :
    46             echo esc_translation( $t->translations[0] );
     46            echo '<span class="translation-text">' . esc_translation( $t->translations[0] ) . '</span>';
    4747        else: ?>
    4848        <ul>
     
    5050                foreach( $t->translations as $translation ):
    5151            ?>
    52                 <li><?php echo gp_is_empty_string( $translation ) ? $missing_text : esc_translation( $translation ); ?></li>
     52                <li><?php echo gp_is_empty_string( $translation ) ? $missing_text : '<span class="translation-text">' . esc_translation( $translation ) . '</span>' ; ?></li>
    5353            <?php
    5454                endforeach;
Note: See TracChangeset for help on using the changeset viewer.