[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/routes/ -> translation.php (summary)

Routes: GP_Route_Translation class

File Size: 696 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GP_Route_Translation:: (16 methods):
  import_translations_get()
  import_translations_post()
  export_translations_get()
  translations_get()
  translations_post()
  bulk_post()
  _bulk_approve()
  _bulk_fuzzy()
  _bulk_set_priority()
  discard_warning()
  set_status()
  edit_single_translation()
  discard_warning_edit_function()
  set_status_edit_function()
  can_approve_translation_or_forbidden()
  get_extended_glossary()


Class: GP_Route_Translation  - X-Ref

Core class used to implement the translation route.

import_translations_get( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

import_translations_post( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

export_translations_get( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

translations_get( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

translations_post( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

bulk_post( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

_bulk_approve( $bulk )   X-Ref
No description

_bulk_fuzzy( $bulk )   X-Ref
Processes the bulk action to set translations to fuzzy.

since: 2.3.0
param: array $bulk The bulk data to process.

_bulk_set_priority( $project, $bulk )   X-Ref
No description

discard_warning( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

set_status( $project_path, $locale_slug, $translation_set_slug )   X-Ref
No description

edit_single_translation( $project_path, $locale_slug, $translation_set_slug, $edit_function )   X-Ref
No description

discard_warning_edit_function( $project, $locale, $translation_set, $translation )   X-Ref
Discard a warning.

since: 1.0.0
param: GP_Project         $project         The project.
param: GP_Locale          $locale          The GlotPress locale.
param: GP_Translation_Set $translation_set The translation set.
param: GP_Translation     $translation     The translation object.

set_status_edit_function( $project, $locale, $translation_set, $translation )   X-Ref
No description

can_approve_translation_or_forbidden( $translation )   X-Ref
No description

get_extended_glossary( $translation_set, $project )   X-Ref
Get the glossary for the translation set.

This also fetches contents from a potential locale glossary, as well as from a parent project.

since: 2.3.0
return: GP_Glossary Extended glossary.
param: GP_Translation_Set $translation_set Translation set for which to retrieve the glossary.
param: GP_Project         $project         Project for finding potential parent projects.



Generated: Mon Nov 18 01:01:56 2019 Cross-referenced by PHPXref 0.7.1