first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* WPML_ST_String_Statuses class
*
* Get the translation status text for the given status
*/
class WPML_ST_String_Statuses {
public static function get_status( $status ) {
switch ( $status ) {
case ICL_STRING_TRANSLATION_COMPLETE:
return __( 'Translation complete', 'wpml-string-translation' );
case ICL_STRING_TRANSLATION_PARTIAL:
return __( 'Partial translation', 'wpml-string-translation' );
case ICL_STRING_TRANSLATION_NEEDS_UPDATE:
return __( 'Translation needs update', 'wpml-string-translation' );
case ICL_STRING_TRANSLATION_NOT_TRANSLATED:
return __( 'Not translated', 'wpml-string-translation' );
case ICL_STRING_TRANSLATION_WAITING_FOR_TRANSLATOR:
return __( 'Waiting for translator', 'wpml-string-translation' );
}
return '';
}
}