| 1 |
<?php // adds a language select list in the Categories and Post tags admin panels ?> |
| 2 |
<div class="form-field"> |
| 3 |
<label for="term_lang_choice"><?php _e('Language', 'polylang');?></label> |
| 4 |
<select name="term_lang_choice" id="term_lang_choice"> |
| 5 |
<option value="0"></option><?php |
| 6 |
foreach ($listlanguages as $language) { |
| 7 |
printf("<option value='%s'%s>%s</option>\n", esc_attr($language->term_id), $language == $lang ? ' selected="selected"' : '', esc_attr($language->name)); |
| 8 |
} ?> |
| 9 |
</select> |
| 10 |
<p><?php _e('Sets the language', 'polylang');?></p> |
| 11 |
</div> |
| 12 |
<div id="term-translations" class="form-field"><?php |
| 13 |
// adds translation field if we already know the language |
| 14 |
if (isset($_GET['from_tag']) && isset($_GET['from_lang']) && isset($_GET['new_lang'])) |
| 15 |
include(POLYLANG_DIR.'/term-translations.php');?> |
| 16 |
</div> |
| 17 |
|