<p><?php 
_e('Here you can mass-create translation sets in this project.
The list of translation sets will be mirrored with the sets of a project you choose.
Usually this is one of the parent projects.', 'glotpress');
?>
</p>
<form action="<?php 
echo esc_url(gp_url_current());
?>
" method="post">
	<dl>
		<dt><label for="project_id"><?php 
_e('Project to take translation sets from:', 'glotpress');
?>
</label></dt>
		<dd><?php 
echo gp_projects_dropdown('project_id', null);
?>
</dd>
	</dl>
	<div id="preview"></div>
	<p><input type="submit" name="submit" value="<?php 
esc_attr_e('Create Translation Sets', 'glotpress');
?>
" id="submit" /></p>
	<?php 
gp_route_nonce_field('mass-create-transation-sets_' . $project->id);
?>
</form>
<?php 
gp_tmpl_footer();
예제 #2
0
_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>
		<?php 
gp_route_nonce_field('add-project-permissions_' . $project->id);
?>
</form>
<?php 
gp_tmpl_footer();
예제 #3
0
		<label for="import-file"><?php 
_e('Import File:', 'glotpress');
?>
</label>
		<input type="file" name="import-file" id="import-file" />
	</p>
	<?php 
if ($can_write) {
    ?>
		<p>
			<label for="import-flush">
				<input type="checkbox" id="import-flush" name="import-flush" />
				<?php 
    _e('Flush existing glossary. Warning: all existing glossary entries will be deleted!', 'glotpress');
    ?>
			</label>
		</p>
	<?php 
}
?>
	<p><input type="submit" value="<?php 
esc_attr_e('Import', 'glotpress');
?>
"></p>
	<?php 
gp_route_nonce_field('import-glossary-entries_' . $project->path . $locale->slug . $translation_set->slug);
?>
</form>

<?php 
gp_tmpl_footer();
예제 #4
0
?>
<h2><?php 
_e('Create New Project', 'glotpress');
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('project-form', get_defined_vars());
?>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Create', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo gp_url();
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('add-project');
?>
</form>
<?php 
gp_tmpl_footer();
예제 #5
0
?>
<h2><?php 
echo wptexturize(sprintf(__('Edit project "%s"', 'glotpress'), esc_html($project->name)));
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('project-form', get_defined_vars());
?>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Save', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo gp_url_project($project);
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('edit-project_' . $project->id);
?>
</form>
<?php 
gp_tmpl_footer();
예제 #6
0
</textarea></dd>
	<dt><label for="project[source_url_template]"><?php 
_e('Source file URL', 'glotpress');
?>
</label></dt>
	<dd>
		<input type="text" value="<?php 
echo esc_html($project->source_url_template);
?>
" name="project[source_url_template]" id="project[source_url_template]" style="width: 30em;" />
		<span class="ternary"><?php 
printf(__('Public URL to a source file in the project. You can use %1$s and %2$s. Ex. %3$s', 'glotpress'), '<code>%file%</code>', '<code>%line%</code>', '<code>https://trac.example.org/browser/%file%#L%line%</code>');
?>
</span>
	</dd>
	<div id="preview"></div>
	<input type="hidden" value="<?php 
echo esc_html($project->parent_project_id);
?>
" name="project[parent_project_id]" id="project[parent_project_id]" />
	<p><input type="submit" name="submit" value="<?php 
esc_attr_e('Branch project', 'glotpress');
?>
" id="submit" /></p>
	<?php 
gp_route_nonce_field('branch-project_' . $project->id);
?>
</form>

<?php 
gp_tmpl_footer();
예제 #7
0
	<p>
		<input type="hidden" name="glossary[id]" value="<?php 
echo esc_attr($glossary->id);
?>
"/>
		<input type="hidden" name="glossary[translation_set_id]" value="<?php 
echo esc_attr($glossary->translation_set_id);
?>
"/>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Save', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo gp_url_join(gp_url_project_locale($project, $locale->slug, $translation_set->slug), '/glossary');
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('edit-glossary_' . $glossary->id);
?>
</form>

<?php 
gp_tmpl_footer();
예제 #8
0
function gp_project_options_form($project)
{
    return '
			<a href="#" class="personal-options" id="personal-options-toggle"> ' . __('Personal project options &darr;', 'glotpress') . '</a>
			<div class="personal-options">
				<form action="' . gp_url_project($project, '-personal') . '" method="post">
				<dl>
					<dt><label for="source-url-template">' . __('Source file URL', 'glotpress') . '</label></dt>
					<dd>
						<input type="text" value="' . esc_html($project->source_url_template()) . '" name="source-url-template" id="source-url-template" />
						<small>' . sprintf(__('URL to a source file in the project. You can use %1$s and %2$s. Ex. %3$s', 'glotpress'), '<code>%file%</code>', '<code>%line%</code>', '<code>https://trac.example.org/browser/%file%#L%line%</code>') . '</small>
					</dd>
				</dl>
				<p>
					<input type="submit" name="submit" value="' . esc_attr__('Save &rarr;', 'glotpress') . '" id="save" />
					<a class="ternary" href="#" onclick="jQuery(\'#personal-options-toggle\').click();return false;">' . __('Cancel', 'glotpress') . '</a>
				</p>
				' . gp_route_nonce_field('set-personal-options_' . $project->id, false) . '
				</form>
			</div>';
}
예제 #9
0
    ?>
	</dd>
<?php 
}
?>
	<dt>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Import', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo $return_link;
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	</dt>
	</dl>
	<?php 
gp_route_nonce_field(('originals' === $kind ? 'import-originals_' : 'import-translations_') . $project->id);
?>
</form>

<?php 
gp_tmpl_footer();
예제 #10
0
?>
<h2><?php 
_e('Edit Translation Set', 'glotpress');
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('translation-set-form', get_defined_vars());
?>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Save', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo gp_url_project_locale($project, $locale->slug, $set->slug);
?>
"><?php 
esc_attr_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('edit-translation-set_' . $set->id);
?>
</form>
<?php 
gp_tmpl_footer();
예제 #11
0
_e('Delete Translation Set', 'glotpress');
?>
</h2>
<form action="" method="post">
	<p>
		<?php 
_e('Note this will delete all translations associated with this set!', 'glotpress');
?>
	</p>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Delete', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo esc_url(gp_url_project_locale($project, $locale->slug, $set->slug));
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('delete-translation-set_' . $set->id);
?>
</form>
<?php 
gp_tmpl_footer();
예제 #12
0
<form action="" method="post">
	<p>
		<?php 
_e('Note this will delete all entries associated with this glossary!', 'glotpress');
?>
	</p>

	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Delete', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo esc_url(gp_url_join(gp_url_project_locale($project->path, $locale->slug, $translation_set->slug), '/glossary'));
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('delete-glossary_' . $glossary->id);
?>
</form>

<?php 
gp_tmpl_footer();
예제 #13
0
printf(__('Delete project &#8220;%s&#8221;', 'glotpress'), esc_html($project->name));
?>
</h2>
<form action="" method="post">
	<p>
		<?php 
_e('Note this will delete all translations, translation sets and child projects!', 'glotpress');
?>
	</p>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Delete', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo esc_url(gp_url_project($project));
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('delete-project_' . $project->id);
?>
</form>
<?php 
gp_tmpl_footer();
예제 #14
0
	</select>
	<?php 
    }
    ?>
	<input type="hidden" name="bulk[redirect_to]" value="<?php 
    echo esc_attr(gp_url_current());
    ?>
" id="bulk[redirect_to]" />
	<input type="hidden" name="bulk[row-ids]" value="" id="bulk[row-ids]" />
	<input type="submit" class="button" value="<?php 
    esc_attr_e('Apply', 'glotpress');
    ?>
" />
	</div>
	<?php 
    gp_route_nonce_field('bulk-actions');
    ?>
</form>
<?php 
}
echo gp_pagination($page, $per_page, $total_translations_count);
?>
<form id="upper-filters-toolbar" class="filters-toolbar" action="" method="get" accept-charset="utf-8">
	<div>
	<a href="#" class="revealing filter"><?php 
_e('Filter &darr;', 'glotpress');
?>
</a> <span class="separator">&bull;</span>
	<a href="#" class="revealing sort"><?php 
_e('Sort &darr;', 'glotpress');
?>
예제 #15
0
?>
<h2><?php 
_e('Create New Translation Set', 'glotpress');
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('translation-set-form', get_defined_vars());
?>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Create', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo gp_url_project($project);
?>
"><?php 
_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
gp_route_nonce_field('add-translation-set');
?>
</form>
<?php 
gp_tmpl_footer();
예제 #16
0
    ?>
</label></dt>
						<dd><textarea type="text" name="new_glossary_entry[comment]" id="new_glossary_entry_comments"></textarea></dd>
					</dl>
					<p>
						<input type="hidden" name="new_glossary_entry[glossary_id]" value="<?php 
    echo esc_attr($glossary->id);
    ?>
">
						<input type="submit" name="submit" value="<?php 
    esc_attr_e('Create', 'glotpress');
    ?>
" id="submit" />
					</p>
					<?php 
    gp_route_nonce_field('add-glossary-entry_' . $project->path . $locale->slug . $translation_set->slug);
    ?>
				</form>
			</td>
		</tr>
		<?php 
}
?>
	</tbody>
</table>

<p class="clear actionlist secondary">
	<?php 
if ($can_edit) {
    ?>
		<?php 
예제 #17
0
gp_breadcrumb(array(__('Your Settings', 'glotpress')));
gp_tmpl_header();
$per_page = (int) get_user_option('gp_per_page');
if (0 === $per_page) {
    $per_page = 15;
}
$default_sort = get_user_option('gp_default_sort');
if (!is_array($default_sort)) {
    $default_sort = array('by' => 'priority', 'how' => 'desc');
}
?>
<h2><?php 
_e('Your Settings', 'glotpress');
?>
</h2>
<form action="" method="post">
	<?php 
include_once __DIR__ . '/settings-edit.php';
?>
	<br>
	<?php 
gp_route_nonce_field('update-settings_' . get_current_user_id());
?>
	<input type="submit" name="submit" value="<?php 
esc_attr_e('Save Settings', 'glotpress');
?>
">
</form>

<?php 
gp_tmpl_footer();