src/admin/partials/wordlift-admin-setup.php 1 location
|
@@ 149-152 (lines=4) @@
|
| 146 |
|
$language = isset( $languages[ $parts[0] ] ) ? $parts[0] : 'en'; |
| 147 |
|
|
| 148 |
|
// Print all the supported language, preselecting the one configured in WP (or English if not supported). |
| 149 |
|
foreach ( $languages as $code => $label ) { ?> |
| 150 |
|
<option |
| 151 |
|
value="<?php esc_attr_e( $code ) ?>" <?php echo selected( $code, $language, FALSE ) ?>><?php esc_html_e( $label ) ?></option> |
| 152 |
|
<?php } ?> |
| 153 |
|
</select> |
| 154 |
|
|
| 155 |
|
<div class="btn-wrapper"> |
src/modules/configuration/wordlift_configuration.php 1 location
|
@@ 372-374 (lines=3) @@
|
| 369 |
|
// If we support WP's configured language, then use that, otherwise use English by default. |
| 370 |
|
$language = isset( $languages[ $args['value'] ] ) ? $args['value'] : 'en'; |
| 371 |
|
|
| 372 |
|
foreach ( $languages as $code => $label ) { ?> |
| 373 |
|
<option |
| 374 |
|
value="<?php esc_attr_e( $code ) ?>" <?php echo selected( $code, $language, false ) ?>><?php esc_html_e( $label ) ?></option > |
| 375 |
|
<?php } ?> |
| 376 |
|
</select > |
| 377 |
|
|