Ejemplo n.º 1
0
	<h3 id="add"><?php 
_e('Add a validator for this project', 'glotpress');
?>
</h3>
	<dl>
		<dt><label for="user_login"><?php 
_e('Username:'******'glotpress');
?>
</label></dt>
		<dd><input type="text" name="user_login" value="" id="user_login" /></dd>
		<dt><label for="locale"><?php 
_e('Locale:', 'glotpress');
?>
</label></dt>
		<dd><?php 
echo gp_locales_by_project_dropdown($project->id, 'locale');
?>
</dd>
		<dt><label for="set-slug"><?php 
_e('Translation set slug:', 'glotpress');
?>
</label></dt>
		<dd><input type="text" name="set-slug" value="default" id="set-slug" /></dd>

		<dt>
			<input type="submit" name="submit" value="<?php 
esc_attr_e('Add', 'glotpress');
?>
" id="submit" />
			<input type="hidden" name="action" value="add-validator" />
		</dt>
Ejemplo n.º 2
0
/**
 * Returns HTML markup for a select element for all locales.
 *
 * @since 1.0.0
 *
 * @param string $name_and_id   Name and ID of the select element.
 * @param string $selected_slug Slug of the current selected locale.
 * @param array  $attrs         Extra attributes.
 * @return string HTML markup for a select element.
 */
function gp_locales_dropdown($name_and_id, $selected_slug = null, $attrs = array())
{
    return gp_locales_by_project_dropdown(null, $name_and_id, $selected_slug, $attrs);
}