Changeset 3321388
- Timestamp:
- 07/02/2025 05:12:23 PM (9 months ago)
- Location:
- quick-and-easy-tweets/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
languages/qaet.pot (modified) (3 diffs)
-
quick-and-easy-tweets.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-and-easy-tweets/trunk/README.txt
r3123520 r3321388 3 3 Tags: X, Tweets, Tweets widget, X widget, Easy tweets 4 4 Requires at least: 6.0 5 Tested up to: 6. 6.06 Stable tag: 1.0. 75 Tested up to: 6.8.1 6 Stable tag: 1.0.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 28 28 29 29 == Changelog == 30 31 = 1.0.8 = 32 * Improved the text-domain functionality for better compatibility 33 * Improved gettext translation throughout the plugin 34 * Updated language POT file 35 * Tested plugin with WordPress 6.8.1 30 36 31 37 = 1.0.7 = -
quick-and-easy-tweets/trunk/languages/qaet.pot
r3123520 r3321388 3 3 msgstr "" 4 4 "Project-Id-Version: Quick and Easy Tweets\n" 5 "POT-Creation-Date: 202 4-07-23 09:29+0500\n"5 "POT-Creation-Date: 2025-07-02 22:04+0500\n" 6 6 "PO-Revision-Date: 2018-09-24 22:30+0500\n" 7 7 "Last-Translator: M Saqib Sarwar <saqib@inspirythemes.com>\n" … … 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 13 "X-Generator: Poedit 3. 4.4\n"13 "X-Generator: Poedit 3.6\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" 16 16 "X-Poedit-WPHeader: quick-and-easy-tweets.php\n" 17 17 "X-Poedit-SourceCharset: UTF-8\n" 18 "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" 19 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;" 20 "_nx_noop:3c,1,2;__ngettext_noop:1,2\n" 18 "X-Poedit-KeywordsList: " 19 "__;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n" 21 20 "X-Poedit-SearchPath-0: .\n" 22 21 "X-Poedit-SearchPathExcluded-0: *.js\n" 23 22 24 23 #. Plugin Name of the plugin/theme 25 #: quick-and-easy-tweets.php: 2524 #: quick-and-easy-tweets.php:33 26 25 msgid "Quick and Easy Tweets" 27 26 msgstr "" 28 27 29 #: quick-and-easy-tweets.php: 2628 #: quick-and-easy-tweets.php:34 30 29 msgid "A widget to display tweets." 31 30 msgstr "" 32 31 33 #: quick-and-easy-tweets.php: 8232 #: quick-and-easy-tweets.php:90 34 33 msgid "" 35 34 "Problem in getting tweets. Kindly verify the twitter configurations provided " … … 37 36 msgstr "" 38 37 39 #: quick-and-easy-tweets.php: 9238 #: quick-and-easy-tweets.php:100 40 39 msgid "Recent Tweets" 41 40 msgstr "" 42 41 43 #: quick-and-easy-tweets.php:1 0242 #: quick-and-easy-tweets.php:110 44 43 msgid "Title:" 45 44 msgstr "" 46 45 47 #: quick-and-easy-tweets.php:1 0946 #: quick-and-easy-tweets.php:117 48 47 msgid "Twitter Username:" 49 48 msgstr "" 50 49 51 #: quick-and-easy-tweets.php:1 1650 #: quick-and-easy-tweets.php:124 52 51 msgid "Number of Tweets to Display:" 53 52 msgstr "" 54 53 55 #: quick-and-easy-tweets.php:1 2354 #: quick-and-easy-tweets.php:131 56 55 msgid "Consumer Key:" 57 56 msgstr "" 58 57 59 #: quick-and-easy-tweets.php:13 158 #: quick-and-easy-tweets.php:139 60 59 msgid "Consumer Secret:" 61 60 msgstr "" 62 61 63 #: quick-and-easy-tweets.php:1 3862 #: quick-and-easy-tweets.php:146 64 63 msgid "Access Token:" 65 64 msgstr "" 66 65 67 #: quick-and-easy-tweets.php:1 4566 #: quick-and-easy-tweets.php:153 68 67 msgid "Access Token Secret:" 69 68 msgstr "" 70 69 71 #: quick-and-easy-tweets.php:2 2870 #: quick-and-easy-tweets.php:236 72 71 msgid "right now" 73 72 msgstr "" 74 73 75 #: quick-and-easy-tweets.php:2 3374 #: quick-and-easy-tweets.php:241 76 75 msgid "seconds ago" 77 76 msgstr "" 78 77 79 #: quick-and-easy-tweets.php:2 3878 #: quick-and-easy-tweets.php:246 80 79 msgid "about 1 minute ago" 81 80 msgstr "" 82 81 83 #: quick-and-easy-tweets.php:2 4382 #: quick-and-easy-tweets.php:251 84 83 msgid "minutes ago" 85 84 msgstr "" 86 85 87 #: quick-and-easy-tweets.php:2 4886 #: quick-and-easy-tweets.php:256 88 87 msgid "about 1 hour ago" 89 88 msgstr "" 90 89 91 #: quick-and-easy-tweets.php:2 5390 #: quick-and-easy-tweets.php:261 92 91 msgid "hours ago" 93 92 msgstr "" 94 93 95 #: quick-and-easy-tweets.php:2 5894 #: quick-and-easy-tweets.php:266 96 95 msgid "yesterday" 97 96 msgstr "" 98 97 99 #: quick-and-easy-tweets.php:2 6398 #: quick-and-easy-tweets.php:271 100 99 msgid "days ago" 101 100 msgstr "" 102 101 103 #: quick-and-easy-tweets.php:2 67102 #: quick-and-easy-tweets.php:275 104 103 msgid "over a year ago" 105 104 msgstr "" -
quick-and-easy-tweets/trunk/quick-and-easy-tweets.php
r3123520 r3321388 4 4 * Plugin URI: https://github.com/saqibsarwar/quick-and-easy-tweets 5 5 * Description: A quick and easy way to display tweets on your website via widget. 6 * Version: 1.0. 77 * Tested up to: 6. 6.06 * Version: 1.0.8 7 * Tested up to: 6.8.1 8 8 * Requires PHP: 7.4 9 9 * Author: InspiryThemes … … 15 15 */ 16 16 17 // If this file is called directly, abort. 18 if ( ! defined( 'WPINC' ) ) { 19 die; 20 } 21 22 // Plugin text domain. 23 define( 'QE_TWEETS_TEXT_DOMAIN', 'qaet' ); 24 17 25 class Quick_And_Easy_Tweets extends WP_Widget { 18 26 … … 23 31 parent::__construct( 24 32 'quick-and-easy-tweets', 25 esc_html__( 'Quick and Easy Tweets', 'qaet'),26 array ( 'description' => esc_html__( 'A widget to display tweets.', 'qaet') ) );33 esc_html__( 'Quick and Easy Tweets', QE_TWEETS_TEXT_DOMAIN ), 34 array ( 'description' => esc_html__( 'A widget to display tweets.', QE_TWEETS_TEXT_DOMAIN ) ) ); 27 35 } 28 36 … … 80 88 81 89 } else { 82 esc_html_e( 'Problem in getting tweets. Kindly verify the twitter configurations provided in the widget.', 'qaet');90 esc_html_e( 'Problem in getting tweets. Kindly verify the twitter configurations provided in the widget.', QE_TWEETS_TEXT_DOMAIN ); 83 91 } 84 92 … … 90 98 */ 91 99 public function form( $instance ) { 92 $title = ! empty( $instance['title'] ) ? $instance['title'] : esc_html__( 'Recent Tweets', 'qaet');100 $title = ! empty( $instance['title'] ) ? $instance['title'] : esc_html__( 'Recent Tweets', QE_TWEETS_TEXT_DOMAIN ); 93 101 $twitter_username = ! empty( $instance['twitter_username'] ) ? $instance['twitter_username'] : ''; 94 102 $update_count = ! empty( $instance['update_count'] ) ? $instance['update_count'] : ''; … … 100 108 <p> 101 109 <label for="<?php echo $this->get_field_id( 'title' ); ?>"> 102 <?php esc_html_e( 'Title:', 'qaet'); ?>110 <?php esc_html_e( 'Title:', QE_TWEETS_TEXT_DOMAIN ); ?> 103 111 </label> 104 112 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" … … 107 115 <p> 108 116 <label for="<?php echo $this->get_field_id( 'twitter_username' ); ?>"> 109 <?php esc_html_e( 'Twitter Username:', 'qaet'); ?>117 <?php esc_html_e( 'Twitter Username:', QE_TWEETS_TEXT_DOMAIN ); ?> 110 118 </label> 111 119 <input class="widefat" id="<?php echo $this->get_field_id( 'twitter_username' ); ?>" name="<?php echo $this->get_field_name( 'twitter_username' ); ?>" … … 114 122 <p> 115 123 <label for="<?php echo $this->get_field_id( 'update_count' ); ?>"> 116 <?php esc_html_e( 'Number of Tweets to Display:', 'qaet'); ?>124 <?php esc_html_e( 'Number of Tweets to Display:', QE_TWEETS_TEXT_DOMAIN ); ?> 117 125 </label> 118 126 <input class="widefat" id="<?php echo $this->get_field_id( 'update_count' ); ?>" name="<?php echo $this->get_field_name( 'update_count' ); ?>" … … 121 129 <p> 122 130 <label for="<?php echo $this->get_field_id( 'consumer_key' ); ?>"> 123 <?php esc_html_e( 'Consumer Key:', 'qaet'); ?>131 <?php esc_html_e( 'Consumer Key:', QE_TWEETS_TEXT_DOMAIN ); ?> 124 132 </label> 125 133 <input class="widefat" id="<?php echo $this->get_field_id( 'consumer_key' ); ?>" name="<?php echo $this->get_field_name( 'consumer_key' ); ?>" … … 129 137 <p> 130 138 <label for="<?php echo $this->get_field_id( 'consumer_secret' ); ?>"> 131 <?php esc_html_e( 'Consumer Secret:', 'qaet'); ?>139 <?php esc_html_e( 'Consumer Secret:', QE_TWEETS_TEXT_DOMAIN ); ?> 132 140 </label> 133 141 <input class="widefat" id="<?php echo $this->get_field_id( 'consumer_secret' ); ?>" name="<?php echo $this->get_field_name( 'consumer_secret' ); ?>" … … 136 144 <p> 137 145 <label for="<?php echo $this->get_field_id( 'oauth_access_token' ); ?>"> 138 <?php esc_html_e( 'Access Token:', 'qaet'); ?>146 <?php esc_html_e( 'Access Token:', QE_TWEETS_TEXT_DOMAIN ); ?> 139 147 </label> 140 148 <input class="widefat" id="<?php echo $this->get_field_id( 'oauth_access_token' ); ?>" name="<?php echo $this->get_field_name( 'oauth_access_token' ); ?>" … … 143 151 <p> 144 152 <label for="<?php echo $this->get_field_id( 'oauth_access_token_secret' ); ?>"> 145 <?php esc_html_e( 'Access Token Secret:', 'qaet'); ?>153 <?php esc_html_e( 'Access Token Secret:', QE_TWEETS_TEXT_DOMAIN ); ?> 146 154 </label> 147 155 <input class="widefat" id="<?php echo $this->get_field_id( 'oauth_access_token_secret' ); ?>" name="<?php echo $this->get_field_name( 'oauth_access_token_secret' ); ?>" … … 226 234 // If less than 3 seconds. 227 235 if ( $difference < 3 ) { 228 return esc_html__( 'right now', 'qaet');236 return esc_html__( 'right now', QE_TWEETS_TEXT_DOMAIN ); 229 237 } 230 238 231 239 // If less than minute. 232 240 if ( $difference < $minute ) { 233 return floor( $difference ) . ' ' . esc_html__( 'seconds ago', 'qaet' );;241 return floor( $difference ) . ' ' . esc_html__( 'seconds ago', QE_TWEETS_TEXT_DOMAIN ); 234 242 } 235 243 236 244 // If less than 2 minutes. 237 245 if ( $difference < $minute * 2 ) { 238 return esc_html__( 'about 1 minute ago', 'qaet');246 return esc_html__( 'about 1 minute ago', QE_TWEETS_TEXT_DOMAIN ); 239 247 } 240 248 241 249 // If less than hour. 242 250 if ( $difference < $hour ) { 243 return floor( $difference / $minute ) . ' ' . esc_html__( 'minutes ago', 'qaet');251 return floor( $difference / $minute ) . ' ' . esc_html__( 'minutes ago', QE_TWEETS_TEXT_DOMAIN ); 244 252 } 245 253 246 254 // If less than 2 hours. 247 255 if ( $difference < $hour * 2 ) { 248 return esc_html__( 'about 1 hour ago', 'qaet');256 return esc_html__( 'about 1 hour ago', QE_TWEETS_TEXT_DOMAIN ); 249 257 } 250 258 251 259 // If less than day. 252 260 if ( $difference < $day ) { 253 return floor( $difference / $hour ) . ' ' . esc_html__( 'hours ago', 'qaet');261 return floor( $difference / $hour ) . ' ' . esc_html__( 'hours ago', QE_TWEETS_TEXT_DOMAIN ); 254 262 } 255 263 256 264 // If more than day, but less than 2 days. 257 265 if ( $difference > $day && $difference < $day * 2 ) { 258 return esc_html__( 'yesterday', 'qaet' );;266 return esc_html__( 'yesterday', QE_TWEETS_TEXT_DOMAIN ); 259 267 } 260 268 261 269 // If less than year. 262 270 if ( $difference < $day * 365 ) { 263 return floor( $difference / $day ) . ' ' . esc_html__( 'days ago', 'qaet');271 return floor( $difference / $day ) . ' ' . esc_html__( 'days ago', QE_TWEETS_TEXT_DOMAIN ); 264 272 } 265 273 266 274 // Else return more than a year. 267 return esc_html__( 'over a year ago', 'qaet');275 return esc_html__( 'over a year ago', QE_TWEETS_TEXT_DOMAIN ); 268 276 } 269 277 } … … 286 294 */ 287 295 function qaet_load_textdomain() { 288 load_plugin_textdomain( 'qaet', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );296 load_plugin_textdomain( QE_TWEETS_TEXT_DOMAIN, false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' ); 289 297 } 290 298
Note: See TracChangeset
for help on using the changeset viewer.