[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> helper-functions.php (summary)

Defines helper functions used by GlotPress.

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

Defines 8 functions

  prepare_original()
  gp_prepare_translation_textarea()
  gp_glossary_add_suffixes()
  map_glossary_entries_to_translation_originals()
  textareas()
  display_status()
  references()
  gp_translations_bulk_actions_toolbar()

Functions
Functions that are not part of a class:

prepare_original( $text )   X-Ref
Prepare an original string to be printed out in a translation row by adding encoding special
characters, adding glossary entires and other markup.

return: string The prepared string for output.
param: string $text A single style handle to enqueue or an array or style handles to enqueue.

gp_prepare_translation_textarea( $text )   X-Ref
No description

gp_glossary_add_suffixes( $glossary_entries )   X-Ref
Adds suffixes for use in map_glossary_entries_to_translation_originals().

return: array The suffixed entries.
param: array $glossary_entries An array of glossary entries to sort.

map_glossary_entries_to_translation_originals( $translation, $glossary )   X-Ref
No description

textareas( $entry, $permissions, $index = 0 )   X-Ref
No description

display_status( $status )   X-Ref
No description

references( $project, $entry )   X-Ref
No description

gp_translations_bulk_actions_toolbar( $bulk_action, $can_write, $translation_set, $location = 'top' )   X-Ref
Output the bulk actions toolbar in the translations page.

param: string $bulk_action     The URL to submit the form to.
param: string $can_write       Can the current user write translations to the database.
param: string $translation_set The current translation set.
param: string $location        The location of this toolbar, used to make id's unique for each instance on a page.



Generated: Sat Apr 20 01:01:09 2024 Cross-referenced by PHPXref 0.7.1