Making WordPress.org


Ignore:
Timestamp:
02/08/2018 05:18:20 PM (7 years ago)
Author:
ocean90
Message:

Translate, Consistency: Use md5 hash of translations for group anchors.

Also use a case sensitive comparison when grouping translations.

See #2917.

File:
1 edited

Legend:

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

    r6454 r6570  
    8585                str_replace( ' ', '<span class="space"> </span>', esc_translation( $translation ) ),
    8686                1 === $translations_unique_counts[ $translation ] ? $translations_unique_counts[ $translation ] . ' time' : $translations_unique_counts[ $translation ] . ' times',
    87                 esc_attr( sanitize_title( 't-' . $translation ) )
     87                esc_attr( 't-' . md5( $translation ) )
    8888            );
    8989        }
     
    123123                    printf(
    124124                        '<tr id="%s" class="new-translation"><td colspan="2"><strong>%s</strong> <a href="#translations-overview">&uarr;</a></td></tr>',
    125                         esc_attr( sanitize_title( 't-' . $result->translation ) ),
     125                        esc_attr( 't-' . md5( $result->translation ) ),
    126126                        esc_translation( $result->translation )
    127127                    );
Note: See TracChangeset for help on using the changeset viewer.