function gp_breadcrumb_project($project) { return gp_breadcrumb(gp_project_links_from_root($project)); }
<?php gp_title(__('View Glossary < GlotPress', 'glotpress')); gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get(gp_url_project_locale($project->path, $locale->slug, $translation_set->slug), $translation_set->name), __('Glossary', 'glotpress'))); $ge_delete_ays = __('Are you sure you want to delete this entry?', 'glotpress'); $delete_url = $url . '/-delete'; $glossary_options = compact('can_edit', 'url', 'delete_url', 'ge_delete_ays'); gp_enqueue_script('gp-glossary'); wp_localize_script('gp-glossary', '$gp_glossary_options', $glossary_options); gp_tmpl_header(); ?> <h2><?php printf(_x('Glossary for %1$s translation of %2$s', '{language} / { project name}', 'glotpress'), esc_html($translation_set->name), esc_html($project->name)); ?> <?php gp_link_glossary_edit($glossary, $translation_set, __('(edit)', 'glotpress')); ?> </h2> <?php if ($glossary->description) { echo '<p class="description">' . make_clickable(nl2br(wp_kses_post($glossary->description))) . '</p>'; } ?> <table class="glossary" id="glossary"> <thead> <tr> <th style="width:20%"><?php _ex('Item', 'glossary entry', 'glotpress');
<?php gp_title(sprintf(__('Translations < %s < %s < GlotPress', 'glotpress'), $translation_set->name, $project->name)); gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get($url, $translation_set->name))); gp_enqueue_script('jquery-ui-core'); gp_enqueue_script('gp-editor'); gp_enqueue_script('gp-translations-page'); wp_localize_script('gp-translations-page', '$gp_translations_options', array('sort' => __('Sort', 'glotpress'), 'filter' => __('Filter', 'glotpress'))); // localizer adds var in front of the variable name, so we can't use $gp.editor.options $editor_options = compact('can_approve', 'can_write', 'url', 'discard_warning_url', 'set_priority_url', 'set_status_url'); wp_localize_script('gp-editor', '$gp_editor_options', $editor_options); gp_tmpl_header(); $i = 0; ?> <h2> <?php printf(__('Translation of %s', 'glotpress'), esc_html($project->name)); ?> : <?php echo esc_html($translation_set->name); ?> <?php gp_link_set_edit($translation_set, $project, __('(edit)', 'glotpress')); ?> <?php if ($glossary) { ?> <?php echo gp_link($glossary->path(), __('glossary', 'glotpress'), array('class' => 'glossary-link')); ?> <?php
<?php gp_title(sprintf(__('Edit Translation Set < %s < %s < GlotPress', 'glotpress'), $set->name, $project->name)); gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get($url, $locale->english_name . 'default' != $set->slug ? ' ' . $set->name : ''))); gp_tmpl_header(); ?> <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