Skip to content

Commit

Permalink
Merge pull request #182 from mehrazmorshed/mehraz
Browse files Browse the repository at this point in the history
added and corrected text-domain
  • Loading branch information
dkotter authored Oct 29, 2024
2 parents ab9837d + bc75429 commit fda15bf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function display_formatted_error( $error ) {
$messages = get_error_messages();

if ( ! isset( $messages[ $error['type'] ] ) ) {
return __( 'Unknown error', 'adstxt' );
return __( 'Unknown error', 'ads-txt' );
}

if ( ! isset( $error['value'] ) ) {
Expand All @@ -463,15 +463,15 @@ function display_formatted_error( $error ) {
*/
function get_error_messages() {
$messages = array(
'invalid_variable' => __( 'Unrecognized variable' ),
'invalid_record' => __( 'Invalid record' ),
'invalid_account_type' => __( 'Third field should be RESELLER or DIRECT' ),
'invalid_variable' => __( 'Unrecognized variable', 'ads-txt' ),
'invalid_record' => __( 'Invalid record', 'ads-txt' ),
'invalid_account_type' => __( 'Third field should be RESELLER or DIRECT', 'ads-txt' ),
/* translators: %s: Subdomain */
'invalid_subdomain' => __( '%s does not appear to be a valid subdomain' ),
'invalid_subdomain' => __( '%s does not appear to be a valid subdomain', 'ads-txt' ),
/* translators: %s: Exchange domain */
'invalid_exchange' => __( '%s does not appear to be a valid exchange domain' ),
'invalid_exchange' => __( '%s does not appear to be a valid exchange domain', 'ads-txt' ),
/* translators: %s: Alphanumeric TAG-ID */
'invalid_tagid' => __( '%s does not appear to be a valid TAG-ID' ),
'invalid_tagid' => __( '%s does not appear to be a valid TAG-ID', 'ads-txt' ),
);

return $messages;
Expand Down

0 comments on commit fda15bf

Please sign in to comment.