Skip to content

Commit 01292df

Browse files
committed
Use datakit for textdomain (.org wants us to)
1 parent ced8ea1 commit 01292df

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

datakit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Version: 1.0.0
77
* Author: DataKit
88
* Author URI: https://www.datakit.org
9-
* Text Domain: dk-datakit
9+
* Text Domain: datakit
1010
* License: GPLv2 or later
1111
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
1212
*/

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<rule ref="WordPress.WP.I18n">
5656
<properties>
5757
<property name="text_domain" type="array">
58-
<element value="dk-datakit"/>
58+
<element value="datakit"/>
5959
</property>
6060
</properties>
6161
</rule>

src/Data/AttachmentDataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function csv(
4040
$path = get_attached_file( $attachment_id );
4141
if ( ! $path ) {
4242
// translators: %d is the attachment ID.
43-
throw new DataSourceNotFoundException( sprintf( esc_html__( 'The attachment ID (%d) is not found.', 'dk-datakit' ), $attachment_id ) ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
43+
throw new DataSourceNotFoundException( sprintf( esc_html__( 'The attachment ID (%d) is not found.', 'datakit' ), $attachment_id ) ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
4444
}
4545

4646
return new CsvDataSource( $path, $separator, $enclosure, $escape );

src/Data/GravityFormsDataSource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ final class GravityFormsDataSource extends BaseDataSource implements MutableData
6666
*/
6767
public function __construct( int $form_id ) {
6868
if ( ! class_exists( 'GFAPI' ) ) {
69-
throw new DataSourceNotFoundException( esc_html__( 'Data source can not be used, as Gravity Forms is not available.', 'dk-datakit' ) );
69+
throw new DataSourceNotFoundException( esc_html__( 'Data source can not be used, as Gravity Forms is not available.', 'datakit' ) );
7070
}
7171

7272
$form = GFAPI::get_form( $form_id );
7373
if ( ! is_array( $form ) ) {
7474
// translators: %d is the form ID.
75-
throw new DataSourceNotFoundException( sprintf( esc_html__( 'Gravity Forms data source (%d) not found', 'dk-datakit' ), $form_id ) ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
75+
throw new DataSourceNotFoundException( sprintf( esc_html__( 'Gravity Forms data source (%d) not found', 'datakit' ), $form_id ) ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
7676
}
7777

7878
require_once \GFCommon::get_base_path() . '/export.php';

src/Data/WPUserDataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function delete_data_by_id( string ...$ids ): void {
194194
if ( get_current_user_id() === (int) $id ) {
195195
throw new ActionForbiddenException(
196196
$this, // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
197-
esc_html__( 'You cannot delete your own user.', 'dk-datakit' ),
197+
esc_html__( 'You cannot delete your own user.', 'datakit' ),
198198
);
199199
}
200200

src/Data/WSFormDataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct( int $form_id ) {
6161
$this->ws_form_submit_export = new \WS_Form_Submit_Export( $form_id );
6262
} catch ( Exception $e ) {
6363
// translators: %d is the form ID.
64-
throw new DataSourceNotFoundException( sprintf( esc_html__( 'WS Form data source (%d) not found', 'dk-datakit' ), $form_id ) ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
64+
throw new DataSourceNotFoundException( sprintf( esc_html__( 'WS Form data source (%d) not found', 'datakit' ), $form_id ) ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
6565
}
6666
}
6767

0 commit comments

Comments
 (0)