Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Fix i18n "Warning: The string "..." has X different translator commen…
Browse files Browse the repository at this point in the history
…ts".
  • Loading branch information
rvdsteege committed Jul 31, 2020
1 parent 6ba5832 commit 07ee0f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/Integration.php
Expand Up @@ -83,7 +83,11 @@ public function get_settings_fields() {
'type' => 'text',
'classes' => array( 'code' ),
'size' => 5,
'description' => sprintf( __( 'You can find the key version in the <a href="%s" target="_blank">OmniKassa Download Dashboard</a>.', 'pronamic_ideal' ), 'https://download.omnikassa.rabobank.nl/' ),
'description' => sprintf(
/* translators: %s: OmniKassa download dashboard URL */
__( 'You can find the key version in the <a href="%s" target="_blank">OmniKassa Download Dashboard</a>.', 'pronamic_ideal' ),
'https://download.omnikassa.rabobank.nl/'
),
);

// Purchase ID
Expand All @@ -95,6 +99,7 @@ public function get_settings_fields() {
'type' => 'text',
'classes' => array( 'regular-text', 'code' ),
'tooltip' => sprintf(
/* translators: %s: <code>parameterName</code> */
__( 'The OmniKassa %s parameter.', 'pronamic_ideal' ),
sprintf( '<code>%s</code>', 'orderId' )
),
Expand All @@ -107,6 +112,7 @@ public function get_settings_fields() {
'{payment_id}'
),
sprintf(
/* translators: %s: default code */
__( 'Default: <code>%s</code>', 'pronamic_ideal' ),
'{payment_id}'
)
Expand Down
2 changes: 1 addition & 1 deletion src/Listener.php
Expand Up @@ -34,7 +34,7 @@ public static function listen() {

// Add note.
$note = sprintf(
/* translators: %s: OmniKassa */
/* translators: %s: payment provider name */
__( 'Webhook requested by %s.', 'pronamic_ideal' ),
__( 'OmniKassa', 'pronamic_ideal' )
);
Expand Down

0 comments on commit 07ee0f0

Please sign in to comment.