wp_localize_script('editor', '$gp_editor_options', $editor_options); add_action('gp_head', lambda('', 'gp_preferred_sans_serif_style_tag($locale);', compact('locale'))); gp_tmpl_header(); $i = 0; ?> <h2> <?php printf(__("Translation of %s"), esc_html($project->name)); ?> : <span><?php echo esc_html($translation_set->name); ?> </span> <?php gp_link_set_edit($translation_set, $project, __('Edit'), array('class' => 'btn btn-xs btn-primary')); ?> <?php if ($glossary) { echo gp_link(gp_url_project_locale($project, $locale->slug, $translation_set->slug) . '/glossary', __('glossary'), array('class' => 'btn btn-xs btn-primary')); } elseif ($can_approve) { echo gp_link_get(gp_url('/glossaries/-new', array('translation_set_id' => $translation_set->id)), __('Create glossary'), array('class' => 'btn btn-xs btn-primary')); } ?> </h2> <?php if ($can_approve) { ?> <form id="bulk-actions-toolbar" class="filters-toolbar bulk-actions form-inline pull-left" action="<?php
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 } elseif ($can_approve) { ?> <?php echo gp_link_get(gp_url('/glossaries/-new', array('translation_set_id' => $translation_set->id)), __('Create glossary', 'glotpress'), array('class' => 'glossary-link')); ?> <?php }
$parity = gp_parity_factory(); add_action('gp_head', function () use($locale) { return gp_preferred_sans_serif_style_tag($locale); }); gp_tmpl_header(); $i = 0; ?> <h2> <?php printf(__("Translation of %s"), esc_html($project->name)); ?> : <?php echo esc_html($translation_set->name); ?> <?php gp_link_set_edit($translation_set, $project, __('(edit)')); ?> <?php if ($glossary) { ?> <?php echo gp_link(gp_url_project_locale($project, $locale->slug, $translation_set->slug) . '/glossary', __('glossary'), array('class' => 'glossary-link')); ?> <?php } elseif ($can_approve) { ?> <?php echo gp_link_get(gp_url('/glossaries/-new', array('translation_set_id' => $translation_set->id)), __('Create glossary'), array('class' => 'glossary-link')); ?> <?php }