[ Index ]

PHP Cross Reference of GlotPress




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

Defines helper functions used by GlotPress.

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

Defines 8 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_sort_glossary_entries_terms( $glossary_entries )   X-Ref
Sort a set of glossary entries by length for use in map_glossary_entries_to_translation_originals().

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

map_glossary_entries_to_translation_originals( $translation, $glossary, $glossary_entries_terms = null )   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 Nov 28 01:02:01 2020 Cross-referenced by PHPXref 0.7.1