warnings[ $index ] ) ) :
$referenceable = $entry->warnings[ $index ];
foreach ( $referenceable as $key => $value ) :
?>
translations, $index ) ) ); ?>
have to log in to edit this translation.', 'glotpress' ),
esc_url( wp_login_url( gp_url_current() ) )
);
}
?>
_x( 'current', 'Single Status', 'glotpress' ),
'waiting' => _x( 'waiting', 'Single Status', 'glotpress' ),
'fuzzy' => _x( 'fuzzy', 'Single Status', 'glotpress' ),
'old' => _x( 'old', 'Single Status', 'glotpress' ),
'rejected' => _x( 'rejected', 'Single Status', 'glotpress' ),
);
if ( isset( $status_labels[ $status ] ) ) {
$status = $status_labels[ $status ];
}
$status = preg_replace( '/^[+-]/', '', $status );
return $status ? $status : _x( 'untranslated', 'Single Status', 'glotpress' );
}
function references( $project, $entry ) {
/**
* Filter whether to show references of a translation string on a translation row.
*
* @since 1.0.0
*
* @param boolean $references Whether to show references.
* @param GP_Project $project The current project.
* @param Translation_Entry $entry Translation entry object.
*/
$show_references = apply_filters( 'gp_show_references', (bool) $entry->references, $project, $entry );
if ( ! $show_references ) {
return;
}
?>