| 1 |
<?php |
| 2 |
// adds a language select list in the Categories and Post tags admin panels |
| 3 |
?> |
| 4 |
<div class="form-field"> |
| 5 |
<label for="term_lang_choice"><?php _e('Language', 'polylang');?></label> |
| 6 |
<select name="term_lang_choice" id="term_lang_choice"><?php |
| 7 |
if (PLL_DISPLAY_ALL) // for those who want undefined language |
| 8 |
echo '<option value="0"></option>'; |
| 9 |
foreach ($listlanguages as $language) { |
| 10 |
printf("<option value='%d'%s>%s</option>\n", |
| 11 |
esc_attr($language->term_id), |
| 12 |
$language->slug == $lang->slug ? ' selected="selected"' : '', |
| 13 |
esc_html($language->name) |
| 14 |
); |
| 15 |
} ?> |
| 16 |
</select> |
| 17 |
<p><?php _e('Sets the language', 'polylang');?></p> |
| 18 |
</div> |
| 19 |
<div id="term-translations" class="form-field"><?php |
| 20 |
include(PLL_INC.'/term-translations.php'); // adds translation fields ?> |
| 21 |
</div> |
| 22 |
|