- Timestamp:
- 04/05/2018 06:34:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/locales.php
r7003 r7039 10 10 11 11 namespace WP15\Locales; 12 defined( 'WPINC' ) ordie();12 defined( 'WPINC' ) || die(); 13 13 14 14 use GP_Locales; … … 120 120 121 121 ?> 122 122 123 <div class="wp15-locale-switcher-container"> 123 124 <form id="wp15-locale-switcher-form" action="" method="GET"> 124 125 <label for="wp15-locale-switcher"> 125 126 <span aria-hidden="true" class="dashicons dashicons-translation"></span> 126 <span class="screen-reader-text"><?php _e( 'Select the language:', 'wp15' ); ?></span>127 <span class="screen-reader-text"><?php esc_html_e( 'Select the language:', 'wp15' ); ?></span> 127 128 </label> 129 128 130 <select id="wp15-locale-switcher" name="locale"> 129 131 <?php 132 130 133 foreach ( get_locales() as $locale => $locale_name ) { 131 134 printf( … … 136 139 ); 137 140 } 141 138 142 ?> 139 143 </select> 140 144 </form> 141 <?php //todo Add blurb about submitting missing translations? ?>142 145 </div> 146 143 147 <?php 144 148
Note: See TracChangeset
for help on using the changeset viewer.