';
return $html;
}
/**
* @return string html of the output, in case no new strings to be added were found.
*/
private function render_nothing_to_be_added() {
$html = '
' . __( 'There is nothing to be updated or to be added.', 'wpml-string-translation' ) . '
';
$html .= '
';
return $html;
}
/**
* @param $updated_translations array of updated string translations
*
* @return string html of the table holding the updated string translations
*/
private function render_updated_translations_table( $updated_translations ) {
$html = '
';
return $html;
}
/**
* @param $new_translations array of new, to be imported, string translations
*
* @return string html of the table holding the new string translations
*/
private function render_new_translations_table( $new_translations ) {
$html = '
';
return $html;
}
/**
* @param $downloaded_translations array holding information about the updated and new string translations in
* the downloaded .mo files.
*
* @return string
*/
private function render_add_mo_file_form( $downloaded_translations ) {
$html = '';
return $html;
}
/**
* @return string html of a summary display of the numbers of updated and new string translations,
* after they have been imported.
*/
private function render_downloaded_translations_summary() {
$number_of_new_strings = isset( $translations[ 'new' ] ) ? count( $translations[ 'new' ] ) : 0;
$number_of_updated_strings = isset( $translations[ 'updated' ] ) ? count( $translations[ 'updated' ] ) : 0;
$link_to_bottom_of_page = '' . __( 'bottom of this page', 'wpml-string-translation' ) . '';
$html = '
';
$html .= sprintf( __( 'This update includes %d new strings and %d updated strings. You can review the strings below. Then, go to the %s and click on the Proceed button.', 'wpml-string-translation' ), $number_of_new_strings, $number_of_updated_strings, $link_to_bottom_of_page );
$html .= '
';
return $html;
}
/**
* @return string html containing the messages to be displayed to the user after successful import of new translations
*/
private function render_translations_updated_response() {
$html = '
';
}
$html .= '' . __( 'Check other languages', 'wpml-string-translation' ) . '';
return $html;
}
/**
* @return string html to be rendered in case the information in the $_REQUEST was not sufficient.
* Either due to a lack of providing a version or because of failing to provide the language of the to be imported
* strings.
*/
private function render_missing_information_response() {
$html = '
';
return $html;
}
/**
* @return string html of a div holding error messages, that came about during the import of string translations
*/
private function render_user_errors() {
$html = '