translation_status ) { $translation_permalink = gp_url_project_locale( $project, $locale->slug, $translation_set->slug, array( 'filters[status]' => 'either', 'filters[original_id]' => $translation->original_id, 'filters[translation_id]' => $translation->id, ) ); $more_links['translation-permalink'] = '' . __( 'Permalink to this translation', 'glotpress' ) . ''; } else { $original_permalink = gp_url_project_locale( $project, $locale->slug, $translation_set->slug, array( 'filters[original_id]' => $translation->original_id ) ); $more_links['original-permalink'] = '' . __( 'Permalink to this original', 'glotpress' ) . ''; } $original_history = gp_url_project_locale( $project, $locale->slug, $translation_set->slug, array( 'filters[status]' => 'either', 'filters[original_id]' => $translation->original_id, 'sort[by]' => 'translation_date_added', 'sort[how]' => 'asc', ) ); $more_links['history'] = '' . __( 'All translations of this original', 'glotpress' ) . ''; /** * Allows to modify the more links in the translation editor. * * @since 2.3.0 * * @param array $more_links The links to be output. * @param GP_Project $project Project object. * @param GP_Locale $locale Locale object. * @param GP_Translation_Set $translation_set Translation Set object. * @param GP_Translation $translation Translation object. */ $more_links = apply_filters( 'gp_translation_row_template_more_links', $more_links, $project, $locale, $translation_set, $translation ); ?>