Skip to content

Commit

Permalink
Adding translations for filters
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooney committed Nov 13, 2023
1 parent 37fe570 commit 8ba7c59
Show file tree
Hide file tree
Showing 31 changed files with 740 additions and 419 deletions.
8 changes: 7 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: <https://connekthq.com/donate/>
Tags: Unsplash, Openverse, Pixabay, Pexels, Stock Photos, media library, prototyping, photos, stock photo, image upload, upload, free photos
Requires at least: 5.0
Tested up to: 6.4
Stable tag: 6.0.1
Stable tag: 6.1.0
License: GPLv2 or later
License URI: <http://www.gnu.org/licenses/gpl-2.0.html>

Expand Down Expand Up @@ -159,6 +159,12 @@ How to install Instant Images.

== Changelog ==

= 6.1.0 - November 13, 2023 =
* NEW: Adding localization for all image provider filters.
* FIX: Fixed issue with CSS classname conflict with other plugins.
* FIX: Fixed issue with search results saying `0 Results found` when there were results.
* UPDATE: Various UI/UX updates throughout the app.

= 6.0.1 - November 8, 2023 =
* FIX: Fixed issue with `admin_footer_text` hook incorrectly echoing data in the WP admin.
* UPDATE: Various code, UX and UI updates throughout the app.
Expand Down
2 changes: 1 addition & 1 deletion build/block/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'afa64d1faae6e8ec848e');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '79820efbf8f7eb993282');
2 changes: 1 addition & 1 deletion build/block/index.js

Large diffs are not rendered by default.

Binary file removed build/images/logo-48x48.f34cb1d9.png
Binary file not shown.
2 changes: 1 addition & 1 deletion build/instant-images.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '01c861090be7d7e7220f');
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '5ca33f081ef84f6598f4');
2 changes: 1 addition & 1 deletion build/instant-images.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/media-modal/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '6434d408da39683b8cd8');
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd75df71b09b66b2e1cb9');
2 changes: 1 addition & 1 deletion build/media-modal/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/plugin-sidebar/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => 'dced6f6072eb509fbd97');
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => 'beab3ee3efa569818ea4');
2 changes: 1 addition & 1 deletion build/plugin-sidebar/index.js

Large diffs are not rendered by default.

30 changes: 12 additions & 18 deletions build/style-instant-images.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 3 additions & 26 deletions instant-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Twitter: @connekthq
* Author URI: https://connekthq.com
* Text Domain: instant-images
* Version: 6.0.1
* Version: 6.1.0
* License: GPL
* Copyright: Darren Cooney & Connekt Media
*
Expand All @@ -18,8 +18,8 @@
exit;
}

define( 'INSTANT_IMAGES_VERSION', '6.0.1' );
define( 'INSTANT_IMAGES_RELEASE', 'November 8, 2023' );
define( 'INSTANT_IMAGES_VERSION', '6.1.0' );
define( 'INSTANT_IMAGES_RELEASE', 'November 13, 2023' );
define( 'INSTANT_IMAGES_STORE_URL', 'https://getinstantimages.com' );

/**
Expand Down Expand Up @@ -334,9 +334,6 @@ public static function instant_img_localize( $script = 'instant-images-react' )
'on' => __( 'on', 'instant-images' ),
'upload' => __( 'Click Image to Upload', 'instant-images' ),
'upload_btn' => __( 'Click to Upload', 'instant-images' ),
'full_size' => __( 'View Full Size', 'instant-images' ),
'likes' => __( 'Like', 'instant-images' ),
'likes_plural' => __( 'Likes', 'instant-images' ),
'saving' => __( 'Downloading image...', 'instant-images' ),
'resizing' => __( 'Creating image sizes...', 'instant-images' ),
'resizing_still' => __( 'Still resizing...', 'instant-images' ),
Expand All @@ -348,7 +345,6 @@ public static function instant_img_localize( $script = 'instant-images-react' )
'popular' => __( 'Popular', 'instant-images' ),
'views' => __( 'Views', 'instant-images' ),
'downloads' => __( 'Downloads', 'instant-images' ),
'load_more' => __( 'Load More Images', 'instant-images' ),
'search' => __( 'Search for Toronto + Coffee etc...', 'instant-images' ),
'search_label' => __( 'Search', 'instant-images' ),
'search_results' => __( 'image(s) found for', 'instant-images' ),
Expand All @@ -366,12 +362,6 @@ public static function instant_img_localize( $script = 'instant-images-react' )
'cancel' => __( 'Cancel', 'instant-images' ),
'save' => __( 'Save', 'instant-images' ),
'upload_now' => __( 'Upload', 'instant-images' ),
'orientation' => __( 'Orientation', 'instant-images' ),
'landscape' => __( 'Landscape', 'instant-images' ),
'portrait' => __( 'Portrait', 'instant-images' ),
'squarish' => __( 'Squarish', 'instant-images' ),
'horizontal' => __( 'Horizontal', 'instant-images' ),
'vertical' => __( 'Vertical', 'instant-images' ),
'attribution' => __( 'Add Photo Attribution', 'instant-images' ),
'btnCloseWindow' => __( 'Close Window', 'instant-images' ),
'btnClose' => __( 'Close', 'instant-images' ),
Expand Down Expand Up @@ -399,19 +389,6 @@ public static function instant_img_localize( $script = 'instant-images-react' )
'license' => self::instant_images_addon_valid_license( 'extended' ),
],
],
'filters' => [
'select' => __( '-- Select --', 'instant-images' ),
'orderby' => __( 'Order:', 'instant-images' ),
'type' => __( 'Type:', 'instant-images' ),
'category' => __( 'Category:', 'instant-images' ),
'colors' => __( 'Colors:', 'instant-images' ),
'orientation' => __( 'Orientation:', 'instant-images' ),
'size' => __( 'Size:', 'instant-images' ),
'extension' => __( 'Extension:', 'instant-images' ),
'license_type' => __( 'License Type:', 'instant-images' ),
'license' => __( 'License:', 'instant-images' ),
'source' => __( 'Source:', 'instant-images' ),
],
]
);
}
Expand Down
Loading

0 comments on commit 8ba7c59

Please sign in to comment.