rtMedia for WordPress, BuddyPress and bbPress - Version 2.8.1

Version Description

  • Improved i18n support, thanks to David Decker
  • Updated translations
Download this release

Release Info

Developer JoshuaAbenazer
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 2.8.1
Comparing to
See all releases

Code changes from version 2.8 to 2.8.1

Files changed (40) hide show
  1. app/admin/BPMediaAdmin.php +43 -50
  2. app/helper/BPMediaAddon.php +11 -11
  3. app/helper/BPMediaAdminWidget.php +1 -1
  4. app/helper/BPMediaFeed.php +2 -2
  5. app/helper/BPMediaSettings.php +69 -73
  6. app/helper/BPMediaSupport.php +27 -27
  7. app/importers/BPMediaAlbumimporter.php +140 -106
  8. app/main/BPMediaComponent.php +22 -22
  9. app/main/BPMediaGroupLoader.php +3 -3
  10. app/main/BuddyPressMedia.php +1 -4
  11. app/main/activity/BPMediaActivity.php +1 -1
  12. app/main/group/BPMediaGroupAction.php +1 -1
  13. app/main/group/BPMediaGroupElementExtension.php +2 -2
  14. app/main/group/BPMediaGroupsExtension.php +15 -15
  15. app/main/includes/BPMediaActions.php +10 -10
  16. app/main/includes/BPMediaFilters.php +16 -16
  17. app/main/includes/BPMediaFunction.php +2 -2
  18. app/main/includes/BPMediaHostWordpress.php +28 -28
  19. app/main/includes/BPMediaTemplateFunctions.php +4 -4
  20. app/main/privacy/BPMediaPrivacy.php +8 -8
  21. app/main/privacy/BPMediaPrivacyScreen.php +2 -2
  22. app/main/privacy/BPMediaPrivacySettings.php +3 -3
  23. app/main/profile/BPMediaAlbum.php +3 -3
  24. app/main/profile/BPMediaAlbumScreen.php +4 -4
  25. app/main/profile/BPMediaScreen.php +12 -12
  26. app/main/profile/BPMediaTemplate.php +20 -20
  27. app/main/profile/BPMediaUploadScreen.php +8 -8
  28. app/main/widgets/BPMediaWidget.php +17 -17
  29. index.php +1 -1
  30. languages/buddypress-media-de_DE.mo +0 -0
  31. languages/buddypress-media-es_ES.mo +0 -0
  32. languages/buddypress-media-fr_FR.mo +0 -0
  33. languages/buddypress-media-it_IT.mo +0 -0
  34. languages/buddypress-media-nl_NL.mo +0 -0
  35. languages/buddypress-media-pl_PL.mo +0 -0
  36. languages/buddypress-media-pt_BR.mo +0 -0
  37. languages/buddypress-media-sr_SR.mo +0 -0
  38. languages/buddypress-media.mo +0 -0
  39. languages/buddypress-media.po +641 -503
  40. readme.txt +8 -4
app/admin/BPMediaAdmin.php CHANGED
@@ -71,24 +71,22 @@ if (!class_exists('BPMediaAdmin')) {
71
  /**
72
  * Admin Menu
73
  *
74
- * @global string BP_MEDIA_TXT_DOMAIN
75
  */
76
  public function menu() {
77
  global $wpdb;
78
- add_menu_page(__('BuddyPress Media Component', BP_MEDIA_TXT_DOMAIN), __('BuddyPress Media', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
79
- add_submenu_page('bp-media-settings', __('BuddyPress Media Settings', BP_MEDIA_TXT_DOMAIN), __('Settings', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
80
  if (!BPMediaPrivacy::is_installed()) {
81
- add_submenu_page('bp-media-settings', __('BuddyPress Media Database Update', BP_MEDIA_TXT_DOMAIN), __('Update Database', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-privacy', array($this, 'privacy_page'));
82
  }
83
- $bp_album_active = BPMediaImporter::_active('bp-album/loader.php');
84
- $table = "{$wpdb->base_prefix}bp_album";
85
- if (BPMediaImporter::table_exists($table) && $bp_album_active != -1) {
86
- add_submenu_page('bp-media-settings', __('Importer', BP_MEDIA_TXT_DOMAIN), __('Importer', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-importer', array($this, 'bp_importer_page'));
87
- }
88
- add_submenu_page('bp-media-settings', __('BuddyPress Media Addons', BP_MEDIA_TXT_DOMAIN), __('Addons', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-addons', array($this, 'addons_page'));
89
- add_submenu_page('bp-media-settings', __('BuddyPress Media Support', BP_MEDIA_TXT_DOMAIN), __('Support ', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-support', array($this, 'support_page'));
90
  if (bp_get_option('bp-media-survey', true)) {
91
- add_submenu_page('bp-media-settings', __('BuddyPress Media Convert Videos', BP_MEDIA_TXT_DOMAIN), __('Convert Videos', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-convert-videos', array($this, 'convert_videos_page'));
92
  }
93
  }
94
 
@@ -136,7 +134,7 @@ if (!class_exists('BPMediaAdmin')) {
136
  /**
137
  * Render BPMedia Settings
138
  *
139
- * @global string BP_MEDIA_TXT_DOMAIN
140
  */
141
 
142
  /**
@@ -149,7 +147,7 @@ if (!class_exists('BPMediaAdmin')) {
149
 
150
  <div class="wrap bp-media-admin <?php echo $this->get_current_tab(); ?>">
151
  <div id="icon-buddypress" class="icon32"><br></div>
152
- <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs(__('Media', BP_MEDIA_TXT_DOMAIN)); ?></h2>
153
  <?php settings_errors(); ?>
154
  <div class="columns-2">
155
  <h3 class="bp-media-settings-tabs"><?php
@@ -171,7 +169,7 @@ if (!class_exists('BPMediaAdmin')) {
171
  do_settings_sections($page);
172
  }
173
  ?>
174
- <div class="rt-link alignright"><?php _e('By', BP_MEDIA_TXT_DOMAIN); ?> <a href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" title="<?php _e('Empowering The Web With WordPress', BP_MEDIA_TXT_DOMAIN); ?>"><img src="<?php echo BP_MEDIA_URL; ?>app/assets/img/rtcamp-logo.png"></a></div>
175
  </div>
176
 
177
  </form>
@@ -201,8 +199,8 @@ if (!class_exists('BPMediaAdmin')) {
201
  /* BuddyPress Media */
202
  $tabs[] = array(
203
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
204
- 'title' => __('BuddyPress Media', BP_MEDIA_TXT_DOMAIN),
205
- 'name' => __('BuddyPress Media', BP_MEDIA_TXT_DOMAIN),
206
  'class' => ($tab == 'bp-media-settings' || $tab == 'bp-media-addons' || $tab == 'bp-media-support') ? $active_class : $idle_class
207
  );
208
 
@@ -229,45 +227,40 @@ if (!class_exists('BPMediaAdmin')) {
229
  /* BuddyPress Media */
230
  $tabs[] = array(
231
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
232
- 'title' => __('BuddyPress Media Settings', BP_MEDIA_TXT_DOMAIN),
233
- 'name' => __('Settings', BP_MEDIA_TXT_DOMAIN),
234
  'class' => ($tab == 'bp-media-settings') ? $active_class : $idle_class . ' first_tab'
235
  );
236
 
237
  $tabs[] = array(
238
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-addons'), 'admin.php')),
239
- 'title' => __('BuddyPress Media Addons', BP_MEDIA_TXT_DOMAIN),
240
- 'name' => __('Addons', BP_MEDIA_TXT_DOMAIN),
241
  'class' => ($tab == 'bp-media-addons') ? $active_class : $idle_class
242
  );
243
 
244
  $tabs[] = array(
245
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php')),
246
- 'title' => __('BuddyPress Media Support', BP_MEDIA_TXT_DOMAIN),
247
- 'name' => __('Support', BP_MEDIA_TXT_DOMAIN),
248
  'class' => ($tab == 'bp-media-support') ? $active_class : $idle_class . ' last_tab'
249
  );
250
 
251
  if (bp_get_option('bp-media-survey', true)) {
252
  $tabs[] = array(
253
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-convert-videos'), 'admin.php')),
254
- 'title' => __('BuddyPress Media Covert Videos', BP_MEDIA_TXT_DOMAIN),
255
- 'name' => __('Convert Videos', BP_MEDIA_TXT_DOMAIN),
256
  'class' => ($tab == 'bp-media-convert-videos') ? $active_class : $idle_class . ' last_tab'
257
  );
258
  }
259
 
260
- global $wpdb;
261
- $bp_album_active = BPMediaImporter::_active('bp-album/loader.php');
262
- $table = "{$wpdb->base_prefix}bp_album";
263
- if (BPMediaImporter::table_exists($table) && $bp_album_active!=-1) {
264
- $tabs[] = array(
265
- 'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-importer'), 'admin.php')),
266
- 'title' => __('Importer', BP_MEDIA_TXT_DOMAIN),
267
- 'name' => __('Importer', BP_MEDIA_TXT_DOMAIN),
268
- 'class' => ($tab == 'bp-media-importer') ? $active_class : $idle_class
269
- );
270
- }
271
 
272
  $tabs = apply_filters('bp_media_add_sub_tabs', $tabs, $tab);
273
  foreach ($tabs as $tab) {
@@ -357,11 +350,11 @@ if (!class_exists('BPMediaAdmin')) {
357
  public function admin_sidebar() {
358
  $current_user = wp_get_current_user();
359
 
360
- $message = sprintf(__('I use @buddypressmedia http://goo.gl/8Upmv on %s', BP_MEDIA_TXT_DOMAIN), home_url());
361
- $addons = '<label for="bp-media-add-linkback"><input' . checked(bp_get_option('bp_media_add_linkback', false), true, false) . ' type="checkbox" name="bp-media-add-linkback" value="1" id="bp-media-add-linkback"/> ' . __('Add link to footer', BP_MEDIA_TXT_DOMAIN) . '</label>
362
- <a href="http://twitter.com/home/?status=' . $message . '" class="button button-tweet" target= "_blank">' . __('Tweet', BP_MEDIA_TXT_DOMAIN) . '</a>
363
- <a href="http://wordpress.org/support/view/plugin-reviews/buddypress-media?rate=5#postform" class="button button-rating" target= "_blank">' . __('Rate on WordPress.org', BP_MEDIA_TXT_DOMAIN) . '</a>';
364
- new BPMediaAdminWidget('spread-the-word', __('Spread the Word', BP_MEDIA_TXT_DOMAIN), $addons);
365
 
366
  $donate = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
367
  <!-- Identify your business so that you can collect the payments. -->
@@ -371,7 +364,7 @@ if (!class_exists('BPMediaAdmin')) {
371
  <input type="hidden" name="cmd" value="_donations">
372
  <!-- Specify details about the contribution -->
373
  <input type="hidden" name="item_name" value="BuddyPress Media">
374
- <label><b>' . __('USD', BP_MEDIA_TXT_DOMAIN) . '</b></label>
375
  <input type="text" name="amount" size="3">
376
  <input type="hidden" name="currency_code" value="USD">
377
  <!-- Display the payment button. -->
@@ -380,10 +373,10 @@ if (!class_exists('BPMediaAdmin')) {
380
  src="' . BP_MEDIA_URL . 'app/assets/img/paypal-donate-button.png"
381
  alt="PayPal - The safer, easier way to pay online">
382
  </form><br />
383
- <center><b>' . __('OR', BP_MEDIA_TXT_DOMAIN) . '</b></center><br />
384
- <center>' . __('Use <a href="https://rtcamp.com/store/product-category/buddypress/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media">premium add-ons</a> starting from $9', BP_MEDIA_TXT_DOMAIN) . '</center>';
385
  ;
386
- new BPMediaAdminWidget('donate', __('Donate', BP_MEDIA_TXT_DOMAIN), $donate);
387
 
388
  $branding = '<form action="http://rtcamp.us1.list-manage1.com/subscribe/post?u=85b65c9c71e2ba3fab8cb1950&amp;id=9e8ded4470" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
389
  <div class="mc-field-group">
@@ -397,14 +390,14 @@ if (!class_exists('BPMediaAdmin')) {
397
  </div>
398
  </form>
399
  <ul id="social">
400
- <li><a href="' . sprintf('%s', 'http://www.facebook.com/rtCamp.solutions/') . '" title="' . __('Become a fan on Facebook', BP_MEDIA_TXT_DOMAIN) . '" class="bp-media-facebook bp-media-social">' . __('Facebook', BP_MEDIA_TXT_DOMAIN) . '</a></li>
401
- <li><a href="' . sprintf('%s', 'https://twitter.com/rtcamp/') . '" title="' . __('Follow us on Twitter', BP_MEDIA_TXT_DOMAIN) . '" class="bp-media-twitter bp-media-social">' . __('Twitter', BP_MEDIA_TXT_DOMAIN) . '</a></li>
402
- <li><a href="' . sprintf('%s', 'http://feeds.feedburner.com/rtcamp/') . '" title="' . __('Subscribe to our feeds', BP_MEDIA_TXT_DOMAIN) . '" class="bp-media-rss bp-media-social">' . __('RSS Feed', BP_MEDIA_TXT_DOMAIN) . '</a></li>
403
  </ul>';
404
- new BPMediaAdminWidget('branding', __('Subscribe', BP_MEDIA_TXT_DOMAIN), $branding);
405
 
406
  $news = '<img src ="' . admin_url('/images/wpspin_light.gif') . '" /> Loading...';
407
- new BPMediaAdminWidget('latest-news', __('Latest News', BP_MEDIA_TXT_DOMAIN), $news);
408
  }
409
 
410
  public function linkback() {
71
  /**
72
  * Admin Menu
73
  *
74
+ * @global string 'buddypress-media'
75
  */
76
  public function menu() {
77
  global $wpdb;
78
+ add_menu_page(__('BuddyPress Media Component', 'buddypress-media'), __('BuddyPress Media', 'buddypress-media'), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
79
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Settings', 'buddypress-media'), __('Settings', 'buddypress-media'), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
80
  if (!BPMediaPrivacy::is_installed()) {
81
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Database Update', 'buddypress-media'), __('Update Database', 'buddypress-media'), 'manage_options', 'bp-media-privacy', array($this, 'privacy_page'));
82
  }
83
+
84
+ add_submenu_page('bp-media-settings', __('Importer', 'buddypress-media'), __('Importer', 'buddypress-media'), 'manage_options', 'bp-media-importer', array($this, 'bp_importer_page'));
85
+
86
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Addons', 'buddypress-media'), __('Addons', 'buddypress-media'), 'manage_options', 'bp-media-addons', array($this, 'addons_page'));
87
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Support', 'buddypress-media'), __('Support ', 'buddypress-media'), 'manage_options', 'bp-media-support', array($this, 'support_page'));
 
 
88
  if (bp_get_option('bp-media-survey', true)) {
89
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Convert Videos', 'buddypress-media'), __('Convert Videos', 'buddypress-media'), 'manage_options', 'bp-media-convert-videos', array($this, 'convert_videos_page'));
90
  }
91
  }
92
 
134
  /**
135
  * Render BPMedia Settings
136
  *
137
+ * @global string 'buddypress-media'
138
  */
139
 
140
  /**
147
 
148
  <div class="wrap bp-media-admin <?php echo $this->get_current_tab(); ?>">
149
  <div id="icon-buddypress" class="icon32"><br></div>
150
+ <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs(__('Media', 'buddypress-media')); ?></h2>
151
  <?php settings_errors(); ?>
152
  <div class="columns-2">
153
  <h3 class="bp-media-settings-tabs"><?php
169
  do_settings_sections($page);
170
  }
171
  ?>
172
+ <div class="rt-link alignright"><?php _e('By', 'buddypress-media'); ?> <a href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" title="<?php _e('Empowering The Web With WordPress', 'buddypress-media'); ?>"><img src="<?php echo BP_MEDIA_URL; ?>app/assets/img/rtcamp-logo.png"></a></div>
173
  </div>
174
 
175
  </form>
199
  /* BuddyPress Media */
200
  $tabs[] = array(
201
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
202
+ 'title' => __('BuddyPress Media', 'buddypress-media'),
203
+ 'name' => __('BuddyPress Media', 'buddypress-media'),
204
  'class' => ($tab == 'bp-media-settings' || $tab == 'bp-media-addons' || $tab == 'bp-media-support') ? $active_class : $idle_class
205
  );
206
 
227
  /* BuddyPress Media */
228
  $tabs[] = array(
229
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
230
+ 'title' => __('BuddyPress Media Settings', 'buddypress-media'),
231
+ 'name' => __('Settings', 'buddypress-media'),
232
  'class' => ($tab == 'bp-media-settings') ? $active_class : $idle_class . ' first_tab'
233
  );
234
 
235
  $tabs[] = array(
236
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-addons'), 'admin.php')),
237
+ 'title' => __('BuddyPress Media Addons', 'buddypress-media'),
238
+ 'name' => __('Addons', 'buddypress-media'),
239
  'class' => ($tab == 'bp-media-addons') ? $active_class : $idle_class
240
  );
241
 
242
  $tabs[] = array(
243
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php')),
244
+ 'title' => __('BuddyPress Media Support', 'buddypress-media'),
245
+ 'name' => __('Support', 'buddypress-media'),
246
  'class' => ($tab == 'bp-media-support') ? $active_class : $idle_class . ' last_tab'
247
  );
248
 
249
  if (bp_get_option('bp-media-survey', true)) {
250
  $tabs[] = array(
251
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-convert-videos'), 'admin.php')),
252
+ 'title' => __('BuddyPress Media Covert Videos', 'buddypress-media'),
253
+ 'name' => __('Convert Videos', 'buddypress-media'),
254
  'class' => ($tab == 'bp-media-convert-videos') ? $active_class : $idle_class . ' last_tab'
255
  );
256
  }
257
 
258
+ $tabs[] = array(
259
+ 'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-importer'), 'admin.php')),
260
+ 'title' => __('Importer', 'buddypress-media'),
261
+ 'name' => __('Importer', 'buddypress-media'),
262
+ 'class' => ($tab == 'bp-media-importer') ? $active_class : $idle_class
263
+ );
 
 
 
 
 
264
 
265
  $tabs = apply_filters('bp_media_add_sub_tabs', $tabs, $tab);
266
  foreach ($tabs as $tab) {
350
  public function admin_sidebar() {
351
  $current_user = wp_get_current_user();
352
 
353
+ $message = sprintf(__('I use @buddypressmedia http://goo.gl/8Upmv on %s', 'buddypress-media'), home_url());
354
+ $addons = '<label for="bp-media-add-linkback"><input' . checked(bp_get_option('bp_media_add_linkback', false), true, false) . ' type="checkbox" name="bp-media-add-linkback" value="1" id="bp-media-add-linkback"/> ' . __('Add link to footer', 'buddypress-media') . '</label>
355
+ <a href="http://twitter.com/home/?status=' . $message . '" class="button button-tweet" target= "_blank">' . __('Tweet', 'buddypress-media') . '</a>
356
+ <a href="http://wordpress.org/support/view/plugin-reviews/buddypress-media?rate=5#postform" class="button button-rating" target= "_blank">' . __('Rate on WordPress.org', 'buddypress-media') . '</a>';
357
+ new BPMediaAdminWidget('spread-the-word', __('Spread the Word', 'buddypress-media'), $addons);
358
 
359
  $donate = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
360
  <!-- Identify your business so that you can collect the payments. -->
364
  <input type="hidden" name="cmd" value="_donations">
365
  <!-- Specify details about the contribution -->
366
  <input type="hidden" name="item_name" value="BuddyPress Media">
367
+ <label><b>' . __('USD', 'buddypress-media') . '</b></label>
368
  <input type="text" name="amount" size="3">
369
  <input type="hidden" name="currency_code" value="USD">
370
  <!-- Display the payment button. -->
373
  src="' . BP_MEDIA_URL . 'app/assets/img/paypal-donate-button.png"
374
  alt="PayPal - The safer, easier way to pay online">
375
  </form><br />
376
+ <center><b>' . __('OR', 'buddypress-media') . '</b></center><br />
377
+ <center>' . __('Use <a href="https://rtcamp.com/store/product-category/buddypress/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media">premium add-ons</a> starting from $9', 'buddypress-media') . '</center>';
378
  ;
379
+ new BPMediaAdminWidget('donate', __('Donate', 'buddypress-media'), $donate);
380
 
381
  $branding = '<form action="http://rtcamp.us1.list-manage1.com/subscribe/post?u=85b65c9c71e2ba3fab8cb1950&amp;id=9e8ded4470" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
382
  <div class="mc-field-group">
390
  </div>
391
  </form>
392
  <ul id="social">
393
+ <li><a href="' . sprintf('%s', 'http://www.facebook.com/rtCamp.solutions/') . '" title="' . __('Become a fan on Facebook', 'buddypress-media') . '" class="bp-media-facebook bp-media-social">' . __('Facebook', 'buddypress-media') . '</a></li>
394
+ <li><a href="' . sprintf('%s', 'https://twitter.com/rtcamp/') . '" title="' . __('Follow us on Twitter', 'buddypress-media') . '" class="bp-media-twitter bp-media-social">' . __('Twitter', 'buddypress-media') . '</a></li>
395
+ <li><a href="' . sprintf('%s', 'http://feeds.feedburner.com/rtcamp/') . '" title="' . __('Subscribe to our feeds', 'buddypress-media') . '" class="bp-media-rss bp-media-social">' . __('RSS Feed', 'buddypress-media') . '</a></li>
396
  </ul>';
397
+ new BPMediaAdminWidget('branding', __('Subscribe', 'buddypress-media'), $branding);
398
 
399
  $news = '<img src ="' . admin_url('/images/wpspin_light.gif') . '" /> Loading...';
400
+ new BPMediaAdminWidget('latest-news', __('Latest News', 'buddypress-media'), $news);
401
  }
402
 
403
  public function linkback() {
app/helper/BPMediaAddon.php CHANGED
@@ -26,31 +26,31 @@ if (!class_exists('BPMediaAddon')) {
26
  public function get_addons() {
27
  $addons = array(
28
  array(
29
- 'title' => __('BuddyPress-Media Instagram', BP_MEDIA_TXT_DOMAIN),
30
  'img_src' => 'http://cdn.rtcamp.com/wp-content/uploads/2013/03/BuddyPressMedia-Instagram.png',
31
  'product_link' => 'http://rtcamp.com/store/buddypress-media-instagram/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
32
- 'desc' => '<p>' . __('BuddyPress Media Instagram adds Instagram like filters to images uploaded with BuddyPress Media.', BP_MEDIA_TXT_DOMAIN) . '</p>
33
- <p><strong>' . __('Important', BP_MEDIA_TXT_DOMAIN) . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', BP_MEDIA_TXT_DOMAIN) . '</p>',
34
  'price' => '$19',
35
  'demo_link' => 'http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
36
  'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=34379'
37
  ),
38
  array(
39
- 'title' => __('BuddyPress-Media Kaltura Add-on', BP_MEDIA_TXT_DOMAIN),
40
  'img_src' => 'http://cdn.rtcamp.com/files/2012/10/new-buddypress-media-kaltura-logo-240x184.png',
41
  'product_link' => 'http://rtcamp.com/store/buddypress-media-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
42
- 'desc' => '<p>' . __('Add support for more video formats using Kaltura video solution.', BP_MEDIA_TXT_DOMAIN) . '</p>
43
- <p>' . __('Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise.', BP_MEDIA_TXT_DOMAIN) . '</p>',
44
  'price' => '$99',
45
  'demo_link' => 'http://demo.rtcamp.com/bpm-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
46
  'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=15446'
47
  ),
48
  array(
49
- 'title' => __('BuddyPress-Media FFMPEG Add-on', BP_MEDIA_TXT_DOMAIN),
50
  'img_src' => 'http://cdn.rtcamp.com/files/2012/09/ffmpeg-logo-240x184.png',
51
  'product_link' => 'http://rtcamp.com/store/buddypress-media-ffmpeg-converter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
52
- 'desc' => '<p>' . __('Add supports for more audio & video formats using open-source media-node.', BP_MEDIA_TXT_DOMAIN) . '</p>
53
- <p>' . __('Media node comes with automated setup script for Ubuntu/Debian.', BP_MEDIA_TXT_DOMAIN) . '</p>',
54
  'price' => '$49',
55
  'demo_link' => 'http://demo.rtcamp.com/bpm-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
56
  'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=13677'
@@ -96,8 +96,8 @@ if (!class_exists('BPMediaAddon')) {
96
  </div>
97
  <div class="product_footer">
98
  <span class="price alignleft"><span class="amount">' . $price . '</span></span>
99
- <a class="add_to_cart_button alignright product_type_simple" href="' . $buy_now . '" target="_blank">' . __('Buy Now', BP_MEDIA_TXT_DOMAIN) . '</a>
100
- <a class="alignleft product_demo_link" href="' . $demo_link . '" title="' . $title . '" target="_blank">' . __('Live Demo', BP_MEDIA_TXT_DOMAIN) . '</a>
101
  </div>'
102
  . $coming_soon_div .
103
  '</div>';
26
  public function get_addons() {
27
  $addons = array(
28
  array(
29
+ 'title' => __('BuddyPress-Media Instagram', 'buddypress-media'),
30
  'img_src' => 'http://cdn.rtcamp.com/wp-content/uploads/2013/03/BuddyPressMedia-Instagram.png',
31
  'product_link' => 'http://rtcamp.com/store/buddypress-media-instagram/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
32
+ 'desc' => '<p>' . __('BuddyPress Media Instagram adds Instagram like filters to images uploaded with BuddyPress Media.', 'buddypress-media') . '</p>
33
+ <p><strong>' . __('Important', 'buddypress-media') . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', 'buddypress-media') . '</p>',
34
  'price' => '$19',
35
  'demo_link' => 'http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
36
  'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=34379'
37
  ),
38
  array(
39
+ 'title' => __('BuddyPress-Media Kaltura Add-on', 'buddypress-media'),
40
  'img_src' => 'http://cdn.rtcamp.com/files/2012/10/new-buddypress-media-kaltura-logo-240x184.png',
41
  'product_link' => 'http://rtcamp.com/store/buddypress-media-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
42
+ 'desc' => '<p>' . __('Add support for more video formats using Kaltura video solution.', 'buddypress-media') . '</p>
43
+ <p>' . __('Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise.', 'buddypress-media') . '</p>',
44
  'price' => '$99',
45
  'demo_link' => 'http://demo.rtcamp.com/bpm-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
46
  'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=15446'
47
  ),
48
  array(
49
+ 'title' => __('BuddyPress-Media FFMPEG Add-on', 'buddypress-media'),
50
  'img_src' => 'http://cdn.rtcamp.com/files/2012/09/ffmpeg-logo-240x184.png',
51
  'product_link' => 'http://rtcamp.com/store/buddypress-media-ffmpeg-converter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
52
+ 'desc' => '<p>' . __('Add supports for more audio & video formats using open-source media-node.', 'buddypress-media') . '</p>
53
+ <p>' . __('Media node comes with automated setup script for Ubuntu/Debian.', 'buddypress-media') . '</p>',
54
  'price' => '$49',
55
  'demo_link' => 'http://demo.rtcamp.com/bpm-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
56
  'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=13677'
96
  </div>
97
  <div class="product_footer">
98
  <span class="price alignleft"><span class="amount">' . $price . '</span></span>
99
+ <a class="add_to_cart_button alignright product_type_simple" href="' . $buy_now . '" target="_blank">' . __('Buy Now', 'buddypress-media') . '</a>
100
+ <a class="alignleft product_demo_link" href="' . $demo_link . '" title="' . $title . '" target="_blank">' . __('Live Demo', 'buddypress-media') . '</a>
101
  </div>'
102
  . $coming_soon_div .
103
  '</div>';
app/helper/BPMediaAdminWidget.php CHANGED
@@ -26,7 +26,7 @@ if (!class_exists('BPMediaAdminWidget')) {
26
  <div class="inside"><?php echo $content; ?></div>
27
  </div><?php
28
  } else {
29
- trigger_error(__('Argument missing. id is required.', BP_MEDIA_TXT_DOMAIN));
30
  }
31
  }
32
 
26
  <div class="inside"><?php echo $content; ?></div>
27
  </div><?php
28
  } else {
29
+ trigger_error(__('Argument missing. id is required.', 'buddypress-media'));
30
  }
31
  }
32
 
app/helper/BPMediaFeed.php CHANGED
@@ -40,13 +40,13 @@ class BPMediaFeed {
40
  ?>
41
  <ul><?php
42
  if ($maxitems == 0) {
43
- echo '<li>' . __('No items', BP_MEDIA_TXT_DOMAIN) . '.</li>';
44
  } else {
45
  // Loop through each feed item and display each item as a hyperlink.
46
  foreach ($rss_items as $item) {
47
  ?>
48
  <li>
49
- <a href='<?php echo $item->get_permalink(); ?>?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media' title='<?php echo __('Posted ', BP_MEDIA_TXT_DOMAIN) . $item->get_date('j F Y | g:i a'); ?>'><?php echo $item->get_title(); ?></a>
50
  </li><?php
51
  }
52
  }
40
  ?>
41
  <ul><?php
42
  if ($maxitems == 0) {
43
+ echo '<li>' . __('No items', 'buddypress-media') . '.</li>';
44
  } else {
45
  // Loop through each feed item and display each item as a hyperlink.
46
  foreach ($rss_items as $item) {
47
  ?>
48
  <li>
49
+ <a href='<?php echo $item->get_permalink(); ?>?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media' title='<?php echo __('Posted ', 'buddypress-media') . $item->get_date('j F Y | g:i a'); ?>'><?php echo $item->get_title(); ?></a>
50
  </li><?php
51
  }
52
  }
app/helper/BPMediaSettings.php CHANGED
@@ -21,7 +21,7 @@ if (!class_exists('BPMediaSettings')) {
21
  /**
22
  * Register Settings
23
  *
24
- * @global string BP_MEDIA_TXT_DOMAIN
25
  */
26
 
27
  /**
@@ -30,134 +30,130 @@ if (!class_exists('BPMediaSettings')) {
30
  */
31
  public function settings() {
32
  global $bp_media, $bp_media_addon, $wpdb;
33
- add_settings_section('bpm-settings', __('Enabled Media Types', BP_MEDIA_TXT_DOMAIN), is_multisite() ? array($this, 'network_notices') : '', 'bp-media-settings');
34
- add_settings_field('bpm-image', __('Photos', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
35
  'setting' => 'bp_media_options',
36
  'option' => 'images_enabled',
37
- 'desc' => __('Enable Photos', BP_MEDIA_TXT_DOMAIN)
38
  ));
39
- add_settings_field('bpm-video', __('Video', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
40
  'setting' => 'bp_media_options',
41
  'option' => 'videos_enabled',
42
- 'desc' => __('Enable Video (mp4)', BP_MEDIA_TXT_DOMAIN)
43
  ));
44
- add_settings_field('bpm-audio', __('Audio', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
45
  'setting' => 'bp_media_options',
46
  'option' => 'audio_enabled',
47
- 'desc' => __('Enable Audio (mp3)', BP_MEDIA_TXT_DOMAIN)
48
  ));
49
  if (bp_is_active('activity')) {
50
- add_settings_section('bpm-activity-upload', __('Activity Upload', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
51
- add_settings_field('bpm-activity', __('Activity Uploads', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-activity-upload', array(
52
  'setting' => 'bp_media_options',
53
  'option' => 'activity_upload',
54
- 'desc' => __('Enable Activity Uploading', BP_MEDIA_TXT_DOMAIN)
55
  )
56
  );
57
  }
58
 
59
- add_settings_section('bpm-media-lightbox', __('Lightbox Integration', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
60
- add_settings_field('bpm-media-lightbox-option', __('Lightbox', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-lightbox', array(
61
  'setting' => 'bp_media_options',
62
  'option' => 'enable_lightbox',
63
- 'desc' => __('Enable Lighbox on Media', BP_MEDIA_TXT_DOMAIN)
64
  )
65
  );
66
 
67
  if (bp_is_active('groups')) {
68
- add_settings_section('bpm-media-type', __('Groups Integration', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
69
- // add_settings_field('bpm-admin-profile', __('User profiles', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-type', array(
70
  // 'setting' => 'bp_media_options',
71
  // 'option' => 'enable_on_profile',
72
- // 'desc' => __('Check to enable BuddyPress Media on User profiles', BP_MEDIA_TXT_DOMAIN)
73
  // )
74
  // );
75
- add_settings_field('bpm-admin-group', __('Groups', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-type', array(
76
  'setting' => 'bp_media_options',
77
  'option' => 'enable_on_group',
78
- 'desc' => __('Allow Media in Groups', BP_MEDIA_TXT_DOMAIN)
79
  )
80
  );
81
  }
82
 
83
 
84
 
85
- add_settings_section('bpm-media-fine', __('Display Settings', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
86
- add_settings_field('bpm-media-count', __('Number of media', BP_MEDIA_TXT_DOMAIN), array($this, 'textbox'), 'bp-media-settings', 'bpm-media-fine', array(
87
  'setting' => 'bp_media_options',
88
  'option' => 'default_count',
89
  'number' => true
90
  ));
91
- add_settings_field('bpm-download', __('Download Button', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-fine', array(
92
  'setting' => 'bp_media_options',
93
  'option' => 'download_enabled',
94
- 'desc' => __('Display download button under media', BP_MEDIA_TXT_DOMAIN)
95
  ));
96
 
97
  if (BPMediaPrivacy::is_installed()) {
98
- add_settings_section('bpm-privacy', __('Privacy Settings', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
99
- add_settings_field('bpm-privacy-enabled', __('Enable Privacy', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-privacy', array(
100
  'setting' => 'bp_media_options',
101
  'option' => 'privacy_enabled',
102
- 'desc' => __('Enable privacy', BP_MEDIA_TXT_DOMAIN)
103
  ));
104
 
105
  $settings = array(
106
- 6 => __('<strong>Private</strong> - Visible only to the user', BP_MEDIA_TXT_DOMAIN),
107
- 4 => __('<strong>Friends</strong> - Visible to user\'s friends', BP_MEDIA_TXT_DOMAIN),
108
- 2 => __('<strong>Users</strong> - Visible to registered users', BP_MEDIA_TXT_DOMAIN),
109
- 0 => __('<strong>Public</strong> - Visible to the world', BP_MEDIA_TXT_DOMAIN)
110
  );
111
  if (!bp_is_active('friends')) {
112
  unset($settings[4]);
113
  }
114
- add_settings_field('bpm-privacy-private-enabled', __('Default Privacy', BP_MEDIA_TXT_DOMAIN), array($this, 'radio'), 'bp-media-settings', 'bpm-privacy', array(
115
  'setting' => 'bp_media_options',
116
  'option' => 'default_privacy_level',
117
  'radios' => $settings,
118
  'default' => 0,
119
  ));
120
- add_settings_field('bpm-privacy-override-enabled', __('User Override', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-privacy', array(
121
  'setting' => 'bp_media_options',
122
  'option' => 'privacy_override_enabled',
123
- 'desc' => __('Allow users to override admin defaults (<em>Recommended</em>)', BP_MEDIA_TXT_DOMAIN)
124
  ));
125
  }
126
- add_settings_section('bpm-miscellaneous', __('Other Settings', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
127
 
128
- add_settings_field('bpm-admin-bar-menu', __('Admin bar menu', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-miscellaneous', array(
129
  'setting' => 'bp_media_options',
130
  'option' => 'show_admin_menu',
131
- 'desc' => __('Enable menu in WordPress admin bar', BP_MEDIA_TXT_DOMAIN)
132
  )
133
  );
134
- add_settings_field('bpm-other-settings', __('Recount', BP_MEDIA_TXT_DOMAIN), array($this, 'button'), 'bp-media-settings', 'bpm-miscellaneous', array(
135
  'option' => 'refresh-count',
136
- 'name' => __('Recount', BP_MEDIA_TXT_DOMAIN),
137
- 'desc' => '<br />'.__('Repair media counts', BP_MEDIA_TXT_DOMAIN)
138
  ));
139
 
140
  $bp_media_addon = new BPMediaAddon();
141
- add_settings_section('bpm-addons', __('BuddyPress Media Addons for Audio/Video Conversion', BP_MEDIA_TXT_DOMAIN), array($bp_media_addon, 'get_addons'), 'bp-media-addons');
142
- add_settings_section('bpm-support', __('Submit a request form', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-support');
143
- add_settings_field('bpm-request', __('Request Type', BP_MEDIA_TXT_DOMAIN), array($this, 'dropdown'), 'bp-media-support', 'bpm-support', array('option' => 'select-request', 'none' => false, 'values' => array(
144
- '' => '-- ' . __('Select One', BP_MEDIA_TXT_DOMAIN) . ' --',
145
- 'premium_support' => __('Premium Support', BP_MEDIA_TXT_DOMAIN),
146
- 'new_feature' => __('Suggest a New Feature', BP_MEDIA_TXT_DOMAIN),
147
- 'bug_report' => __('Submit a Bug Report', BP_MEDIA_TXT_DOMAIN))
148
  ));
149
  if (!BPMediaPrivacy::is_installed()) {
150
  $bp_media_privacy = new BPMediaPrivacySettings();
151
  add_filter('bp_media_add_sub_tabs', array($bp_media_privacy, 'ui'), 99, 2);
152
- add_settings_section('bpm-privacy', __('Update Database', BP_MEDIA_TXT_DOMAIN), array($bp_media_privacy, 'init'), 'bp-media-privacy');
153
  }
154
 
155
- $bp_album_active = BPMediaImporter::_active('bp-album/loader.php');
156
- $table = "{$wpdb->base_prefix}bp_album";
157
- if (BPMediaImporter::table_exists($table) && $bp_album_active!=-1) {
158
- $bp_media_album_importer = new BPMediaAlbumimporter();
159
- add_settings_section('bpm-bp-album-importer', __('BP-Album Importer', BP_MEDIA_TXT_DOMAIN), array($bp_media_album_importer, 'ui'), 'bp-media-importer');
160
- }
161
 
162
  add_settings_section('bpm-convert-videos', '', array($this, 'convert_videos_form'), 'bp-media-convert-videos');
163
 
@@ -241,41 +237,41 @@ if (!class_exists('BPMediaSettings')) {
241
  if (isset($_POST['refresh-count'])) {
242
  if ($bp_media_admin->update_count()) {
243
  if (is_multisite())
244
- update_site_option('bpm-recount-success', __('Recounting of media files done successfully', BP_MEDIA_TXT_DOMAIN));
245
  else
246
- add_settings_error(__('Recount Success', BP_MEDIA_TXT_DOMAIN), 'bpm-recount-success', __('Recounting of media files done successfully', BP_MEDIA_TXT_DOMAIN), 'updated');
247
  } else {
248
  if (is_multisite())
249
- update_site_option('bpm-recount-fail', __('Recounting Failed', BP_MEDIA_TXT_DOMAIN));
250
  else
251
- add_settings_error(__('Recount Fail', BP_MEDIA_TXT_DOMAIN), 'bpm-recount-fail', __('Recounting Failed', BP_MEDIA_TXT_DOMAIN));
252
  }
253
  }
254
  // if (!isset($_POST['bp_media_options']['enable_on_profile']) && !isset($_POST['bp_media_options']['enable_on_group'])) {
255
  // if (is_multisite())
256
- // update_site_option('bpm-media-enable', __('Enable BuddyPress Media on either User Profiles or Groups or both. Atleast one should be selected.', BP_MEDIA_TXT_DOMAIN));
257
  // else
258
- // add_settings_error(__('Enable BuddyPress Media', BP_MEDIA_TXT_DOMAIN), 'bpm-media-enable', __('Enable BuddyPress Media on either User Profiles or Groups or both. Atleast one should be selected.', BP_MEDIA_TXT_DOMAIN));
259
  // $input['enable_on_profile'] = 1;
260
  // }
261
  if (!isset($_POST['bp_media_options']['videos_enabled']) && !isset($_POST['bp_media_options']['audio_enabled']) && !isset($_POST['bp_media_options']['images_enabled'])) {
262
  if (is_multisite())
263
- update_site_option('bpm-media-type', __('Atleast one Media Type Must be selected', BP_MEDIA_TXT_DOMAIN));
264
  else
265
- add_settings_error(__('Media Type', BP_MEDIA_TXT_DOMAIN), 'bpm-media-type', __('Atleast one Media Type Must be selected', BP_MEDIA_TXT_DOMAIN));
266
  $input['images_enabled'] = 1;
267
  }
268
 
269
  $input['default_count'] = intval($_POST['bp_media_options']['default_count']);
270
  if (!is_int($input['default_count']) || ($input['default_count'] < 0 ) || empty($input['default_count']) ) {
271
  if (is_multisite())
272
- update_site_option('bpm-media-default-count', __('"Number of media" count value should be numeric and greater than 0.', BP_MEDIA_TXT_DOMAIN));
273
  else
274
- add_settings_error(__('Default Count', BP_MEDIA_TXT_DOMAIN), 'bpm-media-default-count', __('"Number of media" count value should be numeric and greater than 0.', BP_MEDIA_TXT_DOMAIN));
275
  $input['default_count'] = 10;
276
  }
277
  if (is_multisite())
278
- update_site_option('bpm-settings-saved', __('Settings saved.', BP_MEDIA_TXT_DOMAIN));
279
  do_action('bp_media_sanitize_settings', $_POST, $input);
280
  return $input;
281
  }
@@ -304,7 +300,7 @@ if (!class_exists('BPMediaSettings')) {
304
  $args = wp_parse_args($args, $defaults);
305
  extract($args);
306
  if (empty($option)) {
307
- trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' ) ', BP_MEDIA_TXT_DOMAIN));
308
  return;
309
  }
310
 
@@ -349,9 +345,9 @@ if (!class_exists('BPMediaSettings')) {
349
  extract($args);
350
  if (empty($option) || ( 2 > count($radios) )) {
351
  if (empty($option))
352
- trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' )', BP_MEDIA_TXT_DOMAIN));
353
  if (2 > count($radios))
354
- trigger_error(__('Need to specify atleast to radios else use a checkbox instead', BP_MEDIA_TXT_DOMAIN));
355
  return;
356
  }
357
 
@@ -398,7 +394,7 @@ if (!class_exists('BPMediaSettings')) {
398
  $args = wp_parse_args($args, $defaults);
399
  extract($args);
400
  if (empty($option)) {
401
- trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' )', BP_MEDIA_TXT_DOMAIN));
402
  return;
403
  }
404
 
@@ -442,9 +438,9 @@ if (!class_exists('BPMediaSettings')) {
442
  extract($args);
443
  if (empty($option) || empty($values)) {
444
  if (empty($option))
445
- trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' )', BP_MEDIA_TXT_DOMAIN));
446
  if (empty($values))
447
- trigger_error(__('Please provide some values to populate the dropdown. Format : array( \'value\' => \'option\' )', BP_MEDIA_TXT_DOMAIN));
448
  return;
449
  }
450
 
@@ -459,7 +455,7 @@ if (!class_exists('BPMediaSettings')) {
459
  }
460
  ?>
461
  <select name="<?php echo $name; ?>" id="<?php echo $option; ?>"><?php if ($none) { ?>
462
- <option><?php _e('None', BP_MEDIA_TXT_DOMAIN); ?></option><?php
463
  }
464
  foreach ($values as $value => $text) {
465
  ?>
@@ -513,8 +509,8 @@ if (!class_exists('BPMediaSettings')) {
513
 
514
  $notice = '
515
  <div class="error">
516
- <p>' . __('BuddyPress Media 2.6 requires a database upgrade. ', BP_MEDIA_TXT_DOMAIN)
517
- . '<a href="' . $url . '">' . __('Update Database', BP_MEDIA_TXT_DOMAIN) . '.</a></p>
518
  </div>
519
  ';
520
  echo $notice;
21
  /**
22
  * Register Settings
23
  *
24
+ * @global string 'buddypress-media'
25
  */
26
 
27
  /**
30
  */
31
  public function settings() {
32
  global $bp_media, $bp_media_addon, $wpdb;
33
+ add_settings_section('bpm-settings', __('Enabled Media Types', 'buddypress-media'), is_multisite() ? array($this, 'network_notices') : '', 'bp-media-settings');
34
+ add_settings_field('bpm-image', __('Photos', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
35
  'setting' => 'bp_media_options',
36
  'option' => 'images_enabled',
37
+ 'desc' => __('Enable Photos', 'buddypress-media')
38
  ));
39
+ add_settings_field('bpm-video', __('Video', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
40
  'setting' => 'bp_media_options',
41
  'option' => 'videos_enabled',
42
+ 'desc' => __('Enable Video (mp4)', 'buddypress-media')
43
  ));
44
+ add_settings_field('bpm-audio', __('Audio', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
45
  'setting' => 'bp_media_options',
46
  'option' => 'audio_enabled',
47
+ 'desc' => __('Enable Audio (mp3)', 'buddypress-media')
48
  ));
49
  if (bp_is_active('activity')) {
50
+ add_settings_section('bpm-activity-upload', __('Activity Upload', 'buddypress-media'), '', 'bp-media-settings');
51
+ add_settings_field('bpm-activity', __('Activity Uploads', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-activity-upload', array(
52
  'setting' => 'bp_media_options',
53
  'option' => 'activity_upload',
54
+ 'desc' => __('Enable Activity Uploading', 'buddypress-media')
55
  )
56
  );
57
  }
58
 
59
+ add_settings_section('bpm-media-lightbox', __('Lightbox Integration', 'buddypress-media'), '', 'bp-media-settings');
60
+ add_settings_field('bpm-media-lightbox-option', __('Lightbox', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-lightbox', array(
61
  'setting' => 'bp_media_options',
62
  'option' => 'enable_lightbox',
63
+ 'desc' => __('Enable Lighbox on Media', 'buddypress-media')
64
  )
65
  );
66
 
67
  if (bp_is_active('groups')) {
68
+ add_settings_section('bpm-media-type', __('Groups Integration', 'buddypress-media'), '', 'bp-media-settings');
69
+ // add_settings_field('bpm-admin-profile', __('User profiles', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-type', array(
70
  // 'setting' => 'bp_media_options',
71
  // 'option' => 'enable_on_profile',
72
+ // 'desc' => __('Check to enable BuddyPress Media on User profiles', 'buddypress-media')
73
  // )
74
  // );
75
+ add_settings_field('bpm-admin-group', __('Groups', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-type', array(
76
  'setting' => 'bp_media_options',
77
  'option' => 'enable_on_group',
78
+ 'desc' => __('Allow Media in Groups', 'buddypress-media')
79
  )
80
  );
81
  }
82
 
83
 
84
 
85
+ add_settings_section('bpm-media-fine', __('Display Settings', 'buddypress-media'), '', 'bp-media-settings');
86
+ add_settings_field('bpm-media-count', __('Number of media', 'buddypress-media'), array($this, 'textbox'), 'bp-media-settings', 'bpm-media-fine', array(
87
  'setting' => 'bp_media_options',
88
  'option' => 'default_count',
89
  'number' => true
90
  ));
91
+ add_settings_field('bpm-download', __('Download Button', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-media-fine', array(
92
  'setting' => 'bp_media_options',
93
  'option' => 'download_enabled',
94
+ 'desc' => __('Display download button under media', 'buddypress-media')
95
  ));
96
 
97
  if (BPMediaPrivacy::is_installed()) {
98
+ add_settings_section('bpm-privacy', __('Privacy Settings', 'buddypress-media'), '', 'bp-media-settings');
99
+ add_settings_field('bpm-privacy-enabled', __('Enable Privacy', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-privacy', array(
100
  'setting' => 'bp_media_options',
101
  'option' => 'privacy_enabled',
102
+ 'desc' => __('Enable privacy', 'buddypress-media')
103
  ));
104
 
105
  $settings = array(
106
+ 6 => __('<strong>Private</strong> - Visible only to the user', 'buddypress-media'),
107
+ 4 => __('<strong>Friends</strong> - Visible to user\'s friends', 'buddypress-media'),
108
+ 2 => __('<strong>Users</strong> - Visible to registered users', 'buddypress-media'),
109
+ 0 => __('<strong>Public</strong> - Visible to the world', 'buddypress-media')
110
  );
111
  if (!bp_is_active('friends')) {
112
  unset($settings[4]);
113
  }
114
+ add_settings_field('bpm-privacy-private-enabled', __('Default Privacy', 'buddypress-media'), array($this, 'radio'), 'bp-media-settings', 'bpm-privacy', array(
115
  'setting' => 'bp_media_options',
116
  'option' => 'default_privacy_level',
117
  'radios' => $settings,
118
  'default' => 0,
119
  ));
120
+ add_settings_field('bpm-privacy-override-enabled', __('User Override', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-privacy', array(
121
  'setting' => 'bp_media_options',
122
  'option' => 'privacy_override_enabled',
123
+ 'desc' => __('Allow users to override admin defaults (<em>Recommended</em>)', 'buddypress-media')
124
  ));
125
  }
126
+ add_settings_section('bpm-miscellaneous', __('Other Settings', 'buddypress-media'), '', 'bp-media-settings');
127
 
128
+ add_settings_field('bpm-admin-bar-menu', __('Admin bar menu', 'buddypress-media'), array($this, 'checkbox'), 'bp-media-settings', 'bpm-miscellaneous', array(
129
  'setting' => 'bp_media_options',
130
  'option' => 'show_admin_menu',
131
+ 'desc' => __('Enable menu in WordPress admin bar', 'buddypress-media')
132
  )
133
  );
134
+ add_settings_field('bpm-other-settings', __('Recount', 'buddypress-media'), array($this, 'button'), 'bp-media-settings', 'bpm-miscellaneous', array(
135
  'option' => 'refresh-count',
136
+ 'name' => __('Recount', 'buddypress-media'),
137
+ 'desc' => '<br />'.__('Repair media counts', 'buddypress-media')
138
  ));
139
 
140
  $bp_media_addon = new BPMediaAddon();
141
+ add_settings_section('bpm-addons', __('BuddyPress Media Addons for Audio/Video Conversion', 'buddypress-media'), array($bp_media_addon, 'get_addons'), 'bp-media-addons');
142
+ add_settings_section('bpm-support', __('Submit a request form', 'buddypress-media'), '', 'bp-media-support');
143
+ add_settings_field('bpm-request', __('Request Type', 'buddypress-media'), array($this, 'dropdown'), 'bp-media-support', 'bpm-support', array('option' => 'select-request', 'none' => false, 'values' => array(
144
+ '' => '-- ' . __('Select One', 'buddypress-media') . ' --',
145
+ 'premium_support' => __('Premium Support', 'buddypress-media'),
146
+ 'new_feature' => __('Suggest a New Feature', 'buddypress-media'),
147
+ 'bug_report' => __('Submit a Bug Report', 'buddypress-media'))
148
  ));
149
  if (!BPMediaPrivacy::is_installed()) {
150
  $bp_media_privacy = new BPMediaPrivacySettings();
151
  add_filter('bp_media_add_sub_tabs', array($bp_media_privacy, 'ui'), 99, 2);
152
+ add_settings_section('bpm-privacy', __('Update Database', 'buddypress-media'), array($bp_media_privacy, 'init'), 'bp-media-privacy');
153
  }
154
 
155
+ $bp_media_album_importer = new BPMediaAlbumimporter();
156
+ add_settings_section('bpm-bp-album-importer', __('BP-Album Importer', 'buddypress-media'), array($bp_media_album_importer, 'ui'), 'bp-media-importer');
 
 
 
 
157
 
158
  add_settings_section('bpm-convert-videos', '', array($this, 'convert_videos_form'), 'bp-media-convert-videos');
159
 
237
  if (isset($_POST['refresh-count'])) {
238
  if ($bp_media_admin->update_count()) {
239
  if (is_multisite())
240
+ update_site_option('bpm-recount-success', __('Recounting of media files done successfully', 'buddypress-media'));
241
  else
242
+ add_settings_error(__('Recount Success', 'buddypress-media'), 'bpm-recount-success', __('Recounting of media files done successfully', 'buddypress-media'), 'updated');
243
  } else {
244
  if (is_multisite())
245
+ update_site_option('bpm-recount-fail', __('Recounting Failed', 'buddypress-media'));
246
  else
247
+ add_settings_error(__('Recount Fail', 'buddypress-media'), 'bpm-recount-fail', __('Recounting Failed', 'buddypress-media'));
248
  }
249
  }
250
  // if (!isset($_POST['bp_media_options']['enable_on_profile']) && !isset($_POST['bp_media_options']['enable_on_group'])) {
251
  // if (is_multisite())
252
+ // update_site_option('bpm-media-enable', __('Enable BuddyPress Media on either User Profiles or Groups or both. Atleast one should be selected.', 'buddypress-media'));
253
  // else
254
+ // add_settings_error(__('Enable BuddyPress Media', 'buddypress-media'), 'bpm-media-enable', __('Enable BuddyPress Media on either User Profiles or Groups or both. Atleast one should be selected.', 'buddypress-media'));
255
  // $input['enable_on_profile'] = 1;
256
  // }
257
  if (!isset($_POST['bp_media_options']['videos_enabled']) && !isset($_POST['bp_media_options']['audio_enabled']) && !isset($_POST['bp_media_options']['images_enabled'])) {
258
  if (is_multisite())
259
+ update_site_option('bpm-media-type', __('Atleast one Media Type Must be selected', 'buddypress-media'));
260
  else
261
+ add_settings_error(__('Media Type', 'buddypress-media'), 'bpm-media-type', __('Atleast one Media Type Must be selected', 'buddypress-media'));
262
  $input['images_enabled'] = 1;
263
  }
264
 
265
  $input['default_count'] = intval($_POST['bp_media_options']['default_count']);
266
  if (!is_int($input['default_count']) || ($input['default_count'] < 0 ) || empty($input['default_count']) ) {
267
  if (is_multisite())
268
+ update_site_option('bpm-media-default-count', __('"Number of media" count value should be numeric and greater than 0.', 'buddypress-media'));
269
  else
270
+ add_settings_error(__('Default Count', 'buddypress-media'), 'bpm-media-default-count', __('"Number of media" count value should be numeric and greater than 0.', 'buddypress-media'));
271
  $input['default_count'] = 10;
272
  }
273
  if (is_multisite())
274
+ update_site_option('bpm-settings-saved', __('Settings saved.', 'buddypress-media'));
275
  do_action('bp_media_sanitize_settings', $_POST, $input);
276
  return $input;
277
  }
300
  $args = wp_parse_args($args, $defaults);
301
  extract($args);
302
  if (empty($option)) {
303
+ trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' ) ', 'buddypress-media'));
304
  return;
305
  }
306
 
345
  extract($args);
346
  if (empty($option) || ( 2 > count($radios) )) {
347
  if (empty($option))
348
+ trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' )', 'buddypress-media'));
349
  if (2 > count($radios))
350
+ trigger_error(__('Need to specify atleast to radios else use a checkbox instead', 'buddypress-media'));
351
  return;
352
  }
353
 
394
  $args = wp_parse_args($args, $defaults);
395
  extract($args);
396
  if (empty($option)) {
397
+ trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' )', 'buddypress-media'));
398
  return;
399
  }
400
 
438
  extract($args);
439
  if (empty($option) || empty($values)) {
440
  if (empty($option))
441
+ trigger_error(__('Please provide "option" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( \'option\' => \'option_name\' )', 'buddypress-media'));
442
  if (empty($values))
443
+ trigger_error(__('Please provide some values to populate the dropdown. Format : array( \'value\' => \'option\' )', 'buddypress-media'));
444
  return;
445
  }
446
 
455
  }
456
  ?>
457
  <select name="<?php echo $name; ?>" id="<?php echo $option; ?>"><?php if ($none) { ?>
458
+ <option><?php _e('None', 'buddypress-media'); ?></option><?php
459
  }
460
  foreach ($values as $value => $text) {
461
  ?>
509
 
510
  $notice = '
511
  <div class="error">
512
+ <p>' . __('BuddyPress Media 2.6 requires a database upgrade. ', 'buddypress-media')
513
+ . '<a href="' . $url . '">' . __('Update Database', 'buddypress-media') . '.</a></p>
514
  </div>
515
  ';
516
  echo $notice;
app/helper/BPMediaSupport.php CHANGED
@@ -47,7 +47,7 @@ if (!class_exists('BPMediaSupport')) {
47
  if ('bp-media-support' == $page) {
48
  ?>
49
  <div id="debug-info">
50
- <h3><?php _e('Debug info', BP_MEDIA_TXT_DOMAIN); ?></h3>
51
  <table class="form-table">
52
  <tbody><?php
53
  if ($this->debug_info) {
@@ -78,13 +78,13 @@ if (!class_exists('BPMediaSupport')) {
78
  global $current_user;
79
  switch ($form) {
80
  case "bug_report":
81
- $meta_title = __('Submit a Bug Report', BP_MEDIA_TXT_DOMAIN);
82
  break;
83
  case "new_feature":
84
- $meta_title = __('Submit a New Feature Request', BP_MEDIA_TXT_DOMAIN);
85
  break;
86
  case "premium_support":
87
- $meta_title = __('Submit a Premium Support Request', BP_MEDIA_TXT_DOMAIN);
88
  break;
89
  }
90
  ?>
@@ -92,22 +92,22 @@ if (!class_exists('BPMediaSupport')) {
92
  <div id="support-form" class="bp-media-form">
93
  <ul>
94
  <li>
95
- <label class="bp-media-label" for="name"><?php _e('Name', BP_MEDIA_TXT_DOMAIN); ?>:</label><input class="bp-media-input" id="name" type="text" name="name" value="<?php echo (isset($_REQUEST['name'])) ? esc_attr(stripslashes(trim($_REQUEST['name']))) : $current_user->display_name; ?>" required />
96
  </li>
97
  <li>
98
- <label class="bp-media-label" for="email"><?php _e('Email', BP_MEDIA_TXT_DOMAIN); ?>:</label><input id="email" class="bp-media-input" type="text" name="email" value="<?php echo (isset($_REQUEST['email'])) ? esc_attr(stripslashes(trim($_REQUEST['email']))) : get_option('admin_email'); ?>" required />
99
  </li>
100
  <li>
101
- <label class="bp-media-label" for="website"><?php _e('Website', BP_MEDIA_TXT_DOMAIN); ?>:</label><input id="website" class="bp-media-input" type="text" name="website" value="<?php echo (isset($_REQUEST['website'])) ? esc_attr(stripslashes(trim($_REQUEST['website']))) : get_bloginfo('url'); ?>" required />
102
  </li>
103
  <li>
104
- <label class="bp-media-label" for="phone"><?php _e('Phone', BP_MEDIA_TXT_DOMAIN); ?>:</label><input class="bp-media-input" id="phone" type="text" name="phone" value="<?php echo (isset($_REQUEST['phone'])) ? esc_attr(stripslashes(trim($_REQUEST['phone']))) : ''; ?>"/>
105
  </li>
106
  <li>
107
- <label class="bp-media-label" for="subject"><?php _e('Subject', BP_MEDIA_TXT_DOMAIN); ?>:</label><input id="subject" class="bp-media-input" type="text" name="subject" value="<?php echo (isset($_REQUEST['subject'])) ? esc_attr(stripslashes(trim($_REQUEST['subject']))) : ''; ?>" required />
108
  </li>
109
  <li>
110
- <label class="bp-media-label" for="details"><?php _e('Details', BP_MEDIA_TXT_DOMAIN); ?>:</label><textarea id="details" class="bp-media-textarea" type="text" name="details" required/><?php echo (isset($_REQUEST['details'])) ? esc_textarea(stripslashes(trim($_REQUEST['details']))) : ''; ?></textarea>
111
  </li>
112
  <input type="hidden" name="request_type" value="<?php echo $form; ?>"/>
113
  <input type="hidden" name="request_id" value="<?php echo wp_create_nonce(date('YmdHis')); ?>"/>
@@ -118,24 +118,24 @@ if (!class_exists('BPMediaSupport')) {
118
 
119
  </ul>
120
  </div><!-- .submit-bug-box --><?php if ($form == 'bug_report') { ?>
121
- <h3><?php _e('Additional Information', BP_MEDIA_TXT_DOMAIN); ?></h3>
122
  <div id="support-form" class="bp-media-form">
123
  <ul>
124
 
125
  <li>
126
- <label class="bp-media-label" for="wp_admin_username"><?php _e('Your WP Admin Login:', BP_MEDIA_TXT_DOMAIN); ?></label><input class="bp-media-input" id="wp_admin_username" type="text" name="wp_admin_username" value="<?php echo (isset($_REQUEST['wp_admin_username'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_username']))) : $current_user->user_login; ?>"/>
127
  </li>
128
  <li>
129
- <label class="bp-media-label" for="wp_admin_pwd"><?php _e('Your WP Admin password:', BP_MEDIA_TXT_DOMAIN); ?></label><input class="bp-media-input" id="wp_admin_pwd" type="password" name="wp_admin_pwd" value="<?php echo (isset($_REQUEST['wp_admin_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_pwd']))) : ''; ?>"/>
130
  </li>
131
  <li>
132
- <label class="bp-media-label" for="ssh_ftp_host"><?php _e('Your SSH / FTP host:', BP_MEDIA_TXT_DOMAIN); ?></label><input class="bp-media-input" id="ssh_ftp_host" type="text" name="ssh_ftp_host" value="<?php echo (isset($_REQUEST['ssh_ftp_host'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_host']))) : ''; ?>"/>
133
  </li>
134
  <li>
135
- <label class="bp-media-label" for="ssh_ftp_username"><?php _e('Your SSH / FTP login:', BP_MEDIA_TXT_DOMAIN); ?></label><input class="bp-media-input" id="ssh_ftp_username" type="text" name="ssh_ftp_username" value="<?php echo (isset($_REQUEST['ssh_ftp_username'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_username']))) : ''; ?>"/>
136
  </li>
137
  <li>
138
- <label class="bp-media-label" for="ssh_ftp_pwd"><?php _e('Your SSH / FTP password:', BP_MEDIA_TXT_DOMAIN); ?></label><input class="bp-media-input" id="ssh_ftp_pwd" type="password" name="ssh_ftp_pwd" value="<?php echo (isset($_REQUEST['ssh_ftp_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_pwd']))) : ''; ?>"/>
139
  </li>
140
  </ul>
141
  </div><!-- .submit-bug-box --><?php } ?>
@@ -158,16 +158,16 @@ if (!class_exists('BPMediaSupport')) {
158
  $form_data = wp_parse_args($_POST['form_data']);
159
  if ($form_data['request_type'] == 'premium_support') {
160
  $mail_type = 'Premium Support';
161
- $title = __('BuddyPress Media Premium Support Request from', BP_MEDIA_TXT_DOMAIN);
162
  } elseif ($form_data['request_type'] == 'new_feature') {
163
  $mail_type = 'New Feature Request';
164
- $title = __('BuddyPress Media New Feature Request from', BP_MEDIA_TXT_DOMAIN);
165
  } elseif ($form_data['request_type'] == 'bug_report') {
166
  $mail_type = 'Bug Report';
167
- $title = __('BuddyPress Media Bug Report from', BP_MEDIA_TXT_DOMAIN);
168
  } else {
169
  $mail_type = 'Bug Report';
170
- $title = __('BuddyPress Media Contact from', BP_MEDIA_TXT_DOMAIN);
171
  }
172
  $message = '<html>
173
  <head>
@@ -228,7 +228,7 @@ if (!class_exists('BPMediaSupport')) {
228
  }
229
  $message .= '</table>';
230
  if ( $this->debug_info ) {
231
- $message .= '<h3>'.__('Debug Info', BP_MEDIA_TXT_DOMAIN).'</h3>';
232
  $message .= '<table>';
233
  foreach ($this->debug_info as $configuration => $value) {
234
  $message .= '<tr>
@@ -243,15 +243,15 @@ if (!class_exists('BPMediaSupport')) {
243
  $headers = 'From: ' . $form_data['name'] . ' <' . $form_data['email'] . '>' . "\r\n";
244
  if (wp_mail($bp_media->support_email, '[buddypress-media] ' . $mail_type . ' from ' . str_replace(array('http://', 'https://'), '', $form_data['website']), $message, $headers)) {
245
  if ($form_data['request_type'] == 'new_feature') {
246
- echo '<p>' . __('Thank you for your Feedback/Suggestion.', BP_MEDIA_TXT_DOMAIN) . '</p>';
247
  } else {
248
- echo '<p>' . __('Thank you for posting your support request.', BP_MEDIA_TXT_DOMAIN) . '</p>';
249
- echo '<p>' . __('We will get back to you shortly.', BP_MEDIA_TXT_DOMAIN) . '</p>';
250
  }
251
  } else {
252
- echo '<p>' . __('Your server failed to send an email.', BP_MEDIA_TXT_DOMAIN) . '</p>';
253
- echo '<p>' . __('Kindly contact your server support to fix this.', BP_MEDIA_TXT_DOMAIN) . '</p>';
254
- echo '<p>' . sprintf(__('You can alternatively create a support request <a href="%s">here</a>', BP_MEDIA_TXT_DOMAIN), $bp_media->support_url) . '</p>';
255
  }
256
  die();
257
  }
47
  if ('bp-media-support' == $page) {
48
  ?>
49
  <div id="debug-info">
50
+ <h3><?php _e('Debug info', 'buddypress-media'); ?></h3>
51
  <table class="form-table">
52
  <tbody><?php
53
  if ($this->debug_info) {
78
  global $current_user;
79
  switch ($form) {
80
  case "bug_report":
81
+ $meta_title = __('Submit a Bug Report', 'buddypress-media');
82
  break;
83
  case "new_feature":
84
+ $meta_title = __('Submit a New Feature Request', 'buddypress-media');
85
  break;
86
  case "premium_support":
87
+ $meta_title = __('Submit a Premium Support Request', 'buddypress-media');
88
  break;
89
  }
90
  ?>
92
  <div id="support-form" class="bp-media-form">
93
  <ul>
94
  <li>
95
+ <label class="bp-media-label" for="name"><?php _e('Name', 'buddypress-media'); ?>:</label><input class="bp-media-input" id="name" type="text" name="name" value="<?php echo (isset($_REQUEST['name'])) ? esc_attr(stripslashes(trim($_REQUEST['name']))) : $current_user->display_name; ?>" required />
96
  </li>
97
  <li>
98
+ <label class="bp-media-label" for="email"><?php _e('Email', 'buddypress-media'); ?>:</label><input id="email" class="bp-media-input" type="text" name="email" value="<?php echo (isset($_REQUEST['email'])) ? esc_attr(stripslashes(trim($_REQUEST['email']))) : get_option('admin_email'); ?>" required />
99
  </li>
100
  <li>
101
+ <label class="bp-media-label" for="website"><?php _e('Website', 'buddypress-media'); ?>:</label><input id="website" class="bp-media-input" type="text" name="website" value="<?php echo (isset($_REQUEST['website'])) ? esc_attr(stripslashes(trim($_REQUEST['website']))) : get_bloginfo('url'); ?>" required />
102
  </li>
103
  <li>
104
+ <label class="bp-media-label" for="phone"><?php _e('Phone', 'buddypress-media'); ?>:</label><input class="bp-media-input" id="phone" type="text" name="phone" value="<?php echo (isset($_REQUEST['phone'])) ? esc_attr(stripslashes(trim($_REQUEST['phone']))) : ''; ?>"/>
105
  </li>
106
  <li>
107
+ <label class="bp-media-label" for="subject"><?php _e('Subject', 'buddypress-media'); ?>:</label><input id="subject" class="bp-media-input" type="text" name="subject" value="<?php echo (isset($_REQUEST['subject'])) ? esc_attr(stripslashes(trim($_REQUEST['subject']))) : ''; ?>" required />
108
  </li>
109
  <li>
110
+ <label class="bp-media-label" for="details"><?php _e('Details', 'buddypress-media'); ?>:</label><textarea id="details" class="bp-media-textarea" type="text" name="details" required/><?php echo (isset($_REQUEST['details'])) ? esc_textarea(stripslashes(trim($_REQUEST['details']))) : ''; ?></textarea>
111
  </li>
112
  <input type="hidden" name="request_type" value="<?php echo $form; ?>"/>
113
  <input type="hidden" name="request_id" value="<?php echo wp_create_nonce(date('YmdHis')); ?>"/>
118
 
119
  </ul>
120
  </div><!-- .submit-bug-box --><?php if ($form == 'bug_report') { ?>
121
+ <h3><?php _e('Additional Information', 'buddypress-media'); ?></h3>
122
  <div id="support-form" class="bp-media-form">
123
  <ul>
124
 
125
  <li>
126
+ <label class="bp-media-label" for="wp_admin_username"><?php _e('Your WP Admin Login:', 'buddypress-media'); ?></label><input class="bp-media-input" id="wp_admin_username" type="text" name="wp_admin_username" value="<?php echo (isset($_REQUEST['wp_admin_username'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_username']))) : $current_user->user_login; ?>"/>
127
  </li>
128
  <li>
129
+ <label class="bp-media-label" for="wp_admin_pwd"><?php _e('Your WP Admin password:', 'buddypress-media'); ?></label><input class="bp-media-input" id="wp_admin_pwd" type="password" name="wp_admin_pwd" value="<?php echo (isset($_REQUEST['wp_admin_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_pwd']))) : ''; ?>"/>
130
  </li>
131
  <li>
132
+ <label class="bp-media-label" for="ssh_ftp_host"><?php _e('Your SSH / FTP host:', 'buddypress-media'); ?></label><input class="bp-media-input" id="ssh_ftp_host" type="text" name="ssh_ftp_host" value="<?php echo (isset($_REQUEST['ssh_ftp_host'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_host']))) : ''; ?>"/>
133
  </li>
134
  <li>
135
+ <label class="bp-media-label" for="ssh_ftp_username"><?php _e('Your SSH / FTP login:', 'buddypress-media'); ?></label><input class="bp-media-input" id="ssh_ftp_username" type="text" name="ssh_ftp_username" value="<?php echo (isset($_REQUEST['ssh_ftp_username'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_username']))) : ''; ?>"/>
136
  </li>
137
  <li>
138
+ <label class="bp-media-label" for="ssh_ftp_pwd"><?php _e('Your SSH / FTP password:', 'buddypress-media'); ?></label><input class="bp-media-input" id="ssh_ftp_pwd" type="password" name="ssh_ftp_pwd" value="<?php echo (isset($_REQUEST['ssh_ftp_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_pwd']))) : ''; ?>"/>
139
  </li>
140
  </ul>
141
  </div><!-- .submit-bug-box --><?php } ?>
158
  $form_data = wp_parse_args($_POST['form_data']);
159
  if ($form_data['request_type'] == 'premium_support') {
160
  $mail_type = 'Premium Support';
161
+ $title = __('BuddyPress Media Premium Support Request from', 'buddypress-media');
162
  } elseif ($form_data['request_type'] == 'new_feature') {
163
  $mail_type = 'New Feature Request';
164
+ $title = __('BuddyPress Media New Feature Request from', 'buddypress-media');
165
  } elseif ($form_data['request_type'] == 'bug_report') {
166
  $mail_type = 'Bug Report';
167
+ $title = __('BuddyPress Media Bug Report from', 'buddypress-media');
168
  } else {
169
  $mail_type = 'Bug Report';
170
+ $title = __('BuddyPress Media Contact from', 'buddypress-media');
171
  }
172
  $message = '<html>
173
  <head>
228
  }
229
  $message .= '</table>';
230
  if ( $this->debug_info ) {
231
+ $message .= '<h3>'.__('Debug Info', 'buddypress-media').'</h3>';
232
  $message .= '<table>';
233
  foreach ($this->debug_info as $configuration => $value) {
234
  $message .= '<tr>
243
  $headers = 'From: ' . $form_data['name'] . ' <' . $form_data['email'] . '>' . "\r\n";
244
  if (wp_mail($bp_media->support_email, '[buddypress-media] ' . $mail_type . ' from ' . str_replace(array('http://', 'https://'), '', $form_data['website']), $message, $headers)) {
245
  if ($form_data['request_type'] == 'new_feature') {
246
+ echo '<p>' . __('Thank you for your Feedback/Suggestion.', 'buddypress-media') . '</p>';
247
  } else {
248
+ echo '<p>' . __('Thank you for posting your support request.', 'buddypress-media') . '</p>';
249
+ echo '<p>' . __('We will get back to you shortly.', 'buddypress-media') . '</p>';
250
  }
251
  } else {
252
+ echo '<p>' . __('Your server failed to send an email.', 'buddypress-media') . '</p>';
253
+ echo '<p>' . __('Kindly contact your server support to fix this.', 'buddypress-media') . '</p>';
254
+ echo '<p>' . sprintf(__('You can alternatively create a support request <a href="%s">here</a>', 'buddypress-media'), $bp_media->support_url) . '</p>';
255
  }
256
  die();
257
  }
app/importers/BPMediaAlbumimporter.php CHANGED
@@ -42,117 +42,151 @@ class BPMediaAlbumimporter extends BPMediaImporter {
42
  }
43
 
44
  function ui() {
45
- $this->progress = new rtProgress();
46
- $total = BPMediaAlbumimporter::get_total_count();
47
- $remaining_comments = $this->get_remaining_comments();
48
- $finished = BPMediaAlbumimporter::get_completed_media($total);
49
- $finished_users = BPMediaAlbumimporter::get_completed_users();
50
- $finished_comments = $this->get_finished_comments();
51
- $total_comments = (int) $finished_comments + (int) $remaining_comments;
52
- $completed_users_favorites = (int) get_site_option('bp_media_bp_album_favorite_import_status', 0);
53
- $users = count_users();
54
- echo '<div id="bpmedia-bpalbumimporter">';
55
- if (($finished[0]->media != $total[0]->media) || ( $users['total_users'] > $completed_users_favorites )) {
56
- if (!$total[0]->media) {
57
- echo '<p><strong>' . __('You have nothing to import') . '</strong></p>';
58
- } elseif (BPMediaAlbumimporter::_active('bp-album/loader.php') != 1) {
59
- echo '<div id="setting-error-bp-album-importer" class="error settings-error below-h2">
60
- <p><strong>' . __('Warning!', BP_MEDIA_TXT_DOMAIN) . '</strong> ' . sprintf(__('This import process is irreversible. Although everything is tested, please take a <a target="_blank" href="http://codex.wordpress.org/WordPress_Backups">backup of your database and files</a>, before proceeding. If you don\'t know your way around databases and files, consider <a target="_blank" href="%s">hiring us</a>, or another professional.', BP_MEDIA_TXT_DOMAIN), 'http://rtcamp.com/contact/?purpose=buddypress&utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media') . '</p>';
61
- echo '<p>' . __('If you have set "WP_DEBUG" in you wp-config.php file, please make sure it is set to "false", so that it doesn\'t conflict with the import process.', BP_MEDIA_TXT_DOMAIN) . '</p></div>';
62
- echo '<div class="bp-album-import-accept"><p><strong><label for="bp-album-import-accept"><input type="checkbox" value="accept" name="bp-album-import-accept" id="bp-album-import-accept" /> ' . __('I have taken a backup of the database and files of this site.', BP_MEDIA_TXT_DOMAIN) . '</label></strong></p></div>';
63
- echo '<button id="bpmedia-bpalbumimport" class="button button-primary">';
64
- _e('Start Import', BP_MEDIA_TXT_DOMAIN);
65
- echo '</button>';
66
- echo '<div class="bp-album-importer-wizard">';
67
- echo '<div class="bp-album-users">';
68
- echo '<strong>';
69
- echo __('Users', BP_MEDIA_TXT_DOMAIN) . ': <span class="finished">' . $finished_users[0]->users . '</span> / <span class="total">' . $total[0]->users . '</span>';
70
- echo '</strong>';
71
- if ($total[0]->users != 0) {
72
- $users_progress = $this->progress->progress($finished_users[0]->users, $total[0]->users);
73
- $this->progress->progress_ui($users_progress);
74
- }
75
- echo '</div>';
76
- echo '<br />';
77
- echo '<div class="bp-album-media">';
78
- echo '<strong>';
79
- echo __('Media', BP_MEDIA_TXT_DOMAIN) . ': <span class="finished">' . $finished[0]->media . '</span> / <span class="total">' . $total[0]->media . '</span>';
80
- echo '</strong>';
81
- $progress = 100;
82
- if ($total[0]->media != 0) {
83
- $todo = $total[0]->media - $finished[0]->media;
84
- $steps = ceil($todo / 5);
85
- $laststep = $todo % 5;
86
- $progress = $this->progress->progress($finished[0]->media, $total[0]->media);
87
- echo '<input type="hidden" value="' . $finished[0]->media . '" name="finished"/>';
88
- echo '<input type="hidden" value="' . $total[0]->media . '" name="total"/>';
89
- echo '<input type="hidden" value="' . $todo . '" name="todo"/>';
90
- echo '<input type="hidden" value="' . $steps . '" name="steps"/>';
91
- echo '<input type="hidden" value="' . $laststep . '" name="laststep"/>';
92
- $this->progress->progress_ui($progress);
93
- }
94
- echo '</div>';
95
- echo "<br>";
96
- echo '<div class="bp-album-comments">';
97
- if ($total_comments != 0) {
98
  echo '<strong>';
99
- echo __('Comments', BP_MEDIA_TXT_DOMAIN) . ': <span class="finished">' . $finished_comments . '</span> / <span class="total">' . $total_comments . '</span>';
100
  echo '</strong>';
101
- $comments_progress = $this->progress->progress($finished_comments, $total_comments);
102
- $this->progress->progress_ui($comments_progress);
103
- echo '<br />';
104
- } else {
105
- echo '<p><strong>' . __('Comments: 0/0 (No comments to import)', BP_MEDIA_TXT_DOMAIN) . '</strong></p>';
106
- }
107
- echo '</div>';
108
- if ($completed_users_favorites != 0) {
109
  echo '<br />';
110
- echo '<div class="bp-album-favorites">';
111
  echo '<strong>';
112
- echo __('User\'s Favorites', BP_MEDIA_TXT_DOMAIN) . ': <span class="finished">' . $completed_users_favorites . '</span> / <span class="total">' . $users['total_users'] . '</span>';
113
  echo '</strong>';
114
- $favorites_progress = $this->progress->progress($completed_users_favorites, $users['total_users']);
115
- $this->progress->progress_ui($favorites_progress);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  echo '</div>';
 
 
 
 
117
  }
118
- echo '</div>';
119
  } else {
120
- $deactivate_link = wp_nonce_url(admin_url('plugins.php?action=deactivate&amp;plugin=' . urlencode($this->path)), 'deactivate-plugin_' . $this->path);
121
- echo '<p>' . __('BP-Album is active on your site and will cause problems with the import.', BP_MEDIA_TXT_DOMAIN) . '</p>';
122
- echo '<p><a class="button button-primary deactivate-bp-album" href="' . $deactivate_link . '">' . __('Click here to deactivate BP-Album and continue importing', BP_MEDIA_TXT_DOMAIN) . '</a></p>';
123
- }
124
- } else {
125
- $corrupt_media = BPMediaAlbumimporter::get_corrupt_media();
126
- if ($corrupt_media) {
127
- echo '<div class="error below-h2">';
128
- echo '<p><strong>' . __('Some of the media failed to import. The file might be corrupt or deleted.', BP_MEDIA_TXT_DOMAIN) . '</strong></p>';
129
- echo '<p>' . sprintf(__('The following %d BP Album Media id\'s could not be imported', BP_MEDIA_TXT_DOMAIN), count($corrupt_media)) . ': </p>';
130
- $corrupt_prefix_path = str_replace('/wp-content','',WP_CONTENT_URL);
131
- foreach ($corrupt_media as $corrupt) {
132
- echo '<p>'.$corrupt->id.' => <a href="'.$corrupt_prefix_path.$corrupt->pic_org_url.'">'.$corrupt->title.'</a></p>';
 
 
 
 
 
133
  }
134
- echo '</div>';
135
- } else {
136
- echo '<div class="bp-album-import-accept i-accept">';
137
- echo '<p class="info">';
138
- $message = sprintf(__('I just imported bp-album to @buddypressmedia http://goo.gl/8Upmv on %s', BP_MEDIA_TXT_DOMAIN), home_url());
139
- echo '<strong>' . __('Congratulations!', BP_MEDIA_TXT_DOMAIN) . '</strong> ' . __('All media from BP Album has been imported.', BP_MEDIA_TXT_DOMAIN);
140
- echo ' <a href="http://twitter.com/home/?status=' . $message . '" class="button button-import-tweet" target= "_blank">' . __('Tweet this', BP_MEDIA_TXT_DOMAIN) . '</a>';
141
- echo '</p>';
142
- echo '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  }
144
- echo '<p>' . __('However, a lot of unnecessary files and a database table are still eating up your resources. If everything seems fine, you can clean this data up.', BP_MEDIA_TXT_DOMAIN) . '</p>';
145
- echo '<br />';
146
- echo '<button id="bpmedia-bpalbumimport-cleanup" class="button btn-warning">';
147
- _e('Clean up Now', BP_MEDIA_TXT_DOMAIN);
148
- echo '</button>';
149
- echo ' <a href="' . add_query_arg(
150
- array('page' => 'bp-media-settings'), (is_multisite() ? network_admin_url('admin.php') : admin_url('admin.php'))
151
- ) . '" id="bpmedia-bpalbumimport-cleanup-later" class="button">';
152
- _e('Clean up Later', BP_MEDIA_TXT_DOMAIN);
153
- echo '</a>';
154
  }
155
- echo '</div>';
156
  }
157
 
158
  function create_album($author_id, $album_name = 'Imported Media') {
@@ -181,7 +215,7 @@ class BPMediaAlbumimporter extends BPMediaImporter {
181
  static function get_total_count() {
182
  global $wpdb;
183
  $table = $wpdb->base_prefix . 'bp_album';
184
- if (BPMediaAlbumimporter::table_exists($table) && BPMediaAlbumimporter::_active('bp-album/loader.php') != -1) {
185
  return $wpdb->get_results("SELECT COUNT(DISTINCT owner_id) as users, COUNT(id) as media FROM $table");
186
  }
187
  return 0;
@@ -191,7 +225,7 @@ class BPMediaAlbumimporter extends BPMediaImporter {
191
  global $wpdb;
192
  $bp_album_table = $wpdb->base_prefix . 'bp_album';
193
  $activity_table = $wpdb->base_prefix . 'bp_activity';
194
- if ($this->table_exists($bp_album_table) && BPMediaAlbumimporter::_active('bp-album/loader.php') != -1) {
195
  return $wpdb->get_var("SELECT SUM( b.count ) AS total
196
  FROM (
197
  SELECT (
@@ -215,7 +249,7 @@ class BPMediaAlbumimporter extends BPMediaImporter {
215
  global $wpdb;
216
  $bp_album_table = $wpdb->base_prefix . 'bp_album';
217
  $activity_table = $wpdb->base_prefix . 'bp_activity';
218
- if ($this->table_exists($bp_album_table) && BPMediaAlbumimporter::_active('bp-album/loader.php') != -1) {
219
  return $wpdb->get_var("SELECT COUNT( activity.id ) AS count
220
  FROM $activity_table AS activity
221
  INNER JOIN $bp_album_table AS album ON ( activity.item_id = album.import_status )
@@ -228,7 +262,7 @@ class BPMediaAlbumimporter extends BPMediaImporter {
228
  static function get_completed_users() {
229
  global $wpdb;
230
  $table = $wpdb->base_prefix . 'bp_album';
231
- if (BPMediaAlbumimporter::table_exists($table) && BPMediaAlbumimporter::_active('bp-album/loader.php') != -1) {
232
  return $wpdb->get_results("SELECT COUNT( DISTINCT owner_id ) AS users
233
  FROM $table
234
  WHERE owner_id NOT
@@ -245,7 +279,7 @@ class BPMediaAlbumimporter extends BPMediaImporter {
245
  static function get_completed_media() {
246
  global $wpdb;
247
  $table = $wpdb->base_prefix . 'bp_album';
248
- if (BPMediaAlbumimporter::table_exists($table) && BPMediaAlbumimporter::_active('bp-album/loader.php') != -1) {
249
  return $wpdb->get_results("SELECT COUNT(id) as media FROM $table WHERE import_status!=0");
250
  }
251
  return 0;
@@ -254,7 +288,7 @@ class BPMediaAlbumimporter extends BPMediaImporter {
254
  static function get_corrupt_media() {
255
  global $wpdb;
256
  $table = $wpdb->base_prefix . 'bp_album';
257
- if (BPMediaAlbumimporter::table_exists($table) && BPMediaAlbumimporter::_active('bp-album/loader.php') != -1) {
258
  return $wpdb->get_results("SELECT id,title,pic_org_url FROM $table WHERE import_status=-1");
259
  }
260
  return 0;
42
  }
43
 
44
  function ui() {
45
+ global $wpdb;
46
+ $bp_album_active = BPMediaImporter::_active('bp-album/loader.php');
47
+ $table = "{$wpdb->base_prefix}bp_album";
48
+ if (BPMediaImporter::table_exists($table)) {
49
+
50
+ $this->progress = new rtProgress();
51
+ $total = BPMediaAlbumimporter::get_total_count();
52
+ // print_r($total);
53
+ $remaining_comments = $this->get_remaining_comments();
54
+ // print_r($remaining_comments);
55
+ $finished = BPMediaAlbumimporter::get_completed_media($total);
56
+ // print_r($finished);
57
+ $finished_users = BPMediaAlbumimporter::get_completed_users();
58
+ // print_R($finished_users);
59
+ $finished_comments = $this->get_finished_comments();
60
+ // print_r($finished_comments);
61
+ $total_comments = (int) $finished_comments + (int) $remaining_comments;
62
+ // print_r($total_comments);
63
+ $completed_users_favorites = (int) get_site_option('bp_media_bp_album_favorite_import_status', 0);
64
+ // print_r($completed_users_favorites);
65
+ $users = count_users();
66
+ // print_r($users);
67
+
68
+ echo '<div id="bpmedia-bpalbumimporter">';
69
+ if (($finished[0]->media != $total[0]->media) || ( $users['total_users'] > $completed_users_favorites )) {
70
+ if ($bp_album_active != 1) {
71
+ echo '<div id="setting-error-bp-album-importer" class="error settings-error below-h2">
72
+ <p><strong>' . __('Warning!', 'buddypress-media') . '</strong> ' . sprintf(__('This import process is irreversible. Although everything is tested, please take a <a target="_blank" href="http://codex.wordpress.org/WordPress_Backups">backup of your database and files</a>, before proceeding. If you don\'t know your way around databases and files, consider <a target="_blank" href="%s">hiring us</a>, or another professional.', 'buddypress-media'), 'http://rtcamp.com/contact/?purpose=buddypress&utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media') . '</p>';
73
+ echo '<p>' . __('If you have set "WP_DEBUG" in you wp-config.php file, please make sure it is set to "false", so that it doesn\'t conflict with the import process.', 'buddypress-media') . '</p></div>';
74
+ echo '<div class="bp-album-import-accept"><p><strong><label for="bp-album-import-accept"><input type="checkbox" value="accept" name="bp-album-import-accept" id="bp-album-import-accept" /> ' . __('I have taken a backup of the database and files of this site.', 'buddypress-media') . '</label></strong></p></div>';
75
+ echo '<button id="bpmedia-bpalbumimport" class="button button-primary">';
76
+ _e('Start Import', 'buddypress-media');
77
+ echo '</button>';
78
+ echo '<div class="bp-album-importer-wizard">';
79
+ echo '<div class="bp-album-users">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  echo '<strong>';
81
+ echo __('Users', 'buddypress-media') . ': <span class="finished">' . $finished_users[0]->users . '</span> / <span class="total">' . $total[0]->users . '</span>';
82
  echo '</strong>';
83
+ if ($total[0]->users != 0) {
84
+ $users_progress = $this->progress->progress($finished_users[0]->users, $total[0]->users);
85
+ $this->progress->progress_ui($users_progress);
86
+ }
87
+ echo '</div>';
 
 
 
88
  echo '<br />';
89
+ echo '<div class="bp-album-media">';
90
  echo '<strong>';
91
+ echo __('Media', 'buddypress-media') . ': <span class="finished">' . $finished[0]->media . '</span> / <span class="total">' . $total[0]->media . '</span>';
92
  echo '</strong>';
93
+ $progress = 100;
94
+ if ($total[0]->media != 0) {
95
+ $todo = $total[0]->media - $finished[0]->media;
96
+ $steps = ceil($todo / 5);
97
+ $laststep = $todo % 5;
98
+ $progress = $this->progress->progress($finished[0]->media, $total[0]->media);
99
+ echo '<input type="hidden" value="' . $finished[0]->media . '" name="finished"/>';
100
+ echo '<input type="hidden" value="' . $total[0]->media . '" name="total"/>';
101
+ echo '<input type="hidden" value="' . $todo . '" name="todo"/>';
102
+ echo '<input type="hidden" value="' . $steps . '" name="steps"/>';
103
+ echo '<input type="hidden" value="' . $laststep . '" name="laststep"/>';
104
+ $this->progress->progress_ui($progress);
105
+ }
106
+ echo '</div>';
107
+ echo "<br>";
108
+ echo '<div class="bp-album-comments">';
109
+ if ($total_comments != 0) {
110
+ echo '<strong>';
111
+ echo __('Comments', 'buddypress-media') . ': <span class="finished">' . $finished_comments . '</span> / <span class="total">' . $total_comments . '</span>';
112
+ echo '</strong>';
113
+ $comments_progress = $this->progress->progress($finished_comments, $total_comments);
114
+ $this->progress->progress_ui($comments_progress);
115
+ echo '<br />';
116
+ } else {
117
+ echo '<p><strong>' . __('Comments: 0/0 (No comments to import)', 'buddypress-media') . '</strong></p>';
118
+ }
119
+ echo '</div>';
120
+ if ($completed_users_favorites != 0) {
121
+ echo '<br />';
122
+ echo '<div class="bp-album-favorites">';
123
+ echo '<strong>';
124
+ echo __('User\'s Favorites', 'buddypress-media') . ': <span class="finished">' . $completed_users_favorites . '</span> / <span class="total">' . $users['total_users'] . '</span>';
125
+ echo '</strong>';
126
+ $favorites_progress = $this->progress->progress($completed_users_favorites, $users['total_users']);
127
+ $this->progress->progress_ui($favorites_progress);
128
+ echo '</div>';
129
+ }
130
  echo '</div>';
131
+ } else {
132
+ $deactivate_link = wp_nonce_url(admin_url('plugins.php?action=deactivate&amp;plugin=' . urlencode($this->path)), 'deactivate-plugin_' . $this->path);
133
+ echo '<p>' . __('BP-Album is active on your site and will cause problems with the import.', 'buddypress-media') . '</p>';
134
+ echo '<p><a class="button button-primary deactivate-bp-album" href="' . $deactivate_link . '">' . __('Click here to deactivate BP-Album and continue importing', 'buddypress-media') . '</a></p>';
135
  }
 
136
  } else {
137
+ $corrupt_media = BPMediaAlbumimporter::get_corrupt_media();
138
+ if ($corrupt_media) {
139
+ echo '<div class="error below-h2">';
140
+ echo '<p><strong>' . __('Some of the media failed to import. The file might be corrupt or deleted.', 'buddypress-media') . '</strong></p>';
141
+ echo '<p>' . sprintf(__('The following %d BP Album Media id\'s could not be imported', 'buddypress-media'), count($corrupt_media)) . ': </p>';
142
+ $corrupt_prefix_path = str_replace('/wp-content', '', WP_CONTENT_URL);
143
+ foreach ($corrupt_media as $corrupt) {
144
+ echo '<p>' . $corrupt->id . ' => <a href="' . $corrupt_prefix_path . $corrupt->pic_org_url . '">' . $corrupt->title . '</a></p>';
145
+ }
146
+ echo '</div>';
147
+ } else {
148
+ echo '<div class="bp-album-import-accept i-accept">';
149
+ echo '<p class="info">';
150
+ $message = sprintf(__('I just imported bp-album to @buddypressmedia http://goo.gl/8Upmv on %s', 'buddypress-media'), home_url());
151
+ echo '<strong>' . __('Congratulations!', 'buddypress-media') . '</strong> ' . __('All media from BP Album has been imported.', 'buddypress-media');
152
+ echo ' <a href="http://twitter.com/home/?status=' . $message . '" class="button button-import-tweet" target= "_blank">' . __('Tweet this', 'buddypress-media') . '</a>';
153
+ echo '</p>';
154
+ echo '</div>';
155
  }
156
+ echo '<p>' . __('However, a lot of unnecessary files and a database table are still eating up your resources. If everything seems fine, you can clean this data up.', 'buddypress-media') . '</p>';
157
+ echo '<br />';
158
+ echo '<button id="bpmedia-bpalbumimport-cleanup" class="button btn-warning">';
159
+ _e('Clean up Now', 'buddypress-media');
160
+ echo '</button>';
161
+ echo ' <a href="' . add_query_arg(
162
+ array('page' => 'bp-media-settings'), (is_multisite() ? network_admin_url('admin.php') : admin_url('admin.php'))
163
+ ) . '" id="bpmedia-bpalbumimport-cleanup-later" class="button">';
164
+ _e('Clean up Later', 'buddypress-media');
165
+ echo '</a>';
166
+ echo '<br />';
167
+ echo '<br />';
168
+ echo '<br />';
169
+ echo '<strong>' . __('Why don\'t you try adding some instagram like effects to your images?', 'buddypress-media') . '</strong>';
170
+ echo '<div class="bp-media-addon">
171
+ <a href="http://rtcamp.com/store/buddypress-media-instagram/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer" title="BuddyPress-Media Instagram" target="_blank">
172
+ <img width="240" height="184" title="BuddyPress-Media Instagram" alt="BuddyPress-Media Instagram" src="http://rtcamp.com/wp-content/uploads/2013/03/BuddyPressMedia-Instagram.png?ref=bp-album-importer">
173
+ </a>
174
+ <h4><a href="http://rtcamp.com/store/buddypress-media-instagram/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer" title="BuddyPress-Media Instagram" target="_blank">BuddyPress-Media Instagram</a></h4>
175
+ <div class="product_desc">
176
+ <p>'.__('BuddyPress Media Instagram adds Instagram like filters to images uploaded with BuddyPress Media.', 'buddypress-media').'</p>
177
+ <p><strong>'.__('Important','buddypress-media').':</strong> '.__('You need to have ImageMagick installed on your server for this addon to work.','buddypress-media').'</p>
178
+ </div>
179
+ <div class="product_footer">
180
+ <span class="price alignleft"><span class="amount">$19</span></span>
181
+ <a class="add_to_cart_button alignright product_type_simple" href="http://rtcamp.com/store/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer&amp;add-to-cart=34379" target="_blank">'.__('Buy Now','buddypress-media').'</a>
182
+ <a class="alignleft product_demo_link" href="http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&amp;utm_medium=plugin&amp;utm_campaign=buddypress-media&amp;utm_content=bp-album-importer" title="BuddyPress-Media Instagram" target="_blank">'.__('Live Demo','buddypress-media').'</a>
183
+ </div></div>';
184
  }
185
+ echo '</div>';
186
+ } else {
187
+ echo '<p>'.__('Looks like you don\'t use BP Album. Is there any other BuddyPress Plugin you want an importer for?').'</p>';
188
+ echo '<p>'.sprintf(__('<a href="%s">Create an issue</a> on GitHub requesting the same.','buddypress-media'),'https://github.com/rtCamp/buddypress-media/issues/new').'</p>';
 
 
 
 
 
 
189
  }
 
190
  }
191
 
192
  function create_album($author_id, $album_name = 'Imported Media') {
215
  static function get_total_count() {
216
  global $wpdb;
217
  $table = $wpdb->base_prefix . 'bp_album';
218
+ if (BPMediaAlbumimporter::table_exists($table)) {
219
  return $wpdb->get_results("SELECT COUNT(DISTINCT owner_id) as users, COUNT(id) as media FROM $table");
220
  }
221
  return 0;
225
  global $wpdb;
226
  $bp_album_table = $wpdb->base_prefix . 'bp_album';
227
  $activity_table = $wpdb->base_prefix . 'bp_activity';
228
+ if ($this->table_exists($bp_album_table)) {
229
  return $wpdb->get_var("SELECT SUM( b.count ) AS total
230
  FROM (
231
  SELECT (
249
  global $wpdb;
250
  $bp_album_table = $wpdb->base_prefix . 'bp_album';
251
  $activity_table = $wpdb->base_prefix . 'bp_activity';
252
+ if ($this->table_exists($bp_album_table)) {
253
  return $wpdb->get_var("SELECT COUNT( activity.id ) AS count
254
  FROM $activity_table AS activity
255
  INNER JOIN $bp_album_table AS album ON ( activity.item_id = album.import_status )
262
  static function get_completed_users() {
263
  global $wpdb;
264
  $table = $wpdb->base_prefix . 'bp_album';
265
+ if (BPMediaAlbumimporter::table_exists($table)) {
266
  return $wpdb->get_results("SELECT COUNT( DISTINCT owner_id ) AS users
267
  FROM $table
268
  WHERE owner_id NOT
279
  static function get_completed_media() {
280
  global $wpdb;
281
  $table = $wpdb->base_prefix . 'bp_album';
282
+ if (BPMediaAlbumimporter::table_exists($table)) {
283
  return $wpdb->get_results("SELECT COUNT(id) as media FROM $table WHERE import_status!=0");
284
  }
285
  return 0;
288
  static function get_corrupt_media() {
289
  global $wpdb;
290
  $table = $wpdb->base_prefix . 'bp_album';
291
+ if (BPMediaAlbumimporter::table_exists($table)) {
292
  return $wpdb->get_results("SELECT id,title,pic_org_url FROM $table WHERE import_status=-1");
293
  }
294
  return 0;
app/main/BPMediaComponent.php CHANGED
@@ -57,7 +57,7 @@ class BPMediaComponent extends BP_Component {
57
  $bp->pages->{$this->id}->slug ) ?
58
  $bp->pages->{$this->id}->slug : BP_MEDIA_SLUG,
59
  // 'has_directory' => true, // Set to false if not required
60
- 'search_string' => __( 'Search Media...', BP_MEDIA_TXT_DOMAIN ),
61
  );
62
  parent::setup_globals( $globals );
63
  }
@@ -138,7 +138,7 @@ class BPMediaComponent extends BP_Component {
138
 
139
  /* Create the main navigation on profile */
140
  $main_nav = array(
141
- 'name' => __( BP_MEDIA_LABEL, BP_MEDIA_TXT_DOMAIN ),
142
  'slug' => BP_MEDIA_SLUG,
143
  'position' => 80,
144
  'screen_function' => array( ${'bp_media_' . $default_tab}, 'screen' ),
@@ -171,7 +171,7 @@ class BPMediaComponent extends BP_Component {
171
  $types .='s';
172
  }
173
  bp_core_new_nav_item( array(
174
- 'name' => __( constant( 'BP_MEDIA_' . strtoupper( $types ) . '_LABEL' ), BP_MEDIA_TXT_DOMAIN ),
175
  'slug' => constant( 'BP_MEDIA_' . strtoupper( $types ) . '_SLUG' ),
176
  'screen_function' => array( ${'bp_media_' . $type}, 'screen' ),
177
  ) );
@@ -220,7 +220,7 @@ class BPMediaComponent extends BP_Component {
220
 
221
 
222
  bp_core_new_nav_item( array(
223
- 'name' => __( BP_MEDIA_UPLOAD_LABEL, BP_MEDIA_TXT_DOMAIN ),
224
  'slug' => BP_MEDIA_UPLOAD_SLUG,
225
  'screen_function' => array( $bp_media_upload, 'upload_screen' ),
226
  'user_has_access' => bp_is_my_profile()
@@ -228,7 +228,7 @@ class BPMediaComponent extends BP_Component {
228
  if(array_key_exists('privacy_override_enabled',$bp_media->options))
229
  if(checked($bp_media->options['privacy_override_enabled'],true,false))
230
  bp_core_new_subnav_item( array(
231
- 'name' => __( BP_MEDIA_USER_SETTINGS_LABEL, BP_MEDIA_TXT_DOMAIN ),
232
  /* Display name for the nav item(It won't be shown anywhere) */
233
  'slug' => BP_MEDIA_USER_SETTINGS_SLUG,
234
  /* URL slug for the nav item */
@@ -252,19 +252,19 @@ class BPMediaComponent extends BP_Component {
252
 
253
  /* Set up Album labels */
254
  $album_labels = array(
255
- 'name' => __( 'Albums', BP_MEDIA_TXT_DOMAIN ),
256
- 'singular_name' => __( 'Album', BP_MEDIA_TXT_DOMAIN ),
257
- 'add_new' => __( 'Create', BP_MEDIA_TXT_DOMAIN ),
258
- 'add_new_item' => __( 'Create Album', BP_MEDIA_TXT_DOMAIN ),
259
- 'edit_item' => __( 'Edit Album', BP_MEDIA_TXT_DOMAIN ),
260
- 'new_item' => __( 'New Album', BP_MEDIA_TXT_DOMAIN ),
261
- 'all_items' => __( 'All Albums', BP_MEDIA_TXT_DOMAIN ),
262
- 'view_item' => __( 'View Album', BP_MEDIA_TXT_DOMAIN ),
263
- 'search_items' => __( 'Search Albums', BP_MEDIA_TXT_DOMAIN ),
264
- 'not_found' => __( 'No album found', BP_MEDIA_TXT_DOMAIN ),
265
- 'not_found_in_trash' => __( 'No album found in Trash', BP_MEDIA_TXT_DOMAIN ),
266
  'parent_item_colon' => '',
267
- 'menu_name' => __( 'Albums', BP_MEDIA_TXT_DOMAIN )
268
  );
269
 
270
  /* Set up Album post type arguments */
@@ -294,17 +294,17 @@ class BPMediaComponent extends BP_Component {
294
 
295
  /* Set up labels for Media post type */
296
  $labels = array(
297
- 'name' => __( 'Media', BP_MEDIA_TXT_DOMAIN ),
298
- 'singular' => __( 'Media', BP_MEDIA_TXT_DOMAIN ),
299
- 'add_new' => __( 'Add New Media', BP_MEDIA_TXT_DOMAIN )
300
  );
301
 
302
  /* Set up the arguments for Media post type */
303
  $args = array(
304
- 'label' => __( 'Media', BP_MEDIA_TXT_DOMAIN ),
305
  'labels' => $labels,
306
  'description' => __(
307
- 'BuddyPress Media\'s Media Files', BP_MEDIA_TXT_DOMAIN
308
  ),
309
  'public' => true,
310
  'show_ui' => false,
57
  $bp->pages->{$this->id}->slug ) ?
58
  $bp->pages->{$this->id}->slug : BP_MEDIA_SLUG,
59
  // 'has_directory' => true, // Set to false if not required
60
+ 'search_string' => __( 'Search Media...', 'buddypress-media' ),
61
  );
62
  parent::setup_globals( $globals );
63
  }
138
 
139
  /* Create the main navigation on profile */
140
  $main_nav = array(
141
+ 'name' => __( BP_MEDIA_LABEL, 'buddypress-media' ),
142
  'slug' => BP_MEDIA_SLUG,
143
  'position' => 80,
144
  'screen_function' => array( ${'bp_media_' . $default_tab}, 'screen' ),
171
  $types .='s';
172
  }
173
  bp_core_new_nav_item( array(
174
+ 'name' => __( constant( 'BP_MEDIA_' . strtoupper( $types ) . '_LABEL' ), 'buddypress-media' ),
175
  'slug' => constant( 'BP_MEDIA_' . strtoupper( $types ) . '_SLUG' ),
176
  'screen_function' => array( ${'bp_media_' . $type}, 'screen' ),
177
  ) );
220
 
221
 
222
  bp_core_new_nav_item( array(
223
+ 'name' => __( BP_MEDIA_UPLOAD_LABEL, 'buddypress-media' ),
224
  'slug' => BP_MEDIA_UPLOAD_SLUG,
225
  'screen_function' => array( $bp_media_upload, 'upload_screen' ),
226
  'user_has_access' => bp_is_my_profile()
228
  if(array_key_exists('privacy_override_enabled',$bp_media->options))
229
  if(checked($bp_media->options['privacy_override_enabled'],true,false))
230
  bp_core_new_subnav_item( array(
231
+ 'name' => __( BP_MEDIA_USER_SETTINGS_LABEL, 'buddypress-media' ),
232
  /* Display name for the nav item(It won't be shown anywhere) */
233
  'slug' => BP_MEDIA_USER_SETTINGS_SLUG,
234
  /* URL slug for the nav item */
252
 
253
  /* Set up Album labels */
254
  $album_labels = array(
255
+ 'name' => __( 'Albums', 'buddypress-media' ),
256
+ 'singular_name' => __( 'Album', 'buddypress-media' ),
257
+ 'add_new' => __( 'Create', 'buddypress-media' ),
258
+ 'add_new_item' => __( 'Create Album', 'buddypress-media' ),
259
+ 'edit_item' => __( 'Edit Album', 'buddypress-media' ),
260
+ 'new_item' => __( 'New Album', 'buddypress-media' ),
261
+ 'all_items' => __( 'All Albums', 'buddypress-media' ),
262
+ 'view_item' => __( 'View Album', 'buddypress-media' ),
263
+ 'search_items' => __( 'Search Albums', 'buddypress-media' ),
264
+ 'not_found' => __( 'No album found', 'buddypress-media' ),
265
+ 'not_found_in_trash' => __( 'No album found in Trash', 'buddypress-media' ),
266
  'parent_item_colon' => '',
267
+ 'menu_name' => __( 'Albums', 'buddypress-media' )
268
  );
269
 
270
  /* Set up Album post type arguments */
294
 
295
  /* Set up labels for Media post type */
296
  $labels = array(
297
+ 'name' => __( 'Media', 'buddypress-media' ),
298
+ 'singular' => __( 'Media', 'buddypress-media' ),
299
+ 'add_new' => __( 'Add New Media', 'buddypress-media' )
300
  );
301
 
302
  /* Set up the arguments for Media post type */
303
  $args = array(
304
+ 'label' => __( 'Media', 'buddypress-media' ),
305
  'labels' => $labels,
306
  'description' => __(
307
+ 'BuddyPress Media\'s Media Files', 'buddypress-media'
308
  ),
309
  'public' => true,
310
  'show_ui' => false,
app/main/BPMediaGroupLoader.php CHANGED
@@ -199,7 +199,7 @@ class BPMediaGroupLoader {
199
  <ul>
200
  <?php
201
  foreach ($bp_media_group_tabs as $tab_slug => $tab_info) {
202
- echo '<li id="' . $tab_slug . '-group-li" ' . ($current_tab == $tab_slug ? 'class="current selected"' : '') . '><a id="' . $tab_slug . '" href="' . $tab_info['url'] . '" title="' . __($tab_info['label'], BP_MEDIA_TXT_DOMAIN) . '">' . __($tab_info['label'], BP_MEDIA_TXT_DOMAIN) . '</a></li>';
203
  }
204
  ?>
205
  </ul>
@@ -249,7 +249,7 @@ class BPMediaGroupLoader {
249
  $wp_admin_bar->add_menu(array(
250
  'parent' => $bp->group_admin_menu_id,
251
  'id' => 'bp-media-group',
252
- 'title' => __('Media Settings', BP_MEDIA_TXT_DOMAIN),
253
  'href' => bp_get_groups_action_link('admin/media')
254
  ));
255
  }
@@ -302,7 +302,7 @@ class BPMediaGroupLoader {
302
  ?>
303
  <div id="message" class="error">
304
  <p>
305
- <?php _e($errorMessage, BP_MEDIA_TXT_DOMAIN); ?>
306
  </p>
307
  </div>
308
  <?php
199
  <ul>
200
  <?php
201
  foreach ($bp_media_group_tabs as $tab_slug => $tab_info) {
202
+ echo '<li id="' . $tab_slug . '-group-li" ' . ($current_tab == $tab_slug ? 'class="current selected"' : '') . '><a id="' . $tab_slug . '" href="' . $tab_info['url'] . '" title="' . __($tab_info['label'], 'buddypress-media') . '">' . __($tab_info['label'], 'buddypress-media') . '</a></li>';
203
  }
204
  ?>
205
  </ul>
249
  $wp_admin_bar->add_menu(array(
250
  'parent' => $bp->group_admin_menu_id,
251
  'id' => 'bp-media-group',
252
+ 'title' => __('Media Settings', 'buddypress-media'),
253
  'href' => bp_get_groups_action_link('admin/media')
254
  ));
255
  }
302
  ?>
303
  <div id="message" class="error">
304
  <p>
305
+ <?php _e($errorMessage, 'buddypress-media'); ?>
306
  </p>
307
  </div>
308
  <?php
app/main/BuddyPressMedia.php CHANGED
@@ -195,9 +195,6 @@ class BuddyPressMedia {
195
  * defining them elsewhere, say wp-config.php
196
  */
197
  public function constants() {
198
- /* Text domain */
199
- if (!defined('BP_MEDIA_TXT_DOMAIN'))
200
- define('BP_MEDIA_TXT_DOMAIN', $this->text_domain);
201
 
202
  /* If the plugin is installed. */
203
  if (!defined('BP_MEDIA_IS_INSTALLED'))
@@ -393,7 +390,7 @@ class BuddyPressMedia {
393
  * Loads translations
394
  */
395
  static function load_translation() {
396
- load_plugin_textdomain(BP_MEDIA_TXT_DOMAIN, false, basename(BP_MEDIA_PATH) . '/languages/');
397
  }
398
 
399
  /**
195
  * defining them elsewhere, say wp-config.php
196
  */
197
  public function constants() {
 
 
 
198
 
199
  /* If the plugin is installed. */
200
  if (!defined('BP_MEDIA_IS_INSTALLED'))
390
  * Loads translations
391
  */
392
  static function load_translation() {
393
+ load_plugin_textdomain('buddypress-media', false, basename(BP_MEDIA_PATH) . '/languages/');
394
  }
395
 
396
  /**
app/main/activity/BPMediaActivity.php CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'BPMediaActivity' ) ) {
43
  <input type ="hidden" id="bp-media-update-json" />
44
  <input type ="hidden" id="bp-media-latest-update" />
45
  <div id="bp-media-activity-upload-ui" class="hide-if-no-js drag-drop">
46
- <input id="bp-media-activity-upload-browse-button" type="button" value="<?php _e( 'Attach Media', BP_MEDIA_TXT_DOMAIN ); ?>" class="button" />
47
  <div id="bp-media-activity-uploaded-files"></div>
48
  </div>
49
  <?php
43
  <input type ="hidden" id="bp-media-update-json" />
44
  <input type ="hidden" id="bp-media-latest-update" />
45
  <div id="bp-media-activity-upload-ui" class="hide-if-no-js drag-drop">
46
+ <input id="bp-media-activity-upload-browse-button" type="button" value="<?php _e( 'Attach Media', 'buddypress-media' ); ?>" class="button" />
47
  <div id="bp-media-activity-uploaded-files"></div>
48
  </div>
49
  <?php
app/main/group/BPMediaGroupAction.php CHANGED
@@ -121,7 +121,7 @@ static function bp_media_groups_set_query() {
121
  }
122
  }
123
  $args = array(
124
- 'action' => apply_filters('bp_media_added_media', sprintf(__('%1$s added a %2$s', BP_MEDIA_TXT_DOMAIN), bp_core_get_userlink($media->get_author()), '<a href="' . $media->get_url() . '">' . $media->get_media_activity_type() . '</a>')),
125
  'content' => $media->get_media_activity_content(),
126
  'primary_link' => $media->get_url(),
127
  'component' => $bp->groups->id,
121
  }
122
  }
123
  $args = array(
124
+ 'action' => apply_filters('bp_media_added_media', sprintf(__('%1$s added a %2$s', 'buddypress-media'), bp_core_get_userlink($media->get_author()), '<a href="' . $media->get_url() . '">' . $media->get_media_activity_type() . '</a>')),
125
  'content' => $media->get_media_activity_content(),
126
  'primary_link' => $media->get_url(),
127
  'component' => $bp->groups->id,
app/main/group/BPMediaGroupElementExtension.php CHANGED
@@ -88,7 +88,7 @@ if (class_exists('BP_Group_Extension')) :
88
  try {
89
  $bp_media_current_entry = new BPMediaHostWordpress(bp_action_variable(1));
90
  if ($bp_media_current_entry->get_group_id() != bp_get_current_group_id())
91
- throw new Exception(__('Sorry, the requested media does not belong to the group', BP_MEDIA_TXT_DOMAIN));
92
  } catch (Exception $e) {
93
  /** Error Handling when media not present or not belong to the group */
94
  $this->bp_media_display_error($e->getMessage());
@@ -134,7 +134,7 @@ if (class_exists('BP_Group_Extension')) :
134
  ?>
135
  <div id="message" class="error">
136
  <p>
137
- <?php _e($errorMessage, BP_MEDIA_TXT_DOMAIN); ?>
138
  </p>
139
  </div>
140
  <?php
88
  try {
89
  $bp_media_current_entry = new BPMediaHostWordpress(bp_action_variable(1));
90
  if ($bp_media_current_entry->get_group_id() != bp_get_current_group_id())
91
+ throw new Exception(__('Sorry, the requested media does not belong to the group', 'buddypress-media'));
92
  } catch (Exception $e) {
93
  /** Error Handling when media not present or not belong to the group */
94
  $this->bp_media_display_error($e->getMessage());
134
  ?>
135
  <div id="message" class="error">
136
  <p>
137
+ <?php _e($errorMessage, 'buddypress-media'); ?>
138
  </p>
139
  </div>
140
  <?php
app/main/group/BPMediaGroupsExtension.php CHANGED
@@ -21,7 +21,7 @@ if (class_exists('BP_Group_Extension')) :// Recommended, to prevent problems dur
21
  */
22
  function __construct() {
23
  global $bp;
24
- $this->name = __(BP_MEDIA_LABEL, BP_MEDIA_TXT_DOMAIN);
25
  $this->slug = BP_MEDIA_SLUG;
26
  $this->create_step_position = 21;
27
  $this->nav_item_position = 31;
@@ -37,20 +37,20 @@ if (class_exists('BP_Group_Extension')) :// Recommended, to prevent problems dur
37
  if (!bp_is_group_creation_step($this->slug))
38
  return false;
39
  ?>
40
- <h4><?php _e("Album Creation Control", BP_MEDIA_TXT_DOMAIN); ?></h4>
41
- <p><?php _e("Who can create Albums in this group?", BP_MEDIA_TXT_DOMAIN); ?></p>
42
  <div class="radio">
43
  <label>
44
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" checked="checked" value="all">
45
- <strong><?php _e("All Group Members", BP_MEDIA_TXT_DOMAIN); ?></strong>
46
  </label>
47
  <label>
48
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" value="moderators">
49
- <strong><?php _e("Group Admins and Mods only", BP_MEDIA_TXT_DOMAIN); ?></strong>
50
  </label>
51
  <label>
52
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_admin" value="admin">
53
- <strong><?php _e("Group Admin only", BP_MEDIA_TXT_DOMAIN); ?></strong>
54
  </label>
55
  </div>
56
 
@@ -84,24 +84,24 @@ if (class_exists('BP_Group_Extension')) :// Recommended, to prevent problems dur
84
  $current_level = groups_get_groupmeta(bp_get_current_group_id(), 'bp_media_group_control_level');
85
  ?>
86
 
87
- <h4><?php _e("Album Creation Control", BP_MEDIA_TXT_DOMAIN); ?></h4>
88
- <p><?php _e("Who can create Albums in this group?", BP_MEDIA_TXT_DOMAIN); ?></p>
89
  <div class="radio">
90
  <label>
91
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" value="all"<?php checked($current_level, 'all', true) ?>>
92
- <strong><?php _e("All Group Members", BP_MEDIA_TXT_DOMAIN); ?></strong>
93
  </label>
94
  <label>
95
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" value="moderators" <?php checked($current_level, 'moderators', true) ?>>
96
- <strong><?php _e("Group Admins and Mods only", BP_MEDIA_TXT_DOMAIN); ?></strong>
97
  </label>
98
  <label>
99
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_admin" value="admin" <?php checked($current_level, 'admin', true) ?>>
100
- <strong><?php _e("Group Admin only", BP_MEDIA_TXT_DOMAIN); ?></strong>
101
  </label>
102
  </div>
103
  <hr>
104
- <input type="submit" name="save" value="<?php _e("Save Changes", BP_MEDIA_TXT_DOMAIN); ?> />
105
  <?php
106
  wp_nonce_field('groups_edit_save_' . $this->slug);
107
  }
@@ -127,9 +127,9 @@ if (class_exists('BP_Group_Extension')) :// Recommended, to prevent problems dur
127
 
128
  /* To post an error/success message to the screen, use the following */
129
  if (!$success)
130
- bp_core_add_message(__('There was an error saving, please try again', BP_MEDIA_TXT_DOMAIN), 'error');
131
  else
132
- bp_core_add_message(__('Settings saved successfully', BP_MEDIA_TXT_DOMAIN));
133
 
134
  bp_core_redirect(bp_get_group_permalink($bp->groups->current_group) . '/admin/' . $this->slug);
135
  }
@@ -151,7 +151,7 @@ if (class_exists('BP_Group_Extension')) :// Recommended, to prevent problems dur
151
  <h4><?php echo esc_attr($this->name) ?></h4>
152
  <p>
153
  <?php _e("You could display a small snippet of information from your group extension here. It will show on the group
154
- home screen.", BP_MEDIA_TXT_DOMAIN); ?>
155
  </p>
156
  </div>
157
  <?php
21
  */
22
  function __construct() {
23
  global $bp;
24
+ $this->name = __(BP_MEDIA_LABEL, 'buddypress-media');
25
  $this->slug = BP_MEDIA_SLUG;
26
  $this->create_step_position = 21;
27
  $this->nav_item_position = 31;
37
  if (!bp_is_group_creation_step($this->slug))
38
  return false;
39
  ?>
40
+ <h4><?php _e("Album Creation Control", 'buddypress-media'); ?></h4>
41
+ <p><?php _e("Who can create Albums in this group?", 'buddypress-media'); ?></p>
42
  <div class="radio">
43
  <label>
44
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" checked="checked" value="all">
45
+ <strong><?php _e("All Group Members", 'buddypress-media'); ?></strong>
46
  </label>
47
  <label>
48
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" value="moderators">
49
+ <strong><?php _e("Group Admins and Mods only", 'buddypress-media'); ?></strong>
50
  </label>
51
  <label>
52
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_admin" value="admin">
53
+ <strong><?php _e("Group Admin only", 'buddypress-media'); ?></strong>
54
  </label>
55
  </div>
56
 
84
  $current_level = groups_get_groupmeta(bp_get_current_group_id(), 'bp_media_group_control_level');
85
  ?>
86
 
87
+ <h4><?php _e("Album Creation Control", 'buddypress-media'); ?></h4>
88
+ <p><?php _e("Who can create Albums in this group?", 'buddypress-media'); ?></p>
89
  <div class="radio">
90
  <label>
91
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" value="all"<?php checked($current_level, 'all', true) ?>>
92
+ <strong><?php _e("All Group Members", 'buddypress-media'); ?></strong>
93
  </label>
94
  <label>
95
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_moderators" value="moderators" <?php checked($current_level, 'moderators', true) ?>>
96
+ <strong><?php _e("Group Admins and Mods only", 'buddypress-media'); ?></strong>
97
  </label>
98
  <label>
99
  <input name="bp_album_creation_control" type="radio" id="bp_media_group_level_admin" value="admin" <?php checked($current_level, 'admin', true) ?>>
100
+ <strong><?php _e("Group Admin only", 'buddypress-media'); ?></strong>
101
  </label>
102
  </div>
103
  <hr>
104
+ <input type="submit" name="save" value="<?php _e("Save Changes", 'buddypress-media'); ?> />
105
  <?php
106
  wp_nonce_field('groups_edit_save_' . $this->slug);
107
  }
127
 
128
  /* To post an error/success message to the screen, use the following */
129
  if (!$success)
130
+ bp_core_add_message(__('There was an error saving, please try again', 'buddypress-media'), 'error');
131
  else
132
+ bp_core_add_message(__('Settings saved successfully', 'buddypress-media'));
133
 
134
  bp_core_redirect(bp_get_group_permalink($bp->groups->current_group) . '/admin/' . $this->slug);
135
  }
151
  <h4><?php echo esc_attr($this->name) ?></h4>
152
  <p>
153
  <?php _e("You could display a small snippet of information from your group extension here. It will show on the group
154
+ home screen.", 'buddypress-media'); ?>
155
  </p>
156
  </div>
157
  <?php
app/main/includes/BPMediaActions.php CHANGED
@@ -101,12 +101,12 @@ class BPMediaActions {
101
  $group_id = isset($_POST['bp_media_group_id']) ? intval($_POST['bp_media_group_id']) : 0;
102
  $entry = $bp_media_entry->add_media($title, $description, $album_id, $group_id, $is_multiple, $is_activity);
103
  if (!isset($bp->{BP_MEDIA_SLUG}->messages['updated'][0]))
104
- $bp->{BP_MEDIA_SLUG}->messages['updated'][0] = __('Upload Successful', BP_MEDIA_TXT_DOMAIN);
105
  } catch (Exception $e) {
106
  $bp->{BP_MEDIA_SLUG}->messages['error'][] = $e->getMessage();
107
  }
108
  } else {
109
- $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('You did not specified a file to upload', BP_MEDIA_TXT_DOMAIN);
110
  }
111
  }
112
  }
@@ -308,25 +308,25 @@ class BPMediaActions {
308
  if (isset($bp_media->options['download_enabled']))
309
  $action_buttons[] = '<a href="' . admin_url('admin-ajax.php') . '?action=bp_media_download&file=' . $bp_media_current_entry->get_attachment_url()
310
  . '" target="_blank" class="button item-button bp-secondary-action bp-media-download" title="'
311
- . __('Download', BP_MEDIA_TXT_DOMAIN) . '">' . __('Download', BP_MEDIA_TXT_DOMAIN) . '</a>';
312
 
313
  if ((bp_displayed_user_id() == bp_loggedin_user_id()) && ($bp_media_current_entry->get_type() == 'image')) {
314
  if (get_post_thumbnail_id($bp_media_current_entry->get_album_id()) != $bp_media_current_entry->get_id())
315
  $action_buttons[] = '<a href="#" data-album-id="' . $bp_media_current_entry->get_album_id()
316
  . '" data-post-id="' . $bp_media_current_entry->get_id()
317
  . '" class="button item-button bp-secondary-action bp-media-featured" title="'
318
- . __('Set as Album Cover', BP_MEDIA_TXT_DOMAIN) . '">' . __('Set as Album Cover', BP_MEDIA_TXT_DOMAIN) . '</a>';
319
  else
320
  $action_buttons[] = '<a href="#" data-album-id="'
321
  . $bp_media_current_entry->get_album_id() . '" data-post-id="' . $bp_media_current_entry->get_id()
322
  . '" class="button item-button bp-secondary-action bp-media-featured" title="'
323
- . __('Unset as Album Cover', BP_MEDIA_TXT_DOMAIN) . '">' . __('Unset as Album Cover', BP_MEDIA_TXT_DOMAIN) . '</a>';
324
  }
325
 
326
  if (bp_displayed_user_id() == bp_loggedin_user_id())
327
  $action_buttons[] = '<a href="' . $bp_media_current_entry->get_edit_url()
328
  . '" class="button item-button bp-secondary-action bp-media-edit" title="'
329
- . __('Edit Media', BP_MEDIA_TXT_DOMAIN) . '">' . __('Edit', BP_MEDIA_TXT_DOMAIN) . '</a>';
330
  }
331
  $action_buttons = apply_filters('bp_media_action_buttons', $action_buttons);
332
  foreach ($action_buttons as $action_button) {
@@ -738,7 +738,7 @@ class BPMediaActions {
738
  }
739
 
740
  $args = array(
741
- 'action' => apply_filters('bp_media_album_created', sprintf(__('%1$s created an album %2$s', BP_MEDIA_TXT_DOMAIN), bp_core_get_userlink($album->get_owner()), '<a href="' . $album->get_url() . '">' . $album->get_title() . '</a>')),
742
  'component' => $component,
743
  'type' => 'activity_update',
744
  'primary_link' => $album->get_url(),
@@ -785,7 +785,7 @@ class BPMediaActions {
785
  }
786
  $activity_content = $media->get_media_activity_content();
787
  $args = array(
788
- 'action' => apply_filters('bp_media_added_media', sprintf(__('%1$s added a %2$s', BP_MEDIA_TXT_DOMAIN), bp_core_get_userlink($media->get_author()), '<a href="' . $media->get_url() . '">' . $media->get_media_activity_type() . '</a>')),
789
  'content' => $activity_content,
790
  'primary_link' => $media->get_url(),
791
  'item_id' => $media->get_id(),
@@ -835,10 +835,10 @@ class BPMediaActions {
835
  $text = NULL;
836
  if ($album_cover && ($album_cover == $id)) {
837
  delete_post_thumbnail($album_id);
838
- $text = __('Set as Album Cover', BP_MEDIA_TXT_DOMAIN);
839
  } else {
840
  set_post_thumbnail($album_id, $id);
841
- $text = __('Unset as Album Cover', BP_MEDIA_TXT_DOMAIN);
842
  }
843
  echo $text;
844
  die;
101
  $group_id = isset($_POST['bp_media_group_id']) ? intval($_POST['bp_media_group_id']) : 0;
102
  $entry = $bp_media_entry->add_media($title, $description, $album_id, $group_id, $is_multiple, $is_activity);
103
  if (!isset($bp->{BP_MEDIA_SLUG}->messages['updated'][0]))
104
+ $bp->{BP_MEDIA_SLUG}->messages['updated'][0] = __('Upload Successful', 'buddypress-media');
105
  } catch (Exception $e) {
106
  $bp->{BP_MEDIA_SLUG}->messages['error'][] = $e->getMessage();
107
  }
108
  } else {
109
+ $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('You did not specified a file to upload', 'buddypress-media');
110
  }
111
  }
112
  }
308
  if (isset($bp_media->options['download_enabled']))
309
  $action_buttons[] = '<a href="' . admin_url('admin-ajax.php') . '?action=bp_media_download&file=' . $bp_media_current_entry->get_attachment_url()
310
  . '" target="_blank" class="button item-button bp-secondary-action bp-media-download" title="'
311
+ . __('Download', 'buddypress-media') . '">' . __('Download', 'buddypress-media') . '</a>';
312
 
313
  if ((bp_displayed_user_id() == bp_loggedin_user_id()) && ($bp_media_current_entry->get_type() == 'image')) {
314
  if (get_post_thumbnail_id($bp_media_current_entry->get_album_id()) != $bp_media_current_entry->get_id())
315
  $action_buttons[] = '<a href="#" data-album-id="' . $bp_media_current_entry->get_album_id()
316
  . '" data-post-id="' . $bp_media_current_entry->get_id()
317
  . '" class="button item-button bp-secondary-action bp-media-featured" title="'
318
+ . __('Set as Album Cover', 'buddypress-media') . '">' . __('Set as Album Cover', 'buddypress-media') . '</a>';
319
  else
320
  $action_buttons[] = '<a href="#" data-album-id="'
321
  . $bp_media_current_entry->get_album_id() . '" data-post-id="' . $bp_media_current_entry->get_id()
322
  . '" class="button item-button bp-secondary-action bp-media-featured" title="'
323
+ . __('Unset as Album Cover', 'buddypress-media') . '">' . __('Unset as Album Cover', 'buddypress-media') . '</a>';
324
  }
325
 
326
  if (bp_displayed_user_id() == bp_loggedin_user_id())
327
  $action_buttons[] = '<a href="' . $bp_media_current_entry->get_edit_url()
328
  . '" class="button item-button bp-secondary-action bp-media-edit" title="'
329
+ . __('Edit Media', 'buddypress-media') . '">' . __('Edit', 'buddypress-media') . '</a>';
330
  }
331
  $action_buttons = apply_filters('bp_media_action_buttons', $action_buttons);
332
  foreach ($action_buttons as $action_button) {
738
  }
739
 
740
  $args = array(
741
+ 'action' => apply_filters('bp_media_album_created', sprintf(__('%1$s created an album %2$s', 'buddypress-media'), bp_core_get_userlink($album->get_owner()), '<a href="' . $album->get_url() . '">' . $album->get_title() . '</a>')),
742
  'component' => $component,
743
  'type' => 'activity_update',
744
  'primary_link' => $album->get_url(),
785
  }
786
  $activity_content = $media->get_media_activity_content();
787
  $args = array(
788
+ 'action' => apply_filters('bp_media_added_media', sprintf(__('%1$s added a %2$s', 'buddypress-media'), bp_core_get_userlink($media->get_author()), '<a href="' . $media->get_url() . '">' . $media->get_media_activity_type() . '</a>')),
789
  'content' => $activity_content,
790
  'primary_link' => $media->get_url(),
791
  'item_id' => $media->get_id(),
835
  $text = NULL;
836
  if ($album_cover && ($album_cover == $id)) {
837
  delete_post_thumbnail($album_id);
838
+ $text = __('Set as Album Cover', 'buddypress-media');
839
  } else {
840
  set_post_thumbnail($album_id, $id);
841
+ $text = __('Unset as Album Cover', 'buddypress-media');
842
  }
843
  echo $text;
844
  die;
app/main/includes/BPMediaFilters.php CHANGED
@@ -140,7 +140,7 @@ class BPMediaFilters {
140
  }
141
  }
142
  if ($media_label)
143
- $link = str_replace('Delete', sprintf(__('Delete %s', BP_MEDIA_TXT_DOMAIN), $media_label), $link);
144
  return $link;
145
  }
146
 
@@ -229,7 +229,7 @@ class BPMediaFilters {
229
  $bp_media_admin_nav[] = array(
230
  'parent' => 'my-account-buddypress',
231
  'id' => 'my-account-bpmedia',
232
- 'title' => __('Media', BP_MEDIA_TXT_DOMAIN),
233
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_SLUG),
234
  'meta' => array(
235
  'class' => 'menupop')
@@ -239,7 +239,7 @@ class BPMediaFilters {
239
  /* $bp_media_admin_nav[] = array(
240
  'parent' => 'my-account-bpmedia',
241
  'id' => 'my-account-upload-media',
242
- 'title' => __('Upload Media',BP_MEDIA_TXT_DOMAIN),
243
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_SLUG),
244
  ); */
245
 
@@ -247,7 +247,7 @@ class BPMediaFilters {
247
  $bp_media_admin_nav[] = array(
248
  'parent' => 'my-account-bpmedia',
249
  'id' => 'my-account-photos',
250
- 'title' => __('Photos', BP_MEDIA_TXT_DOMAIN),
251
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_IMAGES_SLUG)
252
  );
253
 
@@ -255,7 +255,7 @@ class BPMediaFilters {
255
  $bp_media_admin_nav[] = array(
256
  'parent' => 'my-account-bpmedia',
257
  'id' => 'my-account-videos',
258
- 'title' => __('Videos', BP_MEDIA_TXT_DOMAIN),
259
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_VIDEOS_SLUG)
260
  );
261
 
@@ -263,7 +263,7 @@ class BPMediaFilters {
263
  $bp_media_admin_nav[] = array(
264
  'parent' => 'my-account-bpmedia',
265
  'id' => 'my-account-audio',
266
- 'title' => __('Audio', BP_MEDIA_TXT_DOMAIN),
267
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_AUDIO_SLUG)
268
  );
269
 
@@ -271,7 +271,7 @@ class BPMediaFilters {
271
  $bp_media_admin_nav[] = array(
272
  'parent' => 'my-account-bpmedia',
273
  'id' => 'my-account-album',
274
- 'title' => __('Albums', BP_MEDIA_TXT_DOMAIN),
275
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_ALBUMS_SLUG)
276
  );
277
 
@@ -310,7 +310,7 @@ class BPMediaFilters {
310
  $bp_media_admin_nav[] = array(
311
  'parent' => 'bp-media-menu',
312
  'id' => 'bp-media-settings',
313
- 'title' => __('Settings', BP_MEDIA_TXT_DOMAIN),
314
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php'))
315
  );
316
 
@@ -318,7 +318,7 @@ class BPMediaFilters {
318
  $bp_media_admin_nav[] = array(
319
  'parent' => 'bp-media-menu',
320
  'id' => 'bp-media-addons',
321
- 'title' => __('Addons', BP_MEDIA_TXT_DOMAIN),
322
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-addons'), 'admin.php'))
323
  );
324
 
@@ -326,7 +326,7 @@ class BPMediaFilters {
326
  $bp_media_admin_nav[] = array(
327
  'parent' => 'bp-media-menu',
328
  'id' => 'bp-media-support',
329
- 'title' => __('Support', BP_MEDIA_TXT_DOMAIN),
330
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php'))
331
  );
332
 
@@ -389,14 +389,14 @@ class BPMediaFilters {
389
  $g_albums_count = $this->group_total_count('album');
390
  ?>
391
  <div class="bp-media-dashboard">
392
- <h3 class="sub"><?php _e('Users', BP_MEDIA_TXT_DOMAIN); ?> </h3>
393
  <div class="table table_user">
394
- <div class=""><span class="media-cnt"><?php echo $photos_count; ?></span><span class="media-label"><?php _e('Total Photos', BP_MEDIA_TXT_DOMAIN); ?></span></div>
395
- <div class=""><span class="media-cnt"><?php echo $videos_count; ?></span><span class="media-label"><?php _e('Total Videos', BP_MEDIA_TXT_DOMAIN); ?></span></div>
396
- <div class=""><span class="media-cnt"><?php echo $audio_count; ?></span><span class="media-label"><?php _e('Total Audio', BP_MEDIA_TXT_DOMAIN); ?></span></div>
397
- <div class=""><span class="media-cnt"><?php echo $albums_count; ?></span><span class="media-label"><?php _e('Total Albums', BP_MEDIA_TXT_DOMAIN); ?></span></div>
398
  </div><!-- .table_user -->
399
- <h3 class="sub"><?php _e('Groups', BP_MEDIA_TXT_DOMAIN); ?> </h3>
400
  <div class="table table_group">
401
 
402
  </div><!-- .table_group -->
140
  }
141
  }
142
  if ($media_label)
143
+ $link = str_replace('Delete', sprintf(__('Delete %s', 'buddypress-media'), $media_label), $link);
144
  return $link;
145
  }
146
 
229
  $bp_media_admin_nav[] = array(
230
  'parent' => 'my-account-buddypress',
231
  'id' => 'my-account-bpmedia',
232
+ 'title' => __('Media', 'buddypress-media'),
233
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_SLUG),
234
  'meta' => array(
235
  'class' => 'menupop')
239
  /* $bp_media_admin_nav[] = array(
240
  'parent' => 'my-account-bpmedia',
241
  'id' => 'my-account-upload-media',
242
+ 'title' => __('Upload Media','buddypress-media'),
243
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_SLUG),
244
  ); */
245
 
247
  $bp_media_admin_nav[] = array(
248
  'parent' => 'my-account-bpmedia',
249
  'id' => 'my-account-photos',
250
+ 'title' => __('Photos', 'buddypress-media'),
251
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_IMAGES_SLUG)
252
  );
253
 
255
  $bp_media_admin_nav[] = array(
256
  'parent' => 'my-account-bpmedia',
257
  'id' => 'my-account-videos',
258
+ 'title' => __('Videos', 'buddypress-media'),
259
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_VIDEOS_SLUG)
260
  );
261
 
263
  $bp_media_admin_nav[] = array(
264
  'parent' => 'my-account-bpmedia',
265
  'id' => 'my-account-audio',
266
+ 'title' => __('Audio', 'buddypress-media'),
267
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_AUDIO_SLUG)
268
  );
269
 
271
  $bp_media_admin_nav[] = array(
272
  'parent' => 'my-account-bpmedia',
273
  'id' => 'my-account-album',
274
+ 'title' => __('Albums', 'buddypress-media'),
275
  'href' => trailingslashit(bp_loggedin_user_domain() . BP_MEDIA_ALBUMS_SLUG)
276
  );
277
 
310
  $bp_media_admin_nav[] = array(
311
  'parent' => 'bp-media-menu',
312
  'id' => 'bp-media-settings',
313
+ 'title' => __('Settings', 'buddypress-media'),
314
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php'))
315
  );
316
 
318
  $bp_media_admin_nav[] = array(
319
  'parent' => 'bp-media-menu',
320
  'id' => 'bp-media-addons',
321
+ 'title' => __('Addons', 'buddypress-media'),
322
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-addons'), 'admin.php'))
323
  );
324
 
326
  $bp_media_admin_nav[] = array(
327
  'parent' => 'bp-media-menu',
328
  'id' => 'bp-media-support',
329
+ 'title' => __('Support', 'buddypress-media'),
330
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php'))
331
  );
332
 
389
  $g_albums_count = $this->group_total_count('album');
390
  ?>
391
  <div class="bp-media-dashboard">
392
+ <h3 class="sub"><?php _e('Users', 'buddypress-media'); ?> </h3>
393
  <div class="table table_user">
394
+ <div class=""><span class="media-cnt"><?php echo $photos_count; ?></span><span class="media-label"><?php _e('Total Photos', 'buddypress-media'); ?></span></div>
395
+ <div class=""><span class="media-cnt"><?php echo $videos_count; ?></span><span class="media-label"><?php _e('Total Videos', 'buddypress-media'); ?></span></div>
396
+ <div class=""><span class="media-cnt"><?php echo $audio_count; ?></span><span class="media-label"><?php _e('Total Audio', 'buddypress-media'); ?></span></div>
397
+ <div class=""><span class="media-cnt"><?php echo $albums_count; ?></span><span class="media-label"><?php _e('Total Albums', 'buddypress-media'); ?></span></div>
398
  </div><!-- .table_user -->
399
+ <h3 class="sub"><?php _e('Groups', 'buddypress-media'); ?> </h3>
400
  <div class="table table_group">
401
 
402
  </div><!-- .table_group -->
app/main/includes/BPMediaFunction.php CHANGED
@@ -164,7 +164,7 @@ class BPMediaFunction {
164
  static function check_user() {
165
  if (bp_loggedin_user_id() != bp_displayed_user_id()) {
166
  bp_core_no_access(array(
167
- 'message' => __('You do not have access to this page.', BP_MEDIA_TXT_DOMAIN),
168
  'root' => bp_displayed_user_domain(),
169
  'redirect' => false
170
  ));
@@ -225,7 +225,7 @@ class BPMediaFunction {
225
  'id' => $activity_id,
226
  'type' => 'album_updated',
227
  'user_id' => $activity['activities'][0]->user_id,
228
- 'action' => apply_filters('bp_media_filter_album_updated', sprintf(__('%1$s added new media in album %2$s', BP_MEDIA_TXT_DOMAIN), bp_core_get_userlink($activity['activities'][0]->user_id), '<a href="' . $album->get_url() . '">' . $album->get_title() . '</a>')),
229
  'component' => $component, // The name/ID of the component e.g. groups, profile, mycomponent
230
  'primary_link' => $activity['activities'][0]->primary_link,
231
  'item_id' => $item_id,
164
  static function check_user() {
165
  if (bp_loggedin_user_id() != bp_displayed_user_id()) {
166
  bp_core_no_access(array(
167
+ 'message' => __('You do not have access to this page.', 'buddypress-media'),
168
  'root' => bp_displayed_user_domain(),
169
  'redirect' => false
170
  ));
225
  'id' => $activity_id,
226
  'type' => 'album_updated',
227
  'user_id' => $activity['activities'][0]->user_id,
228
+ 'action' => apply_filters('bp_media_filter_album_updated', sprintf(__('%1$s added new media in album %2$s', 'buddypress-media'), bp_core_get_userlink($activity['activities'][0]->user_id), '<a href="' . $album->get_url() . '">' . $album->get_title() . '</a>')),
229
  'component' => $component, // The name/ID of the component e.g. groups, profile, mycomponent
230
  'primary_link' => $activity['activities'][0]->primary_link,
231
  'item_id' => $item_id,
app/main/includes/BPMediaHostWordpress.php CHANGED
@@ -56,7 +56,7 @@ class BPMediaHostWordpress {
56
  $media = &get_post($media_id);
57
  }
58
  if (empty($media->ID))
59
- throw new Exception(__('Sorry, the requested media does not exist.', BP_MEDIA_TXT_DOMAIN));
60
  if (!'bp_media_album' == $media->post_type || !empty($media->post_mime_type))
61
  preg_match_all('/audio|video|image/i', $media->post_mime_type, $result);
62
  else
@@ -134,7 +134,7 @@ class BPMediaHostWordpress {
134
  }
135
 
136
  if (isset($file['error']) || $file === null) {
137
- throw new Exception(__('Error Uploading File', BP_MEDIA_TXT_DOMAIN));
138
  }
139
 
140
  $type = $file['type'];
@@ -168,24 +168,24 @@ class BPMediaHostWordpress {
168
  } catch (Exception $e) {
169
  unlink($file);
170
  $activity_content = false;
171
- throw new Exception(__('MP4 file you have uploaded is corrupt.', BP_MEDIA_TXT_DOMAIN));
172
  }
173
  if (is_array($vid_info)) {
174
  if (!array_key_exists('error', $vid_info) && array_key_exists('fileformat', $vid_info) && array_key_exists('video', $vid_info) && array_key_exists('fourcc', $vid_info['video'])) {
175
  if (!($vid_info['fileformat'] == 'mp4' && $vid_info['video']['fourcc'] == 'avc1')) {
176
  unlink($file);
177
  $activity_content = false;
178
- throw new Exception(__('The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264.', BP_MEDIA_TXT_DOMAIN));
179
  }
180
  } else {
181
  unlink($file);
182
  $activity_content = false;
183
- throw new Exception(__('The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264.', BP_MEDIA_TXT_DOMAIN));
184
  }
185
  } else {
186
  unlink($file);
187
  $activity_content = false;
188
- throw new Exception(__('The MP4 file you have uploaded is not a video file.', BP_MEDIA_TXT_DOMAIN));
189
  }
190
  break;
191
  case 'audio/mpeg' :
@@ -196,24 +196,24 @@ class BPMediaHostWordpress {
196
  } catch (Exception $e) {
197
  unlink($file);
198
  $activity_content = false;
199
- throw new Exception(__('MP3 file you have uploaded is currupt.', BP_MEDIA_TXT_DOMAIN));
200
  }
201
  if (is_array($file_info)) {
202
  if (!array_key_exists('error', $file_info) && array_key_exists('fileformat', $file_info) && array_key_exists('audio', $file_info) && array_key_exists('dataformat', $file_info['audio'])) {
203
  if (!($file_info['fileformat'] == 'mp3' && $file_info['audio']['dataformat'] == 'mp3')) {
204
  unlink($file);
205
  $activity_content = false;
206
- throw new Exception(__('The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3.', BP_MEDIA_TXT_DOMAIN));
207
  }
208
  } else {
209
  unlink($file);
210
  $activity_content = false;
211
- throw new Exception(__('The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3.', BP_MEDIA_TXT_DOMAIN));
212
  }
213
  } else {
214
  unlink($file);
215
  $activity_content = false;
216
- throw new Exception(__('The MP3 file you have uploaded is not an audio file.', BP_MEDIA_TXT_DOMAIN));
217
  }
218
  $type = 'audio';
219
  break;
@@ -225,14 +225,14 @@ class BPMediaHostWordpress {
225
  default :
226
  unlink($file);
227
  $activity_content = false;
228
- throw new Exception(__('Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3, .mov and .mp4.', BP_MEDIA_TXT_DOMAIN));
229
  }
230
  $attachment_id = wp_insert_attachment($attachment, $file, $post_id);
231
  if (!is_wp_error($attachment_id)) {
232
  wp_update_attachment_metadata($attachment_id, wp_generate_attachment_metadata($attachment_id, $file));
233
  } else {
234
  unlink($file);
235
- throw new Exception(__('Error creating attachment for the media file, please try again', BP_MEDIA_TXT_DOMAIN));
236
  }
237
  $this->id = $attachment_id;
238
  $this->name = $name;
@@ -281,7 +281,7 @@ class BPMediaHostWordpress {
281
  function get_media_activity_content() {
282
  global $bp_media_counter, $bp_media_default_excerpts, $bp_media;
283
  $attachment_id = $this->id;
284
- $activity_content = apply_filters('bp_media_single_activity_title', '<div class="bp_media_title"><a href="' . $this->url . '" title="' . __($this->name, BP_MEDIA_TXT_DOMAIN) . '">' . __(wp_html_excerpt($this->name, $bp_media_default_excerpts['activity_entry_title']), BP_MEDIA_TXT_DOMAIN) . '</a></div>');
285
  $activity_content .='<div class="bp_media_content">';
286
  switch ($this->type) {
287
  case 'video' :
@@ -298,7 +298,7 @@ class BPMediaHostWordpress {
298
  break;
299
  case 'image' :
300
  $image_array = image_downsize($attachment_id, 'bp_media_activity_image');
301
- $activity_content.=apply_filters('bp_media_single_activity_filter', '<a href="' . $this->url . '" title="' . __($this->name, BP_MEDIA_TXT_DOMAIN) . '"><img src="' . $image_array[0] . '" id="bp_media_image_' . $this->id . '_' . $bp_media_counter++ . '" alt="' . __($this->name, BP_MEDIA_TXT_DOMAIN) . '" /></a>', $this, true);
302
  $type = 'image';
303
  break;
304
  default :
@@ -337,7 +337,7 @@ class BPMediaHostWordpress {
337
  global $bp_media;
338
  if (!bp_is_activity_component())
339
  return false;
340
- $activity_action = sprintf(__("%s uploaded a media.", BP_MEDIA_TXT_DOMAIN), bp_core_get_userlink($this->owner));
341
  return $activity_action;
342
  }
343
 
@@ -358,7 +358,7 @@ class BPMediaHostWordpress {
358
  $content = '';
359
  if ($this->group_id > 0) {
360
 
361
- $content .= '<div class="bp_media_author">' . __("Uploaded by ", BP_MEDIA_TXT_DOMAIN) . bp_core_get_userlink($this->owner) . '</div>';
362
  }
363
  $content .= '<div class="bp_media_content">';
364
  switch ($this->type) {
@@ -478,10 +478,10 @@ class BPMediaHostWordpress {
478
  }
479
  ?>
480
  <li id="bp-media-item-<?php echo $this->id ?>">
481
- <a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>">
482
  <img src="<?php echo apply_filters('bp_media_video_thumb', $thumb_url, $attachment, $this->type); ?>" />
483
  </a>
484
- <h3 title="<?php echo $this->name; ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>"><?php echo $this->name; ?></a></h3>
485
  </li>
486
  <?php
487
  break;
@@ -494,10 +494,10 @@ class BPMediaHostWordpress {
494
  }
495
  ?>
496
  <li id="bp-media-item-<?php echo $this->id ?>">
497
- <a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>">
498
  <img src="<?php echo $thumb_url ?>" />
499
  </a>
500
- <h3 title="<?php echo $this->name; ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>"><?php echo $this->name ?></a></h3>
501
  <div class="bp-media-ajax-preloader"></div>
502
  </li>
503
  <?php
@@ -510,7 +510,7 @@ class BPMediaHostWordpress {
510
  <a href="<?php echo $this->url ?>" title="<?php echo $this->description ?>">
511
  <img src="<?php echo $medium_path ?>" />
512
  </a>
513
- <h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>"><?php echo $this->name ?></a></h3>
514
  <div class="bp-media-ajax-preloader"></div>
515
  </li>
516
  <?php
@@ -559,13 +559,13 @@ class BPMediaHostWordpress {
559
  <?php if (is_user_logged_in()) : ?>
560
  <div class="activity-meta no-ajax">
561
  <?php if (bp_activity_can_comment()) : ?>
562
- <a href="<?php bp_get_activity_comment_link(); ?>" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf(__('Comment <span>%s</span>', BP_MEDIA_TXT_DOMAIN), bp_activity_get_comment_count()); ?></a>
563
  <?php endif; ?>
564
  <?php if (bp_activity_can_favorite()) : ?>
565
  <?php if (!bp_get_activity_is_favorite()) : ?>
566
- <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action" title="<?php esc_attr_e('Mark as Favorite', BP_MEDIA_TXT_DOMAIN); ?>"><?php _e('Favorite', BP_MEDIA_TXT_DOMAIN) ?></a>
567
  <?php else : ?>
568
- <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e('Remove Favorite', BP_MEDIA_TXT_DOMAIN); ?>"><?php _e('Remove Favorite', BP_MEDIA_TXT_DOMAIN) ?></a>
569
  <?php endif; ?>
570
  <?php endif; ?>
571
  <?php do_action('bp_activity_entry_meta'); ?>
@@ -584,7 +584,7 @@ class BPMediaHostWordpress {
584
  <div class="ac-textarea">
585
  <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
586
  </div>
587
- <input type="submit" name="ac_form_submit" value="<?php _e('Post', BP_MEDIA_TXT_DOMAIN); ?>" /> &nbsp; <?php _e('or press esc to cancel.', BP_MEDIA_TXT_DOMAIN); ?>
588
  <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
589
  </div>
590
  <?php do_action('bp_activity_entry_comments'); ?>
@@ -609,7 +609,7 @@ class BPMediaHostWordpress {
609
  <?php do_action('bp_activity_entry_content'); ?>
610
  <?php if (is_user_logged_in()) : ?>
611
  <div class="activity-meta no-ajax">
612
- <a href="<?php echo $this->get_delete_url(); ?>" class="button item-button bp-secondary-action delete-activity-single confirm" rel="nofollow"><?php _e("Delete", BP_MEDIA_TXT_DOMAIN); ?></a>
613
  </div>
614
  <?php endif; ?>
615
  </div>
@@ -711,7 +711,7 @@ class BPMediaHostWordpress {
711
  'content' => $this->get_media_activity_content(),
712
  'id' => $activity->id,
713
  'type' => $component,
714
- 'action' => apply_filters('bp_media_added_media', sprintf(__('%1$s added a %2$s', BP_MEDIA_TXT_DOMAIN), bp_core_get_userlink($this->get_author()), '<a href="' . $this->get_url() . '">' . $this->get_media_activity_type() . '</a>')),
715
  'primary_link' => $this->get_url(),
716
  'item_id' => $item_id,
717
  'recorded_time' => $activity->date_recorded,
@@ -981,7 +981,7 @@ class BPMediaHostWordpress {
981
  function check_and_create_album($album_id, $group, $author_id = false, $album_name = false) {
982
  global $wpdb;
983
  if (!$album_name)
984
- $album_name = __('Wall Posts', BP_MEDIA_TXT_DOMAIN);
985
  $create_new_album_flag = false;
986
  if ($album_id != 0) {
987
  $album = get_post($album_id);
56
  $media = &get_post($media_id);
57
  }
58
  if (empty($media->ID))
59
+ throw new Exception(__('Sorry, the requested media does not exist.', 'buddypress-media'));
60
  if (!'bp_media_album' == $media->post_type || !empty($media->post_mime_type))
61
  preg_match_all('/audio|video|image/i', $media->post_mime_type, $result);
62
  else
134
  }
135
 
136
  if (isset($file['error']) || $file === null) {
137
+ throw new Exception(__('Error Uploading File', 'buddypress-media'));
138
  }
139
 
140
  $type = $file['type'];
168
  } catch (Exception $e) {
169
  unlink($file);
170
  $activity_content = false;
171
+ throw new Exception(__('MP4 file you have uploaded is corrupt.', 'buddypress-media'));
172
  }
173
  if (is_array($vid_info)) {
174
  if (!array_key_exists('error', $vid_info) && array_key_exists('fileformat', $vid_info) && array_key_exists('video', $vid_info) && array_key_exists('fourcc', $vid_info['video'])) {
175
  if (!($vid_info['fileformat'] == 'mp4' && $vid_info['video']['fourcc'] == 'avc1')) {
176
  unlink($file);
177
  $activity_content = false;
178
+ throw new Exception(__('The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264.', 'buddypress-media'));
179
  }
180
  } else {
181
  unlink($file);
182
  $activity_content = false;
183
+ throw new Exception(__('The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264.', 'buddypress-media'));
184
  }
185
  } else {
186
  unlink($file);
187
  $activity_content = false;
188
+ throw new Exception(__('The MP4 file you have uploaded is not a video file.', 'buddypress-media'));
189
  }
190
  break;
191
  case 'audio/mpeg' :
196
  } catch (Exception $e) {
197
  unlink($file);
198
  $activity_content = false;
199
+ throw new Exception(__('MP3 file you have uploaded is currupt.', 'buddypress-media'));
200
  }
201
  if (is_array($file_info)) {
202
  if (!array_key_exists('error', $file_info) && array_key_exists('fileformat', $file_info) && array_key_exists('audio', $file_info) && array_key_exists('dataformat', $file_info['audio'])) {
203
  if (!($file_info['fileformat'] == 'mp3' && $file_info['audio']['dataformat'] == 'mp3')) {
204
  unlink($file);
205
  $activity_content = false;
206
+ throw new Exception(__('The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3.', 'buddypress-media'));
207
  }
208
  } else {
209
  unlink($file);
210
  $activity_content = false;
211
+ throw new Exception(__('The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3.', 'buddypress-media'));
212
  }
213
  } else {
214
  unlink($file);
215
  $activity_content = false;
216
+ throw new Exception(__('The MP3 file you have uploaded is not an audio file.', 'buddypress-media'));
217
  }
218
  $type = 'audio';
219
  break;
225
  default :
226
  unlink($file);
227
  $activity_content = false;
228
+ throw new Exception(__('Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3, .mov and .mp4.', 'buddypress-media'));
229
  }
230
  $attachment_id = wp_insert_attachment($attachment, $file, $post_id);
231
  if (!is_wp_error($attachment_id)) {
232
  wp_update_attachment_metadata($attachment_id, wp_generate_attachment_metadata($attachment_id, $file));
233
  } else {
234
  unlink($file);
235
+ throw new Exception(__('Error creating attachment for the media file, please try again', 'buddypress-media'));
236
  }
237
  $this->id = $attachment_id;
238
  $this->name = $name;
281
  function get_media_activity_content() {
282
  global $bp_media_counter, $bp_media_default_excerpts, $bp_media;
283
  $attachment_id = $this->id;
284
+ $activity_content = apply_filters('bp_media_single_activity_title', '<div class="bp_media_title"><a href="' . $this->url . '" title="' . __($this->name, 'buddypress-media') . '">' . __(wp_html_excerpt($this->name, $bp_media_default_excerpts['activity_entry_title']), 'buddypress-media') . '</a></div>');
285
  $activity_content .='<div class="bp_media_content">';
286
  switch ($this->type) {
287
  case 'video' :
298
  break;
299
  case 'image' :
300
  $image_array = image_downsize($attachment_id, 'bp_media_activity_image');
301
+ $activity_content.=apply_filters('bp_media_single_activity_filter', '<a href="' . $this->url . '" title="' . __($this->name, 'buddypress-media') . '"><img src="' . $image_array[0] . '" id="bp_media_image_' . $this->id . '_' . $bp_media_counter++ . '" alt="' . __($this->name, 'buddypress-media') . '" /></a>', $this, true);
302
  $type = 'image';
303
  break;
304
  default :
337
  global $bp_media;
338
  if (!bp_is_activity_component())
339
  return false;
340
+ $activity_action = sprintf(__("%s uploaded a media.", 'buddypress-media'), bp_core_get_userlink($this->owner));
341
  return $activity_action;
342
  }
343
 
358
  $content = '';
359
  if ($this->group_id > 0) {
360
 
361
+ $content .= '<div class="bp_media_author">' . __("Uploaded by ", 'buddypress-media') . bp_core_get_userlink($this->owner) . '</div>';
362
  }
363
  $content .= '<div class="bp_media_content">';
364
  switch ($this->type) {
478
  }
479
  ?>
480
  <li id="bp-media-item-<?php echo $this->id ?>">
481
+ <a href="<?php echo $this->url ?>" title="<?php _e($this->description, 'buddypress-media'); ?>">
482
  <img src="<?php echo apply_filters('bp_media_video_thumb', $thumb_url, $attachment, $this->type); ?>" />
483
  </a>
484
+ <h3 title="<?php echo $this->name; ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, 'buddypress-media'); ?>"><?php echo $this->name; ?></a></h3>
485
  </li>
486
  <?php
487
  break;
494
  }
495
  ?>
496
  <li id="bp-media-item-<?php echo $this->id ?>">
497
+ <a href="<?php echo $this->url ?>" title="<?php _e($this->description, 'buddypress-media'); ?>">
498
  <img src="<?php echo $thumb_url ?>" />
499
  </a>
500
+ <h3 title="<?php echo $this->name; ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, 'buddypress-media'); ?>"><?php echo $this->name ?></a></h3>
501
  <div class="bp-media-ajax-preloader"></div>
502
  </li>
503
  <?php
510
  <a href="<?php echo $this->url ?>" title="<?php echo $this->description ?>">
511
  <img src="<?php echo $medium_path ?>" />
512
  </a>
513
+ <h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, 'buddypress-media'); ?>"><?php echo $this->name ?></a></h3>
514
  <div class="bp-media-ajax-preloader"></div>
515
  </li>
516
  <?php
559
  <?php if (is_user_logged_in()) : ?>
560
  <div class="activity-meta no-ajax">
561
  <?php if (bp_activity_can_comment()) : ?>
562
+ <a href="<?php bp_get_activity_comment_link(); ?>" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf(__('Comment <span>%s</span>', 'buddypress-media'), bp_activity_get_comment_count()); ?></a>
563
  <?php endif; ?>
564
  <?php if (bp_activity_can_favorite()) : ?>
565
  <?php if (!bp_get_activity_is_favorite()) : ?>
566
+ <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action" title="<?php esc_attr_e('Mark as Favorite', 'buddypress-media'); ?>"><?php _e('Favorite', 'buddypress-media') ?></a>
567
  <?php else : ?>
568
+ <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e('Remove Favorite', 'buddypress-media'); ?>"><?php _e('Remove Favorite', 'buddypress-media') ?></a>
569
  <?php endif; ?>
570
  <?php endif; ?>
571
  <?php do_action('bp_activity_entry_meta'); ?>
584
  <div class="ac-textarea">
585
  <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
586
  </div>
587
+ <input type="submit" name="ac_form_submit" value="<?php _e('Post', 'buddypress-media'); ?>" /> &nbsp; <?php _e('or press esc to cancel.', 'buddypress-media'); ?>
588
  <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
589
  </div>
590
  <?php do_action('bp_activity_entry_comments'); ?>
609
  <?php do_action('bp_activity_entry_content'); ?>
610
  <?php if (is_user_logged_in()) : ?>
611
  <div class="activity-meta no-ajax">
612
+ <a href="<?php echo $this->get_delete_url(); ?>" class="button item-button bp-secondary-action delete-activity-single confirm" rel="nofollow"><?php _e("Delete", 'buddypress-media'); ?></a>
613
  </div>
614
  <?php endif; ?>
615
  </div>
711
  'content' => $this->get_media_activity_content(),
712
  'id' => $activity->id,
713
  'type' => $component,
714
+ 'action' => apply_filters('bp_media_added_media', sprintf(__('%1$s added a %2$s', 'buddypress-media'), bp_core_get_userlink($this->get_author()), '<a href="' . $this->get_url() . '">' . $this->get_media_activity_type() . '</a>')),
715
  'primary_link' => $this->get_url(),
716
  'item_id' => $item_id,
717
  'recorded_time' => $activity->date_recorded,
981
  function check_and_create_album($album_id, $group, $author_id = false, $album_name = false) {
982
  global $wpdb;
983
  if (!$album_name)
984
+ $album_name = __('Wall Posts', 'buddypress-media');
985
  $create_new_album_flag = false;
986
  if ($album_id != 0) {
987
  $album = get_post($album_id);
app/main/includes/BPMediaTemplateFunctions.php CHANGED
@@ -31,9 +31,9 @@ class BPMediaTemplateFunctions {
31
  $accept = implode(',', $allowed['accept']);
32
  ?>
33
  <form method="post" enctype="multipart/form-data" class="standard-form" id="bp-media-upload-form">
34
- <label for="bp-media-upload-input-title"><?php _e('Media Title', BP_MEDIA_TXT_DOMAIN); ?></label><input id="bp-media-upload-input-title" type="text" name="bp_media_title" class="settings-input" maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_title'], $bp_media_default_excerpts['activity_entry_title'])) ?>" />
35
- <label for="bp-media-upload-input-description"><?php _e('Media Description', BP_MEDIA_TXT_DOMAIN); ?></label><input id="bp-media-upload-input-description" type="text" name="bp_media_description" class="settings-input" maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_description'], $bp_media_default_excerpts['activity_entry_description'])) ?>" />
36
- <label for="bp-media-upload-file"><?php _e('Select Media File', BP_MEDIA_TXT_DOMAIN) ?> (Max File Size:<?php echo min(array(ini_get('upload_max_filesize'), ini_get('post_max_size'))); ?> , Allowed types: <?php echo implode(', ', $allowed['type']) ?>)</label><input type="file" name="bp_media_file" id="bp-media-upload-file" accept="<?php echo $accept ?>" />
37
  <input type="hidden" name="action" value="wp_handle_upload" />
38
  <div class="submit"><input type="submit" class="auto" value="Upload" /></div>
39
  </form>
@@ -228,7 +228,7 @@ class BPMediaTemplateFunctions {
228
  break;
229
  }
230
  if ($showmore) {
231
- echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">' . __('Show More', BP_MEDIA_TXT_DOMAIN) . '</a></div>';
232
  }
233
  }
234
 
31
  $accept = implode(',', $allowed['accept']);
32
  ?>
33
  <form method="post" enctype="multipart/form-data" class="standard-form" id="bp-media-upload-form">
34
+ <label for="bp-media-upload-input-title"><?php _e('Media Title', 'buddypress-media'); ?></label><input id="bp-media-upload-input-title" type="text" name="bp_media_title" class="settings-input" maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_title'], $bp_media_default_excerpts['activity_entry_title'])) ?>" />
35
+ <label for="bp-media-upload-input-description"><?php _e('Media Description', 'buddypress-media'); ?></label><input id="bp-media-upload-input-description" type="text" name="bp_media_description" class="settings-input" maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_description'], $bp_media_default_excerpts['activity_entry_description'])) ?>" />
36
+ <label for="bp-media-upload-file"><?php _e('Select Media File', 'buddypress-media') ?> (Max File Size:<?php echo min(array(ini_get('upload_max_filesize'), ini_get('post_max_size'))); ?> , Allowed types: <?php echo implode(', ', $allowed['type']) ?>)</label><input type="file" name="bp_media_file" id="bp-media-upload-file" accept="<?php echo $accept ?>" />
37
  <input type="hidden" name="action" value="wp_handle_upload" />
38
  <div class="submit"><input type="submit" class="auto" value="Upload" /></div>
39
  </form>
228
  break;
229
  }
230
  if ($showmore) {
231
+ echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">' . __('Show More', 'buddypress-media') . '</a></div>';
232
  }
233
  }
234
 
app/main/privacy/BPMediaPrivacy.php CHANGED
@@ -110,19 +110,19 @@ class BPMediaPrivacy {
110
  $settings = array(
111
  6 => array(
112
  'private',
113
- __( '<strong>Private</strong>, Visible only to myself', BP_MEDIA_TXT_DOMAIN )
114
  ),
115
  4 => array(
116
  'friends',
117
- __( '<strong>Friends</strong>, Visible to my friends', BP_MEDIA_TXT_DOMAIN )
118
  ),
119
  2 => array(
120
  'users',
121
- __( '<strong>Users</strong>, Visible to registered users', BP_MEDIA_TXT_DOMAIN )
122
  ),
123
  0 => array(
124
  'public',
125
- __( '<strong>Public</strong>, Visible to the world', BP_MEDIA_TXT_DOMAIN )
126
  )
127
  );
128
  if ( ! bp_is_active( 'friends' ) ) {
@@ -142,7 +142,7 @@ class BPMediaPrivacy {
142
  static function ui_html( $privacy_level ) {
143
  ?>
144
  <div id="bp-media-upload-privacy-wrap">
145
- <label for="bp-media-upload-set-privacy"><?php _e( 'Set default privacy levels for your media', BP_MEDIA_TXT_DOMAIN ); ?></label>
146
  <ul id="bp-media-upload-set-privacy">
147
  <?php
148
  $settings = BPMediaPrivacy::get_settings();
@@ -323,9 +323,9 @@ class BPMediaPrivacy {
323
  if ( BPMediaPrivacy::is_enabled() == false )
324
  return;
325
  return array(
326
- 6 => sprintf( __( 'This %s is private', BP_MEDIA_TXT_DOMAIN ), $media_type ),
327
- 4 => sprintf( __( 'This %1s is visible only to %2s&rsquo;s friends', BP_MEDIA_TXT_DOMAIN ), $media_type, $username ),
328
- 2 => sprintf( __( 'This %s is visible to logged in users, only', BP_MEDIA_TXT_DOMAIN ), $media_type ),
329
  );
330
  }
331
 
110
  $settings = array(
111
  6 => array(
112
  'private',
113
+ __( '<strong>Private</strong>, Visible only to myself', 'buddypress-media' )
114
  ),
115
  4 => array(
116
  'friends',
117
+ __( '<strong>Friends</strong>, Visible to my friends', 'buddypress-media' )
118
  ),
119
  2 => array(
120
  'users',
121
+ __( '<strong>Users</strong>, Visible to registered users', 'buddypress-media' )
122
  ),
123
  0 => array(
124
  'public',
125
+ __( '<strong>Public</strong>, Visible to the world', 'buddypress-media' )
126
  )
127
  );
128
  if ( ! bp_is_active( 'friends' ) ) {
142
  static function ui_html( $privacy_level ) {
143
  ?>
144
  <div id="bp-media-upload-privacy-wrap">
145
+ <label for="bp-media-upload-set-privacy"><?php _e( 'Set default privacy levels for your media', 'buddypress-media' ); ?></label>
146
  <ul id="bp-media-upload-set-privacy">
147
  <?php
148
  $settings = BPMediaPrivacy::get_settings();
323
  if ( BPMediaPrivacy::is_enabled() == false )
324
  return;
325
  return array(
326
+ 6 => sprintf( __( 'This %s is private', 'buddypress-media' ), $media_type ),
327
+ 4 => sprintf( __( 'This %1s is visible only to %2s&rsquo;s friends', 'buddypress-media' ), $media_type, $username ),
328
+ 2 => sprintf( __( 'This %s is visible to logged in users, only', 'buddypress-media' ), $media_type ),
329
  );
330
  }
331
 
app/main/privacy/BPMediaPrivacyScreen.php CHANGED
@@ -39,7 +39,7 @@ class BPMediaPrivacyScreen {
39
  BPMediaPrivacy::save_user_default($new_privacy_default);
40
 
41
  ?>
42
- <div id="message" class="updated"><p><?php _e('Default privacy level for your media has been updated',BP_MEDIA_TXT_DOMAIN); ?></p></div>
43
  <?php
44
  }
45
  $privacy_level = BPMediaPrivacy::get_user_default();
@@ -56,7 +56,7 @@ class BPMediaPrivacyScreen {
56
  }
57
 
58
  function screen_title(){
59
- _e( 'Privacy Settings', BP_MEDIA_TXT_DOMAIN );
60
  }
61
 
62
  }
39
  BPMediaPrivacy::save_user_default($new_privacy_default);
40
 
41
  ?>
42
+ <div id="message" class="updated"><p><?php _e('Default privacy level for your media has been updated','buddypress-media'); ?></p></div>
43
  <?php
44
  }
45
  $privacy_level = BPMediaPrivacy::get_user_default();
56
  }
57
 
58
  function screen_title(){
59
+ _e( 'Privacy Settings', 'buddypress-media' );
60
  }
61
 
62
  }
app/main/privacy/BPMediaPrivacySettings.php CHANGED
@@ -25,8 +25,8 @@ class BPMediaPrivacySettings {
25
  $active_class = 'nav-tab nav-tab-active';
26
  $tabs[] = array(
27
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-privacy'), 'admin.php')),
28
- 'title' => __('Update BuddyPress Media Database', BP_MEDIA_TXT_DOMAIN),
29
- 'name' => __('Update Database', BP_MEDIA_TXT_DOMAIN),
30
  'class' => ($tab == 'bp-media-privacy') ? $active_class : $idle_class
31
  );
32
  return $tabs;
@@ -90,7 +90,7 @@ class BPMediaPrivacySettings {
90
  echo '</div>';
91
  }
92
  echo '<button id="rtprivacyinstall" class="button button-primary">';
93
- _e('Start',BP_MEDIA_TXT_DOMAIN);
94
  echo '</button>';
95
  echo '</div>';
96
  }
25
  $active_class = 'nav-tab nav-tab-active';
26
  $tabs[] = array(
27
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-privacy'), 'admin.php')),
28
+ 'title' => __('Update BuddyPress Media Database', 'buddypress-media'),
29
+ 'name' => __('Update Database', 'buddypress-media'),
30
  'class' => ($tab == 'bp-media-privacy') ? $active_class : $idle_class
31
  );
32
  return $tabs;
90
  echo '</div>';
91
  }
92
  echo '<button id="rtprivacyinstall" class="button button-primary">';
93
+ _e('Start','buddypress-media');
94
  echo '</button>';
95
  echo '</div>';
96
  }
app/main/profile/BPMediaAlbum.php CHANGED
@@ -71,7 +71,7 @@ class BPMediaAlbum {
71
  $album = &get_post($album_id);
72
  }
73
  if (empty($album->ID))
74
- throw new Exception(__('Sorry, the requested album does not exist.', BP_MEDIA_TXT_DOMAIN));
75
 
76
  // $required_access = BPMediaPrivacy::required_access($album_id);
77
  // $has_access = BPMediaPrivacy::has_access($album_id);
@@ -233,10 +233,10 @@ class BPMediaAlbum {
233
  */
234
  function get_album_gallery_content() {
235
  ?><li>
236
- <a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>">
237
  <?php echo $this->thumbnail; ?>
238
  </a>
239
- <h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, BP_MEDIA_TXT_DOMAIN); ?>"><?php echo ( ( strlen($this->name) > 14 ) ? substr($this->name, 0, 14) . "&hellip;" : $this->name ); ?> </a><?php echo ' (' . count($this->media_entries) . ')'; ?></h3>
240
  </li><?php
241
  }
242
 
71
  $album = &get_post($album_id);
72
  }
73
  if (empty($album->ID))
74
+ throw new Exception(__('Sorry, the requested album does not exist.', 'buddypress-media'));
75
 
76
  // $required_access = BPMediaPrivacy::required_access($album_id);
77
  // $has_access = BPMediaPrivacy::has_access($album_id);
233
  */
234
  function get_album_gallery_content() {
235
  ?><li>
236
+ <a href="<?php echo $this->url ?>" title="<?php _e($this->description, 'buddypress-media'); ?>">
237
  <?php echo $this->thumbnail; ?>
238
  </a>
239
+ <h3 title="<?php echo $this->name ?>"><a href="<?php echo $this->url ?>" title="<?php _e($this->description, 'buddypress-media'); ?>"><?php echo ( ( strlen($this->name) > 14 ) ? substr($this->name, 0, 14) . "&hellip;" : $this->name ); ?> </a><?php echo ' (' . count($this->media_entries) . ')'; ?></h3>
240
  </li><?php
241
  }
242
 
app/main/profile/BPMediaAlbumScreen.php CHANGED
@@ -81,7 +81,7 @@ class BPMediaAlbumScreen extends BPMediaScreen {
81
  echo '</ul>';
82
  $this->template->show_more('albums');
83
  else:
84
- BPMediaFunction::show_formatted_error_message(sprintf(__('Sorry, no %s were found.', BP_MEDIA_TXT_DOMAIN), $this->slug), 'info');
85
  endif;
86
  $this->hook_after();
87
  }
@@ -136,10 +136,10 @@ class BPMediaAlbumScreen extends BPMediaScreen {
136
 
137
  if ($allowed_edit != false) {
138
  echo '<div class="album-edit">';
139
- echo '<a href="' . $bp_media_current_album->get_edit_url() . '" class="button item-button bp-secondary-action bp-media-edit bp-media-edit-album" title="' . __('Edit Album', BP_MEDIA_TXT_DOMAIN) . '">' . __('Edit', BP_MEDIA_TXT_DOMAIN) . '</a>';
140
  $media_actions = new BPMediaActions();
141
  if ( $media_actions->default_user_album() != $bp_media_current_album->get_id())
142
- echo '<a href="' . $bp_media_current_album->get_delete_url() . '" class="button item-button bp-secondary-action delete-activity-single confirm" rel="nofollow">' . __("Delete", BP_MEDIA_TXT_DOMAIN) . '</a>';
143
  echo '</div>';
144
  }
145
  }
@@ -158,7 +158,7 @@ class BPMediaAlbumScreen extends BPMediaScreen {
158
  echo '</ul>';
159
  $this->template->show_more();
160
  } else {
161
- BPMediaFunction::show_formatted_error_message(__('Sorry, no media items were found in this album.', BP_MEDIA_TXT_DOMAIN), 'info');
162
  if (bp_is_my_profile() || BPMediaGroupLoader::can_upload()) {
163
  echo '<div class="bp-media-area-allocate"></div>';
164
  BPMediaUploadScreen::upload_screen_content();
81
  echo '</ul>';
82
  $this->template->show_more('albums');
83
  else:
84
+ BPMediaFunction::show_formatted_error_message(sprintf(__('Sorry, no %s were found.', 'buddypress-media'), $this->slug), 'info');
85
  endif;
86
  $this->hook_after();
87
  }
136
 
137
  if ($allowed_edit != false) {
138
  echo '<div class="album-edit">';
139
+ echo '<a href="' . $bp_media_current_album->get_edit_url() . '" class="button item-button bp-secondary-action bp-media-edit bp-media-edit-album" title="' . __('Edit Album', 'buddypress-media') . '">' . __('Edit', 'buddypress-media') . '</a>';
140
  $media_actions = new BPMediaActions();
141
  if ( $media_actions->default_user_album() != $bp_media_current_album->get_id())
142
+ echo '<a href="' . $bp_media_current_album->get_delete_url() . '" class="button item-button bp-secondary-action delete-activity-single confirm" rel="nofollow">' . __("Delete", 'buddypress-media') . '</a>';
143
  echo '</div>';
144
  }
145
  }
158
  echo '</ul>';
159
  $this->template->show_more();
160
  } else {
161
+ BPMediaFunction::show_formatted_error_message(__('Sorry, no media items were found in this album.', 'buddypress-media'), 'info');
162
  if (bp_is_my_profile() || BPMediaGroupLoader::can_upload()) {
163
  echo '<div class="bp-media-area-allocate"></div>';
164
  BPMediaUploadScreen::upload_screen_content();
app/main/profile/BPMediaScreen.php CHANGED
@@ -109,7 +109,7 @@ class BPMediaScreen {
109
  * @global type $bp_media
110
  */
111
  public function page_not_exist() {
112
- @setcookie('bp-message', __('The requested url does not exist', BP_MEDIA_TXT_DOMAIN), time() + 60 * 60 * 24, COOKIEPATH);
113
  @setcookie('bp-message-type', 'error', time() + 60 * 60 * 24, COOKIEPATH);
114
  $this->template->redirect($this->media_const);
115
  exit;
@@ -120,7 +120,7 @@ class BPMediaScreen {
120
  * @global type $bp_media
121
  */
122
  function screen_title() {
123
- printf(__('All %s', BP_MEDIA_TXT_DOMAIN), ucfirst($this->slug));
124
  }
125
 
126
  /**
@@ -191,7 +191,7 @@ class BPMediaScreen {
191
  echo '</ul>';
192
  $this->template->show_more();
193
  } else {
194
- BPMediaFunction::show_formatted_error_message(sprintf(__('Sorry, no %s were found.', BP_MEDIA_TXT_DOMAIN), $this->slug), 'info');
195
  if (bp_is_my_profile() || BPMediaGroupLoader::can_upload()) {
196
  echo '<div class="bp-media-area-allocate"></div>';
197
  BPMediaUploadScreen::upload_screen_content();
@@ -302,7 +302,7 @@ class BPMediaScreen {
302
  * @global type $bp_media
303
  */
304
  function edit_screen_title() {
305
- printf(__('Edit %s', BP_MEDIA_TXT_DOMAIN), $this->slug);
306
  }
307
 
308
  /**
@@ -323,22 +323,22 @@ class BPMediaScreen {
323
  ?>
324
  <form method="post" class="standard-form" id="bp-media-upload-form">
325
  <label for="bp-media-upload-input-title">
326
- <?php printf(__('%s Title', BP_MEDIA_TXT_DOMAIN), ucfirst($this->media_type)); ?>
327
  </label>
328
  <input id="bp-media-upload-input-title" type="text" name="bp_media_title" class="settings-input"
329
  maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_title'], $bp_media_default_excerpts['activity_entry_title'])) ?>"
330
  value="<?php echo $bp_media_current_entry->get_title(); ?>" />
331
  <label for="bp-media-upload-input-description">
332
- <?php printf(__('%s Description', BP_MEDIA_TXT_DOMAIN), ucfirst($this->media_type)); ?>
333
  </label>
334
  <textarea id="bp-media-upload-input-description" name="bp_media_description" class="settings-input"
335
  maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_description'], $bp_media_default_excerpts['activity_entry_description'])) ?>"
336
  ><?php echo $bp_media_current_entry->get_content(); ?></textarea>
337
  <?php do_action('bp_media_add_media_fields', $this->media_type); ?>
338
  <div class="submit">
339
- <input type="submit" class="auto" value="<?php _e('Update', BP_MEDIA_TXT_DOMAIN); ?>" />
340
- <a href="<?php echo $bp_media_current_entry->get_url(); ?>" class="button" title="<?php _e('Back to Media File', BP_MEDIA_TXT_DOMAIN); ?>">
341
- <?php _e('Back to Media', BP_MEDIA_TXT_DOMAIN); ?>
342
  </a>
343
  </div>
344
  </form>
@@ -361,14 +361,14 @@ class BPMediaScreen {
361
  global $bp;
362
  if (bp_loggedin_user_id() != bp_displayed_user_id()) {
363
  bp_core_no_access(array(
364
- 'message' => __('You do not have access to this page.', BP_MEDIA_TXT_DOMAIN),
365
  'root' => bp_displayed_user_domain(),
366
  'redirect' => false
367
  ));
368
  exit;
369
  }
370
  if (!isset($bp->action_variables[1])) {
371
- @setcookie('bp-message', __('The requested url does not exist', BP_MEDIA_TXT_DOMAIN), time() + 60 * 60 * 24, COOKIEPATH);
372
  @setcookie('bp-message-type', 'error', time() + 60 * 60 * 24, COOKIEPATH);
373
  $this->template->redirect($this->media_const);
374
  exit;
@@ -390,7 +390,7 @@ class BPMediaScreen {
390
  }
391
  $bp_media_current_entry->delete_media();
392
 
393
- @setcookie('bp-message', __('Media deleted successfully', BP_MEDIA_TXT_DOMAIN), time() + 60 * 60 * 24, COOKIEPATH);
394
  @setcookie('bp-message-type', 'success', time() + 60 * 60 * 24, COOKIEPATH);
395
  $this->template->redirect($this->media_const);
396
  exit;
109
  * @global type $bp_media
110
  */
111
  public function page_not_exist() {
112
+ @setcookie('bp-message', __('The requested url does not exist', 'buddypress-media'), time() + 60 * 60 * 24, COOKIEPATH);
113
  @setcookie('bp-message-type', 'error', time() + 60 * 60 * 24, COOKIEPATH);
114
  $this->template->redirect($this->media_const);
115
  exit;
120
  * @global type $bp_media
121
  */
122
  function screen_title() {
123
+ printf(__('All %s', 'buddypress-media'), ucfirst($this->slug));
124
  }
125
 
126
  /**
191
  echo '</ul>';
192
  $this->template->show_more();
193
  } else {
194
+ BPMediaFunction::show_formatted_error_message(sprintf(__('Sorry, no %s were found.', 'buddypress-media'), $this->slug), 'info');
195
  if (bp_is_my_profile() || BPMediaGroupLoader::can_upload()) {
196
  echo '<div class="bp-media-area-allocate"></div>';
197
  BPMediaUploadScreen::upload_screen_content();
302
  * @global type $bp_media
303
  */
304
  function edit_screen_title() {
305
+ printf(__('Edit %s', 'buddypress-media'), $this->slug);
306
  }
307
 
308
  /**
323
  ?>
324
  <form method="post" class="standard-form" id="bp-media-upload-form">
325
  <label for="bp-media-upload-input-title">
326
+ <?php printf(__('%s Title', 'buddypress-media'), ucfirst($this->media_type)); ?>
327
  </label>
328
  <input id="bp-media-upload-input-title" type="text" name="bp_media_title" class="settings-input"
329
  maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_title'], $bp_media_default_excerpts['activity_entry_title'])) ?>"
330
  value="<?php echo $bp_media_current_entry->get_title(); ?>" />
331
  <label for="bp-media-upload-input-description">
332
+ <?php printf(__('%s Description', 'buddypress-media'), ucfirst($this->media_type)); ?>
333
  </label>
334
  <textarea id="bp-media-upload-input-description" name="bp_media_description" class="settings-input"
335
  maxlength="<?php echo max(array($bp_media_default_excerpts['single_entry_description'], $bp_media_default_excerpts['activity_entry_description'])) ?>"
336
  ><?php echo $bp_media_current_entry->get_content(); ?></textarea>
337
  <?php do_action('bp_media_add_media_fields', $this->media_type); ?>
338
  <div class="submit">
339
+ <input type="submit" class="auto" value="<?php _e('Update', 'buddypress-media'); ?>" />
340
+ <a href="<?php echo $bp_media_current_entry->get_url(); ?>" class="button" title="<?php _e('Back to Media File', 'buddypress-media'); ?>">
341
+ <?php _e('Back to Media', 'buddypress-media'); ?>
342
  </a>
343
  </div>
344
  </form>
361
  global $bp;
362
  if (bp_loggedin_user_id() != bp_displayed_user_id()) {
363
  bp_core_no_access(array(
364
+ 'message' => __('You do not have access to this page.', 'buddypress-media'),
365
  'root' => bp_displayed_user_domain(),
366
  'redirect' => false
367
  ));
368
  exit;
369
  }
370
  if (!isset($bp->action_variables[1])) {
371
+ @setcookie('bp-message', __('The requested url does not exist', 'buddypress-media'), time() + 60 * 60 * 24, COOKIEPATH);
372
  @setcookie('bp-message-type', 'error', time() + 60 * 60 * 24, COOKIEPATH);
373
  $this->template->redirect($this->media_const);
374
  exit;
390
  }
391
  $bp_media_current_entry->delete_media();
392
 
393
+ @setcookie('bp-message', __('Media deleted successfully', 'buddypress-media'), time() + 60 * 60 * 24, COOKIEPATH);
394
  @setcookie('bp-message-type', 'success', time() + 60 * 60 * 24, COOKIEPATH);
395
  $this->template->redirect($this->media_const);
396
  exit;
app/main/profile/BPMediaTemplate.php CHANGED
@@ -26,7 +26,7 @@ class BPMediaTemplate {
26
  } else {
27
  $size_limit = $upload_max_filesize;
28
  }
29
- $post_wall = __('Wall Posts', BP_MEDIA_TXT_DOMAIN);
30
  if ($bp_media_query && $bp_media_query->have_posts()) {
31
  $hidden = ' style="display:none;"';
32
  ?>
@@ -41,7 +41,7 @@ class BPMediaTemplate {
41
  <input type="hidden" id="bp-media-selected-album" value="<?php echo $bp_media_current_album->get_id(); ?>"/>
42
  <?php } else { ?>
43
  <div id="bp-media-album-prompt" title="Album">
44
- <span><?php _e('Select Album: ', BP_MEDIA_TXT_DOMAIN); ?></span>
45
  <span class="bp-media-album-content">
46
  <select id="bp-media-selected-album"><?php
47
  if (bp_is_current_component('groups')) {
@@ -80,22 +80,22 @@ class BPMediaTemplate {
80
  }
81
  echo '<option value="' . $album->get_id() . '" selected="selected">' . $album->get_title() . '</option>';
82
  }
83
- echo '<option id="create-new" value="create_new" >' . __('+ Create New Album', BP_MEDIA_TXT_DOMAIN) . '</option>';
84
  ?>
85
  </select>
86
  </span>
87
  <div class="hide">
88
  <input type="text" id="bp_media_album_new" value="" placeholder="Album Name" /><br/>
89
- <input type="button" class="button" id="btn-create-new" value="<?php _e('Create', BP_MEDIA_TXT_DOMAIN); ?>"/>
90
- <input type="button" class="button" id="btn-create-cancel" value="<?php _e('Cancel', BP_MEDIA_TXT_DOMAIN); ?>"/>
91
  </div>
92
  </div>
93
- <div id="bp-media-album-in"><span><?php _e('&', BP_MEDIA_TXT_DOMAIN); ?></span></div>
94
  <?php } ?>
95
  <div class="drag-drop-inside">
96
- <span class="drag-drop-info"><?php _e('Drop files here', BP_MEDIA_TXT_DOMAIN); ?></span>
97
- <span id="bp-media-album-or"><?php _e(' or ', BP_MEDIA_TXT_DOMAIN); ?></span>
98
- <span class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="<?php _e('Upload Media', BP_MEDIA_TXT_DOMAIN); ?>" class="button" />(<?php _e('Max Upload Size', BP_MEDIA_TXT_DOMAIN);echo ': '.$size_limit; ?>)</span>
99
  </div>
100
  </div>
101
  <div id="bp-media-uploaded-files"></div>
@@ -210,7 +210,7 @@ class BPMediaTemplate {
210
  break;
211
  }
212
  if ($showmore) {
213
- echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">' . __('Show More', BP_MEDIA_TXT_DOMAIN) . '</a></div>';
214
  }
215
  }
216
 
@@ -243,8 +243,8 @@ class BPMediaTemplate {
243
  ?>
244
  <div id="bp-media-album-prompt" title="Select Album">
245
  <div class="bp-media-album-title">
246
- <span><?php _e('Select Album', BP_MEDIA_TXT_DOMAIN); ?></span>
247
- <span id="bp-media-close"><?php _e('x', BP_MEDIA_TXT_DOMAIN); ?></span>
248
  </div>
249
  <div class="bp-media-album-content">
250
  <select id="bp-media-selected-album"><?php
@@ -258,32 +258,32 @@ class BPMediaTemplate {
258
  if ($album->post_title == $post_wall)
259
  echo '<option value="' . $album->ID . '" selected="selected">' . $album->post_title . '</option>';
260
  else
261
- echo '<option value="' . $album->ID . '">' . $album->post_title, BP_MEDIA_TXT_DOMAIN . '</option>';
262
  };
263
  }
264
  ?></select>
265
  </div>
266
  <div class="select-btn-div">
267
- <input id="selected-btn" type="button" class="btn" value="<?php _e('Select', BP_MEDIA_TXT_DOMAIN); ?>" />
268
- <input id="create-btn" type="button" class="btn" value="<?php _e('Create Album', BP_MEDIA_TXT_DOMAIN); ?>" />
269
  <div style="clear: both;"></div>
270
  </div>
271
  </div>
272
  <div id="bp-media-album-new" title="Create New Album">
273
  <div class="bp-media-album-title">
274
- <span><?php _e('Create Album', BP_MEDIA_TXT_DOMAIN); ?></span>
275
- <span id="bp-media-create-album-close"><?php _e('x', BP_MEDIA_TXT_DOMAIN); ?></span>
276
  </div>
277
  <div class="bp-media-album-content">
278
- <label for="bp_media_album_name"><?php _e('Album Name', BP_MEDIA_TXT_DOMAIN); ?></label>
279
  <input id="bp_media_album_name" type="text" name="bp_media_album_name" />
280
  </div>
281
  <div class="select-btn-div">
282
- <input id="create-album" type="button" class="btn" value="<?php _e('Create', BP_MEDIA_TXT_DOMAIN); ?>" />
283
  </div>
284
  </div>
285
  <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop activity-component">
286
- <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="<?php _e('Add Media', BP_MEDIA_TXT_DOMAIN); ?>" class="button" /></p>
287
  <div id="bp-media-uploaded-files"></div>
288
  </div>
289
  <?php
26
  } else {
27
  $size_limit = $upload_max_filesize;
28
  }
29
+ $post_wall = __('Wall Posts', 'buddypress-media');
30
  if ($bp_media_query && $bp_media_query->have_posts()) {
31
  $hidden = ' style="display:none;"';
32
  ?>
41
  <input type="hidden" id="bp-media-selected-album" value="<?php echo $bp_media_current_album->get_id(); ?>"/>
42
  <?php } else { ?>
43
  <div id="bp-media-album-prompt" title="Album">
44
+ <span><?php _e('Select Album: ', 'buddypress-media'); ?></span>
45
  <span class="bp-media-album-content">
46
  <select id="bp-media-selected-album"><?php
47
  if (bp_is_current_component('groups')) {
80
  }
81
  echo '<option value="' . $album->get_id() . '" selected="selected">' . $album->get_title() . '</option>';
82
  }
83
+ echo '<option id="create-new" value="create_new" >' . __('+ Create New Album', 'buddypress-media') . '</option>';
84
  ?>
85
  </select>
86
  </span>
87
  <div class="hide">
88
  <input type="text" id="bp_media_album_new" value="" placeholder="Album Name" /><br/>
89
+ <input type="button" class="button" id="btn-create-new" value="<?php _e('Create', 'buddypress-media'); ?>"/>
90
+ <input type="button" class="button" id="btn-create-cancel" value="<?php _e('Cancel', 'buddypress-media'); ?>"/>
91
  </div>
92
  </div>
93
+ <div id="bp-media-album-in"><span><?php _e('&', 'buddypress-media'); ?></span></div>
94
  <?php } ?>
95
  <div class="drag-drop-inside">
96
+ <span class="drag-drop-info"><?php _e('Drop files here', 'buddypress-media'); ?></span>
97
+ <span id="bp-media-album-or"><?php _e(' or ', 'buddypress-media'); ?></span>
98
+ <span class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="<?php _e('Upload Media', 'buddypress-media'); ?>" class="button" />(<?php _e('Max Upload Size', 'buddypress-media');echo ': '.$size_limit; ?>)</span>
99
  </div>
100
  </div>
101
  <div id="bp-media-uploaded-files"></div>
210
  break;
211
  }
212
  if ($showmore) {
213
+ echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">' . __('Show More', 'buddypress-media') . '</a></div>';
214
  }
215
  }
216
 
243
  ?>
244
  <div id="bp-media-album-prompt" title="Select Album">
245
  <div class="bp-media-album-title">
246
+ <span><?php _e('Select Album', 'buddypress-media'); ?></span>
247
+ <span id="bp-media-close"><?php _e('x', 'buddypress-media'); ?></span>
248
  </div>
249
  <div class="bp-media-album-content">
250
  <select id="bp-media-selected-album"><?php
258
  if ($album->post_title == $post_wall)
259
  echo '<option value="' . $album->ID . '" selected="selected">' . $album->post_title . '</option>';
260
  else
261
+ echo '<option value="' . $album->ID . '">' . $album->post_title, 'buddypress-media' . '</option>';
262
  };
263
  }
264
  ?></select>
265
  </div>
266
  <div class="select-btn-div">
267
+ <input id="selected-btn" type="button" class="btn" value="<?php _e('Select', 'buddypress-media'); ?>" />
268
+ <input id="create-btn" type="button" class="btn" value="<?php _e('Create Album', 'buddypress-media'); ?>" />
269
  <div style="clear: both;"></div>
270
  </div>
271
  </div>
272
  <div id="bp-media-album-new" title="Create New Album">
273
  <div class="bp-media-album-title">
274
+ <span><?php _e('Create Album', 'buddypress-media'); ?></span>
275
+ <span id="bp-media-create-album-close"><?php _e('x', 'buddypress-media'); ?></span>
276
  </div>
277
  <div class="bp-media-album-content">
278
+ <label for="bp_media_album_name"><?php _e('Album Name', 'buddypress-media'); ?></label>
279
  <input id="bp_media_album_name" type="text" name="bp_media_album_name" />
280
  </div>
281
  <div class="select-btn-div">
282
+ <input id="create-album" type="button" class="btn" value="<?php _e('Create', 'buddypress-media'); ?>" />
283
  </div>
284
  </div>
285
  <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop activity-component">
286
+ <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="<?php _e('Add Media', 'buddypress-media'); ?>" class="button" /></p>
287
  <div id="bp-media-uploaded-files"></div>
288
  </div>
289
  <?php
app/main/profile/BPMediaUploadScreen.php CHANGED
@@ -30,7 +30,7 @@ class BPMediaUploadScreen extends BPMediaScreen {
30
  }
31
 
32
  function upload_screen_title() {
33
- _e('Upload Media', BP_MEDIA_TXT_DOMAIN);
34
  }
35
 
36
  function upload_screen_content() {
@@ -72,7 +72,7 @@ class BPMediaUploadScreen extends BPMediaScreen {
72
 
73
  // Check for rights
74
  if (!is_user_logged_in())
75
- wp_die(__("You are not allowed to be here", BP_MEDIA_TXT_DOMAIN));
76
  }
77
 
78
  /**
@@ -106,24 +106,24 @@ class BPMediaUploadScreen extends BPMediaScreen {
106
  switch ($result[0]) {
107
  case 'image' :
108
  if ($bp_media_options['images_enabled'] == false) {
109
- $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('Image uploads are disabled', BP_MEDIA_TXT_DOMAIN);
110
  return;
111
  }
112
  break;
113
  case 'video' :
114
  if ($bp_media_options['videos_enabled'] == false) {
115
- $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('Video uploads are disabled', BP_MEDIA_TXT_DOMAIN);
116
  return;
117
  }
118
  break;
119
  case 'audio' :
120
  if ($bp_media_options['audio_enabled'] == false) {
121
- $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('Audio uploads are disabled', BP_MEDIA_TXT_DOMAIN);
122
  return;
123
  }
124
  break;
125
  default :
126
- $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('File uploaded is not supported', BP_MEDIA_TXT_DOMAIN);
127
  return;
128
  }
129
  $class_name = apply_filters('bp_media_transcoder', 'BPMediaHostWordpress', $type);
@@ -136,12 +136,12 @@ class BPMediaUploadScreen extends BPMediaScreen {
136
  $group_id = isset($_POST['bp_media_group_id']) ? intval($_POST['bp_media_group_id']) : 0;
137
  $entry = $bp_media_entry->add_media($title, $description, $album_id, $group_id, $is_multiple);
138
  if (!isset($bp->{BP_MEDIA_SLUG}->messages['updated'][0]))
139
- $bp->{BP_MEDIA_SLUG}->messages['updated'][0] = __('Upload Successful', BP_MEDIA_TXT_DOMAIN);
140
  } catch (Exception $e) {
141
  $bp->{BP_MEDIA_SLUG}->messages['error'][] = $e->getMessage();
142
  }
143
  } else {
144
- $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('You did not specified a file to upload', BP_MEDIA_TXT_DOMAIN);
145
  }
146
  }
147
  }
30
  }
31
 
32
  function upload_screen_title() {
33
+ _e('Upload Media', 'buddypress-media');
34
  }
35
 
36
  function upload_screen_content() {
72
 
73
  // Check for rights
74
  if (!is_user_logged_in())
75
+ wp_die(__("You are not allowed to be here", 'buddypress-media'));
76
  }
77
 
78
  /**
106
  switch ($result[0]) {
107
  case 'image' :
108
  if ($bp_media_options['images_enabled'] == false) {
109
+ $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('Image uploads are disabled', 'buddypress-media');
110
  return;
111
  }
112
  break;
113
  case 'video' :
114
  if ($bp_media_options['videos_enabled'] == false) {
115
+ $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('Video uploads are disabled', 'buddypress-media');
116
  return;
117
  }
118
  break;
119
  case 'audio' :
120
  if ($bp_media_options['audio_enabled'] == false) {
121
+ $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('Audio uploads are disabled', 'buddypress-media');
122
  return;
123
  }
124
  break;
125
  default :
126
+ $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('File uploaded is not supported', 'buddypress-media');
127
  return;
128
  }
129
  $class_name = apply_filters('bp_media_transcoder', 'BPMediaHostWordpress', $type);
136
  $group_id = isset($_POST['bp_media_group_id']) ? intval($_POST['bp_media_group_id']) : 0;
137
  $entry = $bp_media_entry->add_media($title, $description, $album_id, $group_id, $is_multiple);
138
  if (!isset($bp->{BP_MEDIA_SLUG}->messages['updated'][0]))
139
+ $bp->{BP_MEDIA_SLUG}->messages['updated'][0] = __('Upload Successful', 'buddypress-media');
140
  } catch (Exception $e) {
141
  $bp->{BP_MEDIA_SLUG}->messages['error'][] = $e->getMessage();
142
  }
143
  } else {
144
+ $bp->{BP_MEDIA_SLUG}->messages['error'][] = __('You did not specified a file to upload', 'buddypress-media');
145
  }
146
  }
147
  }
app/main/widgets/BPMediaWidget.php CHANGED
@@ -17,8 +17,8 @@ if ( ! class_exists( 'BPMediaWidget' ) ) {
17
  * Constructs the BPMedia Widget as a child of WP_Widget
18
  */
19
  function __construct() {
20
- $widget_ops = array( 'classname' => 'buddypress-media-widget', 'description' => __( "The most recent/popular media uploaded on your site", BP_MEDIA_TXT_DOMAIN ) );
21
- parent::__construct( 'buddypress-media-wid', __( 'BuddyPress Media Widget', BP_MEDIA_TXT_DOMAIN ), $widget_ops );
22
  }
23
 
24
  /**
@@ -30,7 +30,7 @@ if ( ! class_exists( 'BPMediaWidget' ) ) {
30
  function widget( $args, $instance ) {
31
  extract( $args );
32
  echo $before_widget;
33
- $title = apply_filters( 'widget_title', empty( $instance[ 'title' ] ) ? __( 'BuddyPress Media', BP_MEDIA_TXT_DOMAIN ) : $instance[ 'title' ], $instance, $this->id_base );
34
  $allow = array( );
35
  $allowed = array( );
36
  if ( empty( $instance[ 'number' ] ) || ! $number = absint( $instance[ 'number' ] ) ) {
@@ -69,10 +69,10 @@ if ( ! class_exists( 'BPMediaWidget' ) ) {
69
  }
70
 
71
  $strings = array(
72
- 'all' => __( 'All', BP_MEDIA_TXT_DOMAIN ),
73
- 'audio' => __( 'Music', BP_MEDIA_TXT_DOMAIN ),
74
- 'video' => __( 'Videos', BP_MEDIA_TXT_DOMAIN ),
75
- 'image' => __( 'Photos', BP_MEDIA_TXT_DOMAIN )
76
  );
77
  $widgetid = $args[ 'widget_id' ];
78
  if ( ! is_array( $allowed ) || count( $allowed ) < 1 ) {
@@ -147,7 +147,7 @@ if ( ! class_exists( 'BPMediaWidget' ) ) {
147
  if ( $type === 'all' ) {
148
  $media_string = 'media';
149
  }
150
- _e( 'No ' . $wdType . ' ' . $media_string . ' found', BP_MEDIA_TXT_DOMAIN );
151
  }
152
  wp_reset_query();
153
  ?>
@@ -194,30 +194,30 @@ if ( ! class_exists( 'BPMediaWidget' ) ) {
194
  $allowImage = isset( $instance[ 'allow_image' ] ) ? (bool) $instance[ 'allow_image' ] : true;
195
  $allowAll = isset( $instance[ 'allow_all' ] ) ? (bool) $instance[ 'allow_all' ] : true;
196
  ?>
197
- <p><label for="<?php echo $this->get_field_id( 'wdType' ); ?>"><?php _e( 'Widget Type:', BP_MEDIA_TXT_DOMAIN ); ?></label>
198
  <select class="widefat" id="<?php echo $this->get_field_id( 'wdType' ); ?>" name="<?php echo $this->get_field_name( 'wdType' ); ?>">
199
- <option value="recent" <?php if ( $wdType == "recent" ) echo 'selected="selected"'; ?>><?php _e( 'Recent Media', BP_MEDIA_TXT_DOMAIN ); ?></option>
200
- <option value="popular" <?php if ( $wdType == "popular" ) echo 'selected="selected"'; ?>><?php _e( 'Popular Media', BP_MEDIA_TXT_DOMAIN ); ?></option>
201
  </select>
202
  </p>
203
- <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', BP_MEDIA_TXT_DOMAIN ); ?></label>
204
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></p>
205
 
206
- <p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of posts to show:', BP_MEDIA_TXT_DOMAIN ); ?></label>
207
  <input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
208
 
209
  <p>
210
- <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_all' ); ?>" id="<?php echo $this->get_field_id( 'allow_all' ); ?>" <?php checked( $allowAll ); ?> /><label for="<?php echo $this->get_field_id( 'allow_all' ); ?>"><?php _e( 'Show All', BP_MEDIA_TXT_DOMAIN ); ?></label>
211
  </p>
212
  <p>
213
- <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_image' ); ?>" id="<?php echo $this->get_field_id( 'allow_image' ); ?>" <?php checked( $allowImage ); ?> /><label for="<?php echo $this->get_field_id( 'allow_image' ); ?>"><?php _e( 'Show Photos', BP_MEDIA_TXT_DOMAIN ); ?></label>
214
  </p>
215
  <p>
216
- <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_audio' ); ?>" id="<?php echo $this->get_field_id( 'allow_audio' ); ?>" <?php checked( $allowAudio ); ?> /> <label for="<?php echo $this->get_field_id( 'allow_audio' ); ?>"><?php _e( 'Show Music', BP_MEDIA_TXT_DOMAIN ); ?></label>
217
  </p>
218
  <p>
219
  <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_video' ); ?>" id="<?php echo $this->get_field_id( 'allow_video' ); ?>" <?php checked( $allowVideo ); ?> />
220
- <label for="<?php echo $this->get_field_id( 'allow_video' ); ?>"><?php _e( 'Show Videos', BP_MEDIA_TXT_DOMAIN ); ?></label>
221
  </p>
222
 
223
  <?php
17
  * Constructs the BPMedia Widget as a child of WP_Widget
18
  */
19
  function __construct() {
20
+ $widget_ops = array( 'classname' => 'buddypress-media-widget', 'description' => __( "The most recent/popular media uploaded on your site", 'buddypress-media' ) );
21
+ parent::__construct( 'buddypress-media-wid', __( 'BuddyPress Media Widget', 'buddypress-media' ), $widget_ops );
22
  }
23
 
24
  /**
30
  function widget( $args, $instance ) {
31
  extract( $args );
32
  echo $before_widget;
33
+ $title = apply_filters( 'widget_title', empty( $instance[ 'title' ] ) ? __( 'BuddyPress Media', 'buddypress-media' ) : $instance[ 'title' ], $instance, $this->id_base );
34
  $allow = array( );
35
  $allowed = array( );
36
  if ( empty( $instance[ 'number' ] ) || ! $number = absint( $instance[ 'number' ] ) ) {
69
  }
70
 
71
  $strings = array(
72
+ 'all' => __( 'All', 'buddypress-media' ),
73
+ 'audio' => __( 'Music', 'buddypress-media' ),
74
+ 'video' => __( 'Videos', 'buddypress-media' ),
75
+ 'image' => __( 'Photos', 'buddypress-media' )
76
  );
77
  $widgetid = $args[ 'widget_id' ];
78
  if ( ! is_array( $allowed ) || count( $allowed ) < 1 ) {
147
  if ( $type === 'all' ) {
148
  $media_string = 'media';
149
  }
150
+ _e( 'No ' . $wdType . ' ' . $media_string . ' found', 'buddypress-media' );
151
  }
152
  wp_reset_query();
153
  ?>
194
  $allowImage = isset( $instance[ 'allow_image' ] ) ? (bool) $instance[ 'allow_image' ] : true;
195
  $allowAll = isset( $instance[ 'allow_all' ] ) ? (bool) $instance[ 'allow_all' ] : true;
196
  ?>
197
+ <p><label for="<?php echo $this->get_field_id( 'wdType' ); ?>"><?php _e( 'Widget Type:', 'buddypress-media' ); ?></label>
198
  <select class="widefat" id="<?php echo $this->get_field_id( 'wdType' ); ?>" name="<?php echo $this->get_field_name( 'wdType' ); ?>">
199
+ <option value="recent" <?php if ( $wdType == "recent" ) echo 'selected="selected"'; ?>><?php _e( 'Recent Media', 'buddypress-media' ); ?></option>
200
+ <option value="popular" <?php if ( $wdType == "popular" ) echo 'selected="selected"'; ?>><?php _e( 'Popular Media', 'buddypress-media' ); ?></option>
201
  </select>
202
  </p>
203
+ <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'buddypress-media' ); ?></label>
204
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></p>
205
 
206
+ <p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of posts to show:', 'buddypress-media' ); ?></label>
207
  <input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
208
 
209
  <p>
210
+ <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_all' ); ?>" id="<?php echo $this->get_field_id( 'allow_all' ); ?>" <?php checked( $allowAll ); ?> /><label for="<?php echo $this->get_field_id( 'allow_all' ); ?>"><?php _e( 'Show All', 'buddypress-media' ); ?></label>
211
  </p>
212
  <p>
213
+ <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_image' ); ?>" id="<?php echo $this->get_field_id( 'allow_image' ); ?>" <?php checked( $allowImage ); ?> /><label for="<?php echo $this->get_field_id( 'allow_image' ); ?>"><?php _e( 'Show Photos', 'buddypress-media' ); ?></label>
214
  </p>
215
  <p>
216
+ <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_audio' ); ?>" id="<?php echo $this->get_field_id( 'allow_audio' ); ?>" <?php checked( $allowAudio ); ?> /> <label for="<?php echo $this->get_field_id( 'allow_audio' ); ?>"><?php _e( 'Show Music', 'buddypress-media' ); ?></label>
217
  </p>
218
  <p>
219
  <input role="checkbox" type="checkbox" name="<?php echo $this->get_field_name( 'allow_video' ); ?>" id="<?php echo $this->get_field_id( 'allow_video' ); ?>" <?php checked( $allowVideo ); ?> />
220
+ <label for="<?php echo $this->get_field_id( 'allow_video' ); ?>"><?php _e( 'Show Videos', 'buddypress-media' ); ?></label>
221
  </p>
222
 
223
  <?php
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: BuddyPress Media
4
  Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
- Version: 2.8
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
3
  Plugin Name: BuddyPress Media
4
  Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
+ Version: 2.8.1
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
languages/buddypress-media-de_DE.mo CHANGED
Binary file
languages/buddypress-media-es_ES.mo CHANGED
Binary file
languages/buddypress-media-fr_FR.mo CHANGED
Binary file
languages/buddypress-media-it_IT.mo CHANGED
Binary file
languages/buddypress-media-nl_NL.mo CHANGED
Binary file
languages/buddypress-media-pl_PL.mo CHANGED
Binary file
languages/buddypress-media-pt_BR.mo CHANGED
Binary file
languages/buddypress-media-sr_SR.mo CHANGED
Binary file
languages/buddypress-media.mo CHANGED
Binary file
languages/buddypress-media.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: BuddyPress Media\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-03-20 14:45+0530\n"
6
- "PO-Revision-Date: 2013-03-20 14:45+0530\n"
7
- "Last-Translator: Saurabh Shukla <saurabh.shukla@rtcamp.com>\n"
8
  "Language-Team: rtCamp <info@rtcamp.com>\n"
9
  "Language: \n"
10
  "MIME-Version: 1.0\n"
@@ -16,6 +16,163 @@ msgstr ""
16
  "X-Poedit-Country: India\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  #: app/helper/BPMediaFeed.php:43
20
  msgid "No items"
21
  msgstr ""
@@ -24,11 +181,16 @@ msgstr ""
24
  msgid "Posted "
25
  msgstr ""
26
 
 
 
 
 
27
  #: app/helper/BPMediaSettings.php:33
28
  msgid "Enabled Media Types"
29
  msgstr ""
30
 
31
  #: app/helper/BPMediaSettings.php:34
 
32
  msgid "Photos"
33
  msgstr ""
34
 
@@ -37,11 +199,12 @@ msgid "Enable Photos"
37
  msgstr ""
38
 
39
  #: app/helper/BPMediaSettings.php:39
 
40
  msgid "Video"
41
  msgstr ""
42
 
43
  #: app/helper/BPMediaSettings.php:42
44
- msgid "Enable Video"
45
  msgstr ""
46
 
47
  #: app/helper/BPMediaSettings.php:44
@@ -49,7 +212,7 @@ msgid "Audio"
49
  msgstr ""
50
 
51
  #: app/helper/BPMediaSettings.php:47
52
- msgid "Enable Audio"
53
  msgstr ""
54
 
55
  #: app/helper/BPMediaSettings.php:50
@@ -64,512 +227,540 @@ msgstr ""
64
  msgid "Enable Activity Uploading"
65
  msgstr ""
66
 
 
 
 
 
67
  #: app/helper/BPMediaSettings.php:60
 
 
 
 
 
 
 
 
68
  msgid "Groups Integration"
69
  msgstr ""
70
 
71
- #: app/helper/BPMediaSettings.php:67
72
  msgid "Groups"
73
  msgstr ""
74
 
75
- #: app/helper/BPMediaSettings.php:70
76
  msgid "Allow Media in Groups"
77
  msgstr ""
78
 
79
- #: app/helper/BPMediaSettings.php:77
80
  msgid "Display Settings"
81
  msgstr ""
82
 
83
- #: app/helper/BPMediaSettings.php:78
84
  msgid "Number of media"
85
  msgstr ""
86
 
87
- #: app/helper/BPMediaSettings.php:83
88
  msgid "Download Button"
89
  msgstr ""
90
 
91
- #: app/helper/BPMediaSettings.php:86
92
  msgid "Display download button under media"
93
  msgstr ""
94
 
95
- #: app/helper/BPMediaSettings.php:90
 
96
  msgid "Privacy Settings"
97
  msgstr ""
98
 
99
- #: app/helper/BPMediaSettings.php:91
100
  msgid "Enable Privacy"
101
  msgstr ""
102
 
103
- #: app/helper/BPMediaSettings.php:94
104
  msgid "Enable privacy"
105
  msgstr ""
106
 
107
- #: app/helper/BPMediaSettings.php:98
108
  msgid "<strong>Private</strong> - Visible only to the user"
109
  msgstr ""
110
 
111
- #: app/helper/BPMediaSettings.php:99
112
  msgid "<strong>Friends</strong> - Visible to user's friends"
113
  msgstr ""
114
 
115
- #: app/helper/BPMediaSettings.php:100
116
  msgid "<strong>Users</strong> - Visible to registered users"
117
  msgstr ""
118
 
119
- #: app/helper/BPMediaSettings.php:101
120
  msgid "<strong>Public</strong> - Visible to the world"
121
  msgstr ""
122
 
123
- #: app/helper/BPMediaSettings.php:106
124
  msgid "Default Privacy"
125
  msgstr ""
126
 
127
- #: app/helper/BPMediaSettings.php:112
128
  msgid "User Override"
129
  msgstr ""
130
 
131
- #: app/helper/BPMediaSettings.php:115
132
  msgid "Allow users to override admin defaults (<em>Recommended</em>)"
133
  msgstr ""
134
 
135
- #: app/helper/BPMediaSettings.php:118
136
  msgid "Other Settings"
137
  msgstr ""
138
 
139
- #: app/helper/BPMediaSettings.php:120
140
  msgid "Admin bar menu"
141
  msgstr ""
142
 
143
- #: app/helper/BPMediaSettings.php:123
144
  msgid "Enable menu in WordPress admin bar"
145
  msgstr ""
146
 
147
- #: app/helper/BPMediaSettings.php:126
148
- #: app/helper/BPMediaSettings.php:128
149
  msgid "Recount"
150
  msgstr ""
151
 
152
- #: app/helper/BPMediaSettings.php:129
153
  msgid "Repair media counts"
154
  msgstr ""
155
 
156
- #: app/helper/BPMediaSettings.php:133
157
  msgid "BuddyPress Media Addons for Audio/Video Conversion"
158
  msgstr ""
159
 
160
- #: app/helper/BPMediaSettings.php:134
161
  msgid "Submit a request form"
162
  msgstr ""
163
 
164
- #: app/helper/BPMediaSettings.php:135
165
  msgid "Request Type"
166
  msgstr ""
167
 
168
- #: app/helper/BPMediaSettings.php:136
169
  msgid "Select One"
170
  msgstr ""
171
 
172
- #: app/helper/BPMediaSettings.php:137
173
  msgid "Premium Support"
174
  msgstr ""
175
 
176
- #: app/helper/BPMediaSettings.php:138
177
  msgid "Suggest a New Feature"
178
  msgstr ""
179
 
180
- #: app/helper/BPMediaSettings.php:139
181
- msgid "Submit a Bug Report"
 
 
 
182
  msgstr ""
183
 
184
- #: app/helper/BPMediaSettings.php:144
185
- #: app/helper/BPMediaSettings.php:502
186
- msgid "Update Database"
187
  msgstr ""
188
 
189
- #: app/helper/BPMediaSettings.php:229
190
- #: app/helper/BPMediaSettings.php:231
191
  msgid "Recounting of media files done successfully"
192
  msgstr ""
193
 
194
- #: app/helper/BPMediaSettings.php:231
195
  msgid "Recount Success"
196
  msgstr ""
197
 
198
- #: app/helper/BPMediaSettings.php:234
199
- #: app/helper/BPMediaSettings.php:236
200
  msgid "Recounting Failed"
201
  msgstr ""
202
 
203
- #: app/helper/BPMediaSettings.php:236
204
  msgid "Recount Fail"
205
  msgstr ""
206
 
207
- #: app/helper/BPMediaSettings.php:248
208
- #: app/helper/BPMediaSettings.php:250
209
  msgid "Atleast one Media Type Must be selected"
210
  msgstr ""
211
 
212
- #: app/helper/BPMediaSettings.php:250
213
  msgid "Media Type"
214
  msgstr ""
215
 
216
- #: app/helper/BPMediaSettings.php:257
217
- #: app/helper/BPMediaSettings.php:259
218
  msgid "\"Number of media\" count value should be numeric and greater than 0."
219
  msgstr ""
220
 
221
- #: app/helper/BPMediaSettings.php:259
222
  msgid "Default Count"
223
  msgstr ""
224
 
225
- #: app/helper/BPMediaSettings.php:263
226
  msgid "Settings saved."
227
  msgstr ""
228
 
229
- #: app/helper/BPMediaSettings.php:292
230
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' ) "
231
  msgstr ""
232
 
233
- #: app/helper/BPMediaSettings.php:337
234
- #: app/helper/BPMediaSettings.php:386
235
- #: app/helper/BPMediaSettings.php:430
236
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' )"
237
  msgstr ""
238
 
239
- #: app/helper/BPMediaSettings.php:339
240
  msgid "Need to specify atleast to radios else use a checkbox instead"
241
  msgstr ""
242
 
243
- #: app/helper/BPMediaSettings.php:432
244
  msgid "Please provide some values to populate the dropdown. Format : array( 'value' => 'option' )"
245
  msgstr ""
246
 
247
- #: app/helper/BPMediaSettings.php:447
248
  msgid "None"
249
  msgstr ""
250
 
251
- #: app/helper/BPMediaSettings.php:501
252
  msgid "BuddyPress Media 2.6 requires a database upgrade. "
253
  msgstr ""
254
 
255
- #: app/helper/BPMediaAdminWidget.php:29
256
- msgid "Argument missing. id is required."
257
  msgstr ""
258
 
259
- #: app/helper/BPMediaSupport.php:50
260
- msgid "Debug info"
 
 
261
  msgstr ""
262
 
263
- #: app/helper/BPMediaSupport.php:84
264
- msgid "Submit a New Feature Request"
 
265
  msgstr ""
266
 
267
- #: app/helper/BPMediaSupport.php:87
268
- msgid "Submit a Premium Support Request"
 
 
269
  msgstr ""
270
 
271
- #: app/helper/BPMediaSupport.php:95
272
- msgid "Name"
273
  msgstr ""
274
 
275
- #: app/helper/BPMediaSupport.php:98
276
- msgid "Email"
 
 
277
  msgstr ""
278
 
279
- #: app/helper/BPMediaSupport.php:101
280
- msgid "Website"
 
281
  msgstr ""
282
 
283
- #: app/helper/BPMediaSupport.php:104
284
- msgid "Phone"
 
285
  msgstr ""
286
 
287
- #: app/helper/BPMediaSupport.php:107
288
- msgid "Subject"
 
289
  msgstr ""
290
 
291
- #: app/helper/BPMediaSupport.php:110
292
- msgid "Details"
293
  msgstr ""
294
 
295
- #: app/helper/BPMediaSupport.php:121
296
- msgid "Additional Information"
297
  msgstr ""
298
 
299
- #: app/helper/BPMediaSupport.php:126
300
- msgid "Your WP Admin Login:"
 
301
  msgstr ""
302
 
303
- #: app/helper/BPMediaSupport.php:129
304
- msgid "Your WP Admin password:"
 
 
 
 
 
 
305
  msgstr ""
306
 
307
- #: app/helper/BPMediaSupport.php:132
308
- msgid "Your SSH / FTP host:"
309
  msgstr ""
310
 
311
- #: app/helper/BPMediaSupport.php:135
312
- msgid "Your SSH / FTP login:"
313
  msgstr ""
314
 
315
- #: app/helper/BPMediaSupport.php:138
316
- msgid "Your SSH / FTP password:"
317
  msgstr ""
318
 
319
- #: app/helper/BPMediaSupport.php:161
320
- msgid "BuddyPress Media Premium Support Request from"
321
  msgstr ""
322
 
323
- #: app/helper/BPMediaSupport.php:164
324
- msgid "BuddyPress Media New Feature Request from"
 
325
  msgstr ""
326
 
327
- #: app/helper/BPMediaSupport.php:167
328
- msgid "BuddyPress Media Bug Report from"
329
  msgstr ""
330
 
331
- #: app/helper/BPMediaSupport.php:170
332
- msgid "BuddyPress Media Contact from"
333
  msgstr ""
334
 
335
- #: app/helper/BPMediaSupport.php:231
336
- msgid "Debug Info"
337
  msgstr ""
338
 
339
- #: app/helper/BPMediaSupport.php:246
340
- msgid "Thank you for your Feedback/Suggestion."
341
  msgstr ""
342
 
343
- #: app/helper/BPMediaSupport.php:248
344
- msgid "Thank you for posting your support request."
345
  msgstr ""
346
 
347
- #: app/helper/BPMediaSupport.php:249
348
- msgid "We will get back to you shortly."
349
  msgstr ""
350
 
351
- #: app/helper/BPMediaSupport.php:252
352
- msgid "Your server failed to send an email."
353
  msgstr ""
354
 
355
- #: app/helper/BPMediaSupport.php:253
356
- msgid "Kindly contact your server support to fix this."
357
  msgstr ""
358
 
359
- #: app/helper/BPMediaSupport.php:254
360
- #, php-format
361
- msgid "You can alternatively create a support request <a href=\"%s\">here</a>"
362
  msgstr ""
363
 
364
- #: app/helper/BPMediaAddon.php:29
365
- msgid "BuddyPress-Media Kaltura Add-on"
366
  msgstr ""
367
 
368
- #: app/helper/BPMediaAddon.php:32
369
- msgid "Add support for more video formats using Kaltura video solution."
370
  msgstr ""
371
 
372
- #: app/helper/BPMediaAddon.php:33
373
- msgid "Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise."
374
  msgstr ""
375
 
376
- #: app/helper/BPMediaAddon.php:39
377
- msgid "BuddyPress-Media FFMPEG Add-on"
378
  msgstr ""
379
 
380
- #: app/helper/BPMediaAddon.php:42
381
- msgid "Add supports for more audio & video formats using open-source media-node."
382
  msgstr ""
383
 
384
- #: app/helper/BPMediaAddon.php:43
385
- msgid "Media node comes with automated setup script for Ubuntu/Debian."
386
  msgstr ""
387
 
388
- #: app/helper/BPMediaAddon.php:89
389
- msgid "Buy Now"
390
  msgstr ""
391
 
392
- #: app/helper/BPMediaAddon.php:90
393
- msgid "Live Demo"
394
  msgstr ""
395
 
396
- #: app/admin/BPMediaAdmin.php:69
397
- msgid "BuddyPress Media Component"
 
398
  msgstr ""
399
 
400
- #: app/admin/BPMediaAdmin.php:69
401
- #: app/admin/BPMediaAdmin.php:186
402
- #: app/admin/BPMediaAdmin.php:187
403
- msgid "BuddyPress Media"
404
  msgstr ""
405
 
406
- #: app/admin/BPMediaAdmin.php:70
407
- #: app/admin/BPMediaAdmin.php:214
408
- msgid "BuddyPress Media Settings"
409
  msgstr ""
410
 
411
- #: app/admin/BPMediaAdmin.php:70
412
- #: app/admin/BPMediaAdmin.php:215
413
- #: app/main/BuddyPressMedia.php:410
414
- msgid "Settings"
415
  msgstr ""
416
 
417
- #: app/admin/BPMediaAdmin.php:72
418
- msgid "BuddyPress Media Database Update"
419
  msgstr ""
420
 
421
- #: app/admin/BPMediaAdmin.php:74
422
- #: app/admin/BPMediaAdmin.php:221
423
- msgid "BuddyPress Media Addons"
424
  msgstr ""
425
 
426
- #: app/admin/BPMediaAdmin.php:74
427
- #: app/admin/BPMediaAdmin.php:222
428
- msgid "Addons"
429
  msgstr ""
430
 
431
- #: app/admin/BPMediaAdmin.php:75
432
- #: app/admin/BPMediaAdmin.php:228
433
- msgid "BuddyPress Media Support"
434
  msgstr ""
435
 
436
- #: app/admin/BPMediaAdmin.php:75
437
- msgid "Support "
438
  msgstr ""
439
 
440
- #: app/admin/BPMediaAdmin.php:77
441
- msgid "BuddyPress Media Convert Videos"
442
  msgstr ""
443
 
444
- #: app/admin/BPMediaAdmin.php:77
445
- #: app/admin/BPMediaAdmin.php:237
446
- msgid "Convert Videos"
447
  msgstr ""
448
 
449
- #: app/admin/BPMediaAdmin.php:134
450
- #: app/main/BPMediaComponent.php:297
451
- #: app/main/BPMediaComponent.php:298
452
- #: app/main/BPMediaComponent.php:304
453
- #: app/main/BuddyPressMedia.php:271
454
- #: app/main/BuddyPressMedia.php:274
455
- msgid "Media"
456
  msgstr ""
457
 
458
- #: app/admin/BPMediaAdmin.php:156
459
- msgid "By"
 
460
  msgstr ""
461
 
462
- #: app/admin/BPMediaAdmin.php:156
463
- msgid "Empowering The Web With WordPress"
464
  msgstr ""
465
 
466
- #: app/admin/BPMediaAdmin.php:229
467
- msgid "Support"
468
  msgstr ""
469
 
470
- #: app/admin/BPMediaAdmin.php:236
471
- msgid "BuddyPress Media Covert Videos"
472
  msgstr ""
473
 
474
- #: app/admin/BPMediaAdmin.php:330
475
- #, php-format
476
- msgid "I use @buddypressmedia http://goo.gl/8Upmv on %s"
477
  msgstr ""
478
 
479
- #: app/admin/BPMediaAdmin.php:331
480
- msgid "Add link to footer"
481
  msgstr ""
482
 
483
- #: app/admin/BPMediaAdmin.php:332
484
- msgid "Tweet"
485
  msgstr ""
486
 
487
- #: app/admin/BPMediaAdmin.php:333
488
- msgid "Rate on WordPress.org"
489
  msgstr ""
490
 
491
- #: app/admin/BPMediaAdmin.php:334
492
- msgid "Spread the Word"
493
  msgstr ""
494
 
495
- #: app/admin/BPMediaAdmin.php:344
496
- msgid "USD"
 
497
  msgstr ""
498
 
499
- #: app/admin/BPMediaAdmin.php:353
500
- msgid "OR"
501
  msgstr ""
502
 
503
- #: app/admin/BPMediaAdmin.php:354
504
- msgid "Use <a href=\"https://rtcamp.com/store/product-category/buddypress/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media\">premium add-ons</a> starting from $9"
505
  msgstr ""
506
 
507
- #: app/admin/BPMediaAdmin.php:356
508
- msgid "Donate"
509
  msgstr ""
510
 
511
- #: app/admin/BPMediaAdmin.php:370
512
- msgid "Become a fan on Facebook"
 
513
  msgstr ""
514
 
515
- #: app/admin/BPMediaAdmin.php:370
516
- msgid "Facebook"
517
  msgstr ""
518
 
519
- #: app/admin/BPMediaAdmin.php:371
520
- msgid "Follow us on Twitter"
521
  msgstr ""
522
 
523
- #: app/admin/BPMediaAdmin.php:371
524
- msgid "Twitter"
525
  msgstr ""
526
 
527
- #: app/admin/BPMediaAdmin.php:372
528
- msgid "Subscribe to our feeds"
 
529
  msgstr ""
530
 
531
- #: app/admin/BPMediaAdmin.php:372
532
- msgid "RSS Feed"
 
 
533
  msgstr ""
534
 
535
- #: app/admin/BPMediaAdmin.php:374
536
- msgid "Subscribe"
 
537
  msgstr ""
538
 
539
- #: app/admin/BPMediaAdmin.php:377
540
- msgid "Latest News"
541
  msgstr ""
542
 
543
- #: app/main/BPMediaComponent.php:60
544
- msgid "Search Media..."
 
 
 
 
 
 
545
  msgstr ""
546
 
547
- #: app/main/BPMediaComponent.php:255
548
- #: app/main/BPMediaComponent.php:267
549
- #: app/main/BuddyPressMedia.php:297
550
- msgid "Albums"
 
 
 
551
  msgstr ""
552
 
553
- #: app/main/BPMediaComponent.php:256
554
- #: app/main/BuddyPressMedia.php:300
555
- #: app/main/profile/BPMediaTemplate.php:34
556
- msgid "Album"
557
  msgstr ""
558
 
559
  #: app/main/BPMediaComponent.php:257
560
- #: app/main/profile/BPMediaTemplate.php:75
561
- #: app/main/profile/BPMediaTemplate.php:264
562
  msgid "Create"
563
  msgstr ""
564
 
565
  #: app/main/BPMediaComponent.php:258
566
- #: app/main/profile/BPMediaTemplate.php:250
567
- #: app/main/profile/BPMediaTemplate.php:256
568
  msgid "Create Album"
569
  msgstr ""
570
 
571
  #: app/main/BPMediaComponent.php:259
572
- #: app/main/profile/BPMediaAlbumScreen.php:135
573
  msgid "Edit Album"
574
  msgstr ""
575
 
@@ -605,278 +796,244 @@ msgstr ""
605
  msgid "BuddyPress Media's Media Files"
606
  msgstr ""
607
 
608
- #: app/main/BPMediaGroupLoader.php:252
609
- msgid "Media Settings"
610
  msgstr ""
611
 
612
- #: app/main/BuddyPressMedia.php:158
613
- msgid "BuddyPress is not installed."
614
  msgstr ""
615
 
616
- #: app/main/BuddyPressMedia.php:160
617
- msgid "To use BuddyPress Media, BuddyPress must be installed first."
618
  msgstr ""
619
 
620
- #: app/main/BuddyPressMedia.php:161
621
- #, php-format
622
- msgid "<a href=\"%s\">Install BuddyPress now</a>"
623
  msgstr ""
624
 
625
- #: app/main/BuddyPressMedia.php:276
626
- msgid "Privacy"
627
  msgstr ""
628
 
629
- #: app/main/BuddyPressMedia.php:282
630
- msgid "Photo"
631
  msgstr ""
632
 
633
- #: app/main/BuddyPressMedia.php:285
634
- msgid "Videos"
635
  msgstr ""
636
 
637
- #: app/main/BuddyPressMedia.php:291
638
- #: app/main/BuddyPressMedia.php:294
639
- msgid "Music"
640
  msgstr ""
641
 
642
- #: app/main/BuddyPressMedia.php:303
643
- msgid "Upload"
644
  msgstr ""
645
 
646
- #: app/main/BuddyPressMedia.php:502
647
  #, php-format
648
- msgid ""
649
- "The BuddyPress version installed is an\n"
650
- "\t\t\t\t\t\t\t\t\t\tolder version and is not supported,\n"
651
- "\t\t\t\t\t\t\t\t\t\tplease update BuddyPress to use\n"
652
- "\t\t\t\t\t\t\t\t\t\tBuddyPress Media Plugin.\n"
653
- "\t\t\t\t\t\t\t\t\t\t<a class=\"alignright\" href=\"%1$s\">X</a>"
654
  msgstr ""
655
 
656
- #: app/main/BuddyPressMedia.php:515
657
  #, php-format
658
- msgid ""
659
- "You have not installed BuddyPress.\n"
660
- "\t\t\t\t\t\t\t\t\tPlease install latest version of BuddyPress\n"
661
- "\t\t\t\t\t\t\t\t\tto use BuddyPress Media plugin.\n"
662
- "\t\t\t\t\t\t\t\t\t<a class=\"alignright\" href=\"%1$s\">X</a>"
663
- msgstr ""
664
-
665
- #: app/main/profile/BPMediaTemplate.php:23
666
- msgid "Wall Posts"
667
- msgstr ""
668
-
669
- #: app/main/profile/BPMediaTemplate.php:27
670
- msgid "Drop files here"
671
- msgstr ""
672
-
673
- #: app/main/profile/BPMediaTemplate.php:28
674
- msgid " or "
675
- msgstr ""
676
-
677
- #: app/main/profile/BPMediaTemplate.php:29
678
- #: app/main/profile/BPMediaUploadScreen.php:33
679
- msgid "Upload Media"
680
  msgstr ""
681
 
682
- #: app/main/profile/BPMediaTemplate.php:32
683
- msgid "to"
 
684
  msgstr ""
685
 
686
- #: app/main/profile/BPMediaTemplate.php:69
687
- msgid "+ Create New Album"
 
688
  msgstr ""
689
 
690
- #: app/main/profile/BPMediaTemplate.php:76
691
- msgid "Cancel"
692
  msgstr ""
693
 
694
- #: app/main/profile/BPMediaTemplate.php:195
695
- msgid "Show More"
696
  msgstr ""
697
 
698
- #: app/main/profile/BPMediaTemplate.php:228
699
- msgid "Select Album"
700
  msgstr ""
701
 
702
- #: app/main/profile/BPMediaTemplate.php:229
703
- #: app/main/profile/BPMediaTemplate.php:257
704
- msgid "x"
705
  msgstr ""
706
 
707
- #: app/main/profile/BPMediaTemplate.php:249
708
- msgid "Select"
709
  msgstr ""
710
 
711
- #: app/main/profile/BPMediaTemplate.php:260
712
- msgid "Album Name"
713
  msgstr ""
714
 
715
- #: app/main/profile/BPMediaTemplate.php:268
716
- msgid "Add Media"
717
  msgstr ""
718
 
719
- #: app/main/profile/BPMediaScreen.php:112
720
- #: app/main/profile/BPMediaScreen.php:372
721
- msgid "The requested url does not exist"
722
  msgstr ""
723
 
724
- #: app/main/profile/BPMediaScreen.php:123
725
- #, php-format
726
- msgid "All %s"
727
  msgstr ""
728
 
729
- #: app/main/profile/BPMediaScreen.php:195
730
- #: app/main/profile/BPMediaAlbumScreen.php:80
731
- #, php-format
732
- msgid "Sorry, no %s were found."
733
  msgstr ""
734
 
735
- #: app/main/profile/BPMediaScreen.php:306
736
- #, php-format
737
- msgid "Edit %s"
738
  msgstr ""
739
 
740
- #: app/main/profile/BPMediaScreen.php:327
741
- #, php-format
742
- msgid "%s Title"
743
  msgstr ""
744
 
745
- #: app/main/profile/BPMediaScreen.php:333
746
- #, php-format
747
- msgid "%s Description"
748
  msgstr ""
749
 
750
- #: app/main/profile/BPMediaScreen.php:340
751
- msgid "Update"
752
  msgstr ""
753
 
754
- #: app/main/profile/BPMediaScreen.php:341
755
- msgid "Back to Media File"
 
756
  msgstr ""
757
 
758
- #: app/main/profile/BPMediaScreen.php:342
759
- msgid "Back to Media"
760
  msgstr ""
761
 
762
- #: app/main/profile/BPMediaScreen.php:365
763
- msgid "You do not have access to this page."
764
  msgstr ""
765
 
766
- #: app/main/profile/BPMediaScreen.php:394
767
- msgid "Media deleted successfully"
768
  msgstr ""
769
 
770
- #: app/main/profile/BPMediaUploadScreen.php:75
771
- msgid "You are not allowed to be here"
 
772
  msgstr ""
773
 
774
- #: app/main/profile/BPMediaUploadScreen.php:102
775
- #: app/main/profile/BPMediaUploadScreen.php:126
776
- msgid "File uploaded is not supported"
777
  msgstr ""
778
 
779
- #: app/main/profile/BPMediaUploadScreen.php:109
780
- msgid "Image uploads are disabled"
 
781
  msgstr ""
782
 
783
- #: app/main/profile/BPMediaUploadScreen.php:115
784
- msgid "Video uploads are disabled"
785
  msgstr ""
786
 
787
- #: app/main/profile/BPMediaUploadScreen.php:121
788
- msgid "Audio uploads are disabled"
789
  msgstr ""
790
 
791
- #: app/main/profile/BPMediaUploadScreen.php:139
792
- msgid "Upload Successful"
793
  msgstr ""
794
 
795
- #: app/main/profile/BPMediaUploadScreen.php:144
796
- msgid "You did not specified a file to upload"
797
  msgstr ""
798
 
799
- #: app/main/profile/BPMediaAlbumScreen.php:135
800
- msgid "Edit"
801
  msgstr ""
802
 
803
- #: app/main/profile/BPMediaAlbumScreen.php:136
804
- msgid "Delete"
 
 
 
805
  msgstr ""
806
 
807
- #: app/main/profile/BPMediaAlbumScreen.php:155
808
- msgid "Sorry, no media items were found in this album."
809
  msgstr ""
810
 
811
- #: app/main/profile/BPMediaAlbum.php:74
812
- msgid "Sorry, the requested album does not exist."
 
813
  msgstr ""
814
 
815
- #: app/main/group/BPMediaGroupElementExtension.php:79
816
- msgid "Sorry, the requested media does not belong to the group"
817
  msgstr ""
818
 
819
- #: app/main/group/BPMediaGroupAction.php:124
820
- #: app/main/includes/BPMediaHostWordpress.php:654
821
- #, php-format
822
- msgid "%1$s added a %2$s"
823
  msgstr ""
824
 
825
- #: app/main/group/BPMediaGroupsExtension.php:40
826
- #: app/main/group/BPMediaGroupsExtension.php:87
827
- msgid "Album Creation Control"
828
  msgstr ""
829
 
830
- #: app/main/group/BPMediaGroupsExtension.php:41
831
- #: app/main/group/BPMediaGroupsExtension.php:88
832
- msgid "Who can create Albums in this group?"
833
  msgstr ""
834
 
835
- #: app/main/group/BPMediaGroupsExtension.php:45
836
- #: app/main/group/BPMediaGroupsExtension.php:92
837
- msgid "All Group Members"
838
  msgstr ""
839
 
840
- #: app/main/group/BPMediaGroupsExtension.php:49
841
- #: app/main/group/BPMediaGroupsExtension.php:96
842
- msgid "Group Admins and Mods only"
843
  msgstr ""
844
 
845
- #: app/main/group/BPMediaGroupsExtension.php:53
846
- #: app/main/group/BPMediaGroupsExtension.php:100
847
- msgid "Group Admin only"
848
  msgstr ""
849
 
850
- #: app/main/group/BPMediaGroupsExtension.php:104
851
- #: app/main/privacy/BPMediaPrivacyScreen.php:53
852
- msgid "Save Changes"
853
  msgstr ""
854
 
855
- #: app/main/group/BPMediaGroupsExtension.php:130
856
- msgid "There was an error saving, please try again"
857
  msgstr ""
858
 
859
- #: app/main/group/BPMediaGroupsExtension.php:132
860
- msgid "Settings saved successfully"
861
  msgstr ""
862
 
863
- #: app/main/group/BPMediaGroupsExtension.php:153
864
- msgid ""
865
- "You could display a small snippet of information from your group extension here. It will show on the group\n"
866
- "\t home screen."
867
  msgstr ""
868
 
869
- #: app/main/activity/BPMediaActivity.php:47
870
- msgid "Attach Media"
871
  msgstr ""
872
 
873
- #: app/main/activity/BPMediaActivity.php:100
874
- msgid "View"
875
  msgstr ""
876
 
877
- #: app/main/activity/BPMediaActivity.php:154
878
  #, php-format
879
- msgid "%1$s posted an update in the group %2$s"
880
  msgstr ""
881
 
882
  #: app/main/widgets/BPMediaWidget.php:20
@@ -887,11 +1044,11 @@ msgstr ""
887
  msgid "BuddyPress Media Widget"
888
  msgstr ""
889
 
890
- #: app/main/widgets/BPMediaWidget.php:67
891
  msgid "All"
892
  msgstr ""
893
 
894
- #: app/main/widgets/BPMediaWidget.php:77
895
  #, php-format
896
  msgid ""
897
  "Please configure this widget\n"
@@ -900,227 +1057,208 @@ msgid ""
900
  "\t\t\t\t\t\t\t\t\there</a>."
901
  msgstr ""
902
 
903
- #: app/main/widgets/BPMediaWidget.php:123
904
  msgid "No "
905
  msgstr ""
906
 
907
- #: app/main/widgets/BPMediaWidget.php:169
908
  msgid "Widget Type:"
909
  msgstr ""
910
 
911
- #: app/main/widgets/BPMediaWidget.php:171
912
  msgid "Recent Media"
913
  msgstr ""
914
 
915
- #: app/main/widgets/BPMediaWidget.php:172
916
  msgid "Popular Media"
917
  msgstr ""
918
 
919
- #: app/main/widgets/BPMediaWidget.php:175
920
  msgid "Title:"
921
  msgstr ""
922
 
923
- #: app/main/widgets/BPMediaWidget.php:178
924
  msgid "Number of posts to show:"
925
  msgstr ""
926
 
927
- #: app/main/widgets/BPMediaWidget.php:182
928
  msgid "Show All"
929
  msgstr ""
930
 
931
- #: app/main/widgets/BPMediaWidget.php:185
932
  msgid "Show Photos"
933
  msgstr ""
934
 
935
- #: app/main/widgets/BPMediaWidget.php:188
936
  msgid "Show Music"
937
  msgstr ""
938
 
939
- #: app/main/widgets/BPMediaWidget.php:192
940
  msgid "Show Videos"
941
  msgstr ""
942
 
943
- #: app/main/privacy/BPMediaPrivacySettings.php:28
944
- msgid "Update BuddyPress Media Database"
945
- msgstr ""
946
-
947
- #: app/main/privacy/BPMediaPrivacySettings.php:93
948
- msgid "Start"
949
  msgstr ""
950
 
951
- #: app/main/privacy/BPMediaPrivacy.php:113
952
- msgid "<strong>Private</strong>, Visible only to myself"
 
953
  msgstr ""
954
 
955
- #: app/main/privacy/BPMediaPrivacy.php:117
956
- msgid "<strong>Friends</strong>, Visible to my friends"
 
957
  msgstr ""
958
 
959
- #: app/main/privacy/BPMediaPrivacy.php:121
960
- msgid "<strong>Users</strong>, Visible to registered users"
 
961
  msgstr ""
962
 
963
- #: app/main/privacy/BPMediaPrivacy.php:125
964
- msgid "<strong>Public</strong>, Visible to the world"
 
965
  msgstr ""
966
 
967
- #: app/main/privacy/BPMediaPrivacy.php:145
968
- msgid "Set default privacy levels for your media"
 
969
  msgstr ""
970
 
971
- #: app/main/privacy/BPMediaPrivacy.php:326
972
- #, php-format
973
- msgid "This %s is private"
974
  msgstr ""
975
 
976
- #: app/main/privacy/BPMediaPrivacy.php:327
977
- #, php-format
978
- msgid "This %1s is visible only to %2s&rsquo;s friends"
979
  msgstr ""
980
 
981
- #: app/main/privacy/BPMediaPrivacy.php:328
982
- #, php-format
983
- msgid "This %s is visible to logged in users, only"
 
984
  msgstr ""
985
 
986
- #: app/main/privacy/BPMediaPrivacyScreen.php:42
987
- msgid "Default privacy level for your media has been updated"
 
988
  msgstr ""
989
 
990
- #: app/main/includes/BPMediaHostWordpress.php:59
991
- msgid "Sorry, the requested media does not exist."
992
  msgstr ""
993
 
994
- #: app/main/includes/BPMediaHostWordpress.php:138
995
- msgid "Error Uploading File"
996
  msgstr ""
997
 
998
- #: app/main/includes/BPMediaHostWordpress.php:165
999
- msgid "MP4 file you have uploaded is corrupt."
1000
  msgstr ""
1001
 
1002
- #: app/main/includes/BPMediaHostWordpress.php:172
1003
- #: app/main/includes/BPMediaHostWordpress.php:177
1004
- msgid "The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264."
1005
  msgstr ""
1006
 
1007
- #: app/main/includes/BPMediaHostWordpress.php:182
1008
- msgid "The MP4 file you have uploaded is not a video file."
1009
  msgstr ""
1010
 
1011
- #: app/main/includes/BPMediaHostWordpress.php:193
1012
- msgid "MP3 file you have uploaded is currupt."
1013
  msgstr ""
1014
 
1015
- #: app/main/includes/BPMediaHostWordpress.php:200
1016
- #: app/main/includes/BPMediaHostWordpress.php:205
1017
- msgid "The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3."
1018
  msgstr ""
1019
 
1020
- #: app/main/includes/BPMediaHostWordpress.php:210
1021
- msgid "The MP3 file you have uploaded is not an audio file."
1022
  msgstr ""
1023
 
1024
- #: app/main/includes/BPMediaHostWordpress.php:222
1025
- msgid "Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3, .mov and .mp4."
 
1026
  msgstr ""
1027
 
1028
- #: app/main/includes/BPMediaHostWordpress.php:229
1029
- msgid "Error creating attachment for the media file, please try again"
1030
  msgstr ""
1031
 
1032
- #: app/main/includes/BPMediaHostWordpress.php:335
1033
- #, php-format
1034
- msgid "%s uploaded a media."
1035
  msgstr ""
1036
 
1037
- #: app/main/includes/BPMediaHostWordpress.php:356
1038
- msgid "Uploaded by "
1039
  msgstr ""
1040
 
1041
- #: app/main/includes/BPMediaHostWordpress.php:502
 
1042
  #, php-format
1043
- msgid "Comment <span>%s</span>"
1044
- msgstr ""
1045
-
1046
- #: app/main/includes/BPMediaHostWordpress.php:506
1047
- msgid "Favorite"
1048
- msgstr ""
1049
-
1050
- #: app/main/includes/BPMediaHostWordpress.php:508
1051
- msgid "Remove Favorite"
1052
- msgstr ""
1053
-
1054
- #: app/main/includes/BPMediaHostWordpress.php:527
1055
- msgid "Post"
1056
- msgstr ""
1057
-
1058
- #: app/main/includes/BPMediaHostWordpress.php:527
1059
- msgid "or press esc to cancel."
1060
- msgstr ""
1061
-
1062
- #: app/main/includes/BPMediaTemplateFunctions.php:34
1063
- msgid "Media Title"
1064
  msgstr ""
1065
 
1066
- #: app/main/includes/BPMediaTemplateFunctions.php:35
1067
- msgid "Media Description"
1068
  msgstr ""
1069
 
1070
- #: app/main/includes/BPMediaTemplateFunctions.php:36
1071
- msgid "Select Media File"
 
1072
  msgstr ""
1073
 
1074
- #: app/main/includes/BPMediaFunction.php:233
1075
  #, php-format
1076
- msgid "%1$s added new media in album %2$s"
1077
  msgstr ""
1078
 
1079
- #: app/main/includes/BPMediaFilters.php:138
1080
  #, php-format
1081
- msgid "Delete %s"
1082
  msgstr ""
1083
 
1084
- #: app/main/includes/BPMediaFilters.php:388
1085
- msgid "Users"
 
1086
  msgstr ""
1087
 
1088
- #: app/main/includes/BPMediaFilters.php:390
1089
- msgid "Total Photos"
 
1090
  msgstr ""
1091
 
1092
- #: app/main/includes/BPMediaFilters.php:391
1093
- msgid "Total Videos"
1094
  msgstr ""
1095
 
1096
- #: app/main/includes/BPMediaFilters.php:392
1097
- msgid "Total Audio"
1098
  msgstr ""
1099
 
1100
- #: app/main/includes/BPMediaFilters.php:393
1101
- msgid "Total Albums"
1102
  msgstr ""
1103
 
1104
- #: app/main/includes/BPMediaActions.php:311
1105
- msgid "Download"
1106
  msgstr ""
1107
 
1108
- #: app/main/includes/BPMediaActions.php:318
1109
- #: app/main/includes/BPMediaActions.php:839
1110
- msgid "Set as Album Cover"
1111
  msgstr ""
1112
 
1113
- #: app/main/includes/BPMediaActions.php:323
1114
- #: app/main/includes/BPMediaActions.php:842
1115
- msgid "Unset as Album Cover"
1116
  msgstr ""
1117
 
1118
- #: app/main/includes/BPMediaActions.php:329
1119
- msgid "Edit Media"
1120
  msgstr ""
1121
 
1122
- #: app/main/includes/BPMediaActions.php:742
1123
  #, php-format
1124
- msgid "%1$s created an album %2$s"
1125
  msgstr ""
1126
 
2
  msgstr ""
3
  "Project-Id-Version: BuddyPress Media\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-04-09 12:48+0530\n"
6
+ "PO-Revision-Date: 2013-04-09 12:48+0530\n"
7
+ "Last-Translator: Joshua Abenazer <joshua.abenazer@rtcamp.com>\n"
8
  "Language-Team: rtCamp <info@rtcamp.com>\n"
9
  "Language: \n"
10
  "MIME-Version: 1.0\n"
16
  "X-Poedit-Country: India\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: app/helper/BPMediaAddon.php:29
20
+ msgid "BuddyPress-Media Instagram"
21
+ msgstr ""
22
+
23
+ #: app/helper/BPMediaAddon.php:32
24
+ msgid "BuddyPress Media Instagram adds Instagram like filters to images uploaded with BuddyPress Media."
25
+ msgstr ""
26
+
27
+ #: app/helper/BPMediaAddon.php:33
28
+ msgid "Important"
29
+ msgstr ""
30
+
31
+ #: app/helper/BPMediaAddon.php:33
32
+ msgid "You need to have ImageMagick installed on your server for this addon to work."
33
+ msgstr ""
34
+
35
+ #: app/helper/BPMediaAddon.php:39
36
+ msgid "BuddyPress-Media Kaltura Add-on"
37
+ msgstr ""
38
+
39
+ #: app/helper/BPMediaAddon.php:42
40
+ msgid "Add support for more video formats using Kaltura video solution."
41
+ msgstr ""
42
+
43
+ #: app/helper/BPMediaAddon.php:43
44
+ msgid "Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise."
45
+ msgstr ""
46
+
47
+ #: app/helper/BPMediaAddon.php:49
48
+ msgid "BuddyPress-Media FFMPEG Add-on"
49
+ msgstr ""
50
+
51
+ #: app/helper/BPMediaAddon.php:52
52
+ msgid "Add supports for more audio & video formats using open-source media-node."
53
+ msgstr ""
54
+
55
+ #: app/helper/BPMediaAddon.php:53
56
+ msgid "Media node comes with automated setup script for Ubuntu/Debian."
57
+ msgstr ""
58
+
59
+ #: app/helper/BPMediaAddon.php:99
60
+ msgid "Buy Now"
61
+ msgstr ""
62
+
63
+ #: app/helper/BPMediaAddon.php:100
64
+ msgid "Live Demo"
65
+ msgstr ""
66
+
67
+ #: app/helper/BPMediaSupport.php:50
68
+ msgid "Debug info"
69
+ msgstr ""
70
+
71
+ #: app/helper/BPMediaSupport.php:81
72
+ msgid "Submit a Bug Report"
73
+ msgstr ""
74
+
75
+ #: app/helper/BPMediaSupport.php:84
76
+ msgid "Submit a New Feature Request"
77
+ msgstr ""
78
+
79
+ #: app/helper/BPMediaSupport.php:87
80
+ msgid "Submit a Premium Support Request"
81
+ msgstr ""
82
+
83
+ #: app/helper/BPMediaSupport.php:95
84
+ msgid "Name"
85
+ msgstr ""
86
+
87
+ #: app/helper/BPMediaSupport.php:98
88
+ msgid "Email"
89
+ msgstr ""
90
+
91
+ #: app/helper/BPMediaSupport.php:101
92
+ msgid "Website"
93
+ msgstr ""
94
+
95
+ #: app/helper/BPMediaSupport.php:104
96
+ msgid "Phone"
97
+ msgstr ""
98
+
99
+ #: app/helper/BPMediaSupport.php:107
100
+ msgid "Subject"
101
+ msgstr ""
102
+
103
+ #: app/helper/BPMediaSupport.php:110
104
+ msgid "Details"
105
+ msgstr ""
106
+
107
+ #: app/helper/BPMediaSupport.php:121
108
+ msgid "Additional Information"
109
+ msgstr ""
110
+
111
+ #: app/helper/BPMediaSupport.php:126
112
+ msgid "Your WP Admin Login:"
113
+ msgstr ""
114
+
115
+ #: app/helper/BPMediaSupport.php:129
116
+ msgid "Your WP Admin password:"
117
+ msgstr ""
118
+
119
+ #: app/helper/BPMediaSupport.php:132
120
+ msgid "Your SSH / FTP host:"
121
+ msgstr ""
122
+
123
+ #: app/helper/BPMediaSupport.php:135
124
+ msgid "Your SSH / FTP login:"
125
+ msgstr ""
126
+
127
+ #: app/helper/BPMediaSupport.php:138
128
+ msgid "Your SSH / FTP password:"
129
+ msgstr ""
130
+
131
+ #: app/helper/BPMediaSupport.php:161
132
+ msgid "BuddyPress Media Premium Support Request from"
133
+ msgstr ""
134
+
135
+ #: app/helper/BPMediaSupport.php:164
136
+ msgid "BuddyPress Media New Feature Request from"
137
+ msgstr ""
138
+
139
+ #: app/helper/BPMediaSupport.php:167
140
+ msgid "BuddyPress Media Bug Report from"
141
+ msgstr ""
142
+
143
+ #: app/helper/BPMediaSupport.php:170
144
+ msgid "BuddyPress Media Contact from"
145
+ msgstr ""
146
+
147
+ #: app/helper/BPMediaSupport.php:231
148
+ msgid "Debug Info"
149
+ msgstr ""
150
+
151
+ #: app/helper/BPMediaSupport.php:246
152
+ msgid "Thank you for your Feedback/Suggestion."
153
+ msgstr ""
154
+
155
+ #: app/helper/BPMediaSupport.php:248
156
+ msgid "Thank you for posting your support request."
157
+ msgstr ""
158
+
159
+ #: app/helper/BPMediaSupport.php:249
160
+ msgid "We will get back to you shortly."
161
+ msgstr ""
162
+
163
+ #: app/helper/BPMediaSupport.php:252
164
+ msgid "Your server failed to send an email."
165
+ msgstr ""
166
+
167
+ #: app/helper/BPMediaSupport.php:253
168
+ msgid "Kindly contact your server support to fix this."
169
+ msgstr ""
170
+
171
+ #: app/helper/BPMediaSupport.php:254
172
+ #, php-format
173
+ msgid "You can alternatively create a support request <a href=\"%s\">here</a>"
174
+ msgstr ""
175
+
176
  #: app/helper/BPMediaFeed.php:43
177
  msgid "No items"
178
  msgstr ""
181
  msgid "Posted "
182
  msgstr ""
183
 
184
+ #: app/helper/BPMediaAdminWidget.php:29
185
+ msgid "Argument missing. id is required."
186
+ msgstr ""
187
+
188
  #: app/helper/BPMediaSettings.php:33
189
  msgid "Enabled Media Types"
190
  msgstr ""
191
 
192
  #: app/helper/BPMediaSettings.php:34
193
+ #: app/main/BuddyPressMedia.php:283
194
  msgid "Photos"
195
  msgstr ""
196
 
199
  msgstr ""
200
 
201
  #: app/helper/BPMediaSettings.php:39
202
+ #: app/main/BuddyPressMedia.php:292
203
  msgid "Video"
204
  msgstr ""
205
 
206
  #: app/helper/BPMediaSettings.php:42
207
+ msgid "Enable Video (mp4)"
208
  msgstr ""
209
 
210
  #: app/helper/BPMediaSettings.php:44
212
  msgstr ""
213
 
214
  #: app/helper/BPMediaSettings.php:47
215
+ msgid "Enable Audio (mp3)"
216
  msgstr ""
217
 
218
  #: app/helper/BPMediaSettings.php:50
227
  msgid "Enable Activity Uploading"
228
  msgstr ""
229
 
230
+ #: app/helper/BPMediaSettings.php:59
231
+ msgid "Lightbox Integration"
232
+ msgstr ""
233
+
234
  #: app/helper/BPMediaSettings.php:60
235
+ msgid "Lightbox"
236
+ msgstr ""
237
+
238
+ #: app/helper/BPMediaSettings.php:63
239
+ msgid "Enable Lighbox on Media"
240
+ msgstr ""
241
+
242
+ #: app/helper/BPMediaSettings.php:68
243
  msgid "Groups Integration"
244
  msgstr ""
245
 
246
+ #: app/helper/BPMediaSettings.php:75
247
  msgid "Groups"
248
  msgstr ""
249
 
250
+ #: app/helper/BPMediaSettings.php:78
251
  msgid "Allow Media in Groups"
252
  msgstr ""
253
 
254
+ #: app/helper/BPMediaSettings.php:85
255
  msgid "Display Settings"
256
  msgstr ""
257
 
258
+ #: app/helper/BPMediaSettings.php:86
259
  msgid "Number of media"
260
  msgstr ""
261
 
262
+ #: app/helper/BPMediaSettings.php:91
263
  msgid "Download Button"
264
  msgstr ""
265
 
266
+ #: app/helper/BPMediaSettings.php:94
267
  msgid "Display download button under media"
268
  msgstr ""
269
 
270
+ #: app/helper/BPMediaSettings.php:98
271
+ #: app/main/privacy/BPMediaPrivacyScreen.php:59
272
  msgid "Privacy Settings"
273
  msgstr ""
274
 
275
+ #: app/helper/BPMediaSettings.php:99
276
  msgid "Enable Privacy"
277
  msgstr ""
278
 
279
+ #: app/helper/BPMediaSettings.php:102
280
  msgid "Enable privacy"
281
  msgstr ""
282
 
283
+ #: app/helper/BPMediaSettings.php:106
284
  msgid "<strong>Private</strong> - Visible only to the user"
285
  msgstr ""
286
 
287
+ #: app/helper/BPMediaSettings.php:107
288
  msgid "<strong>Friends</strong> - Visible to user's friends"
289
  msgstr ""
290
 
291
+ #: app/helper/BPMediaSettings.php:108
292
  msgid "<strong>Users</strong> - Visible to registered users"
293
  msgstr ""
294
 
295
+ #: app/helper/BPMediaSettings.php:109
296
  msgid "<strong>Public</strong> - Visible to the world"
297
  msgstr ""
298
 
299
+ #: app/helper/BPMediaSettings.php:114
300
  msgid "Default Privacy"
301
  msgstr ""
302
 
303
+ #: app/helper/BPMediaSettings.php:120
304
  msgid "User Override"
305
  msgstr ""
306
 
307
+ #: app/helper/BPMediaSettings.php:123
308
  msgid "Allow users to override admin defaults (<em>Recommended</em>)"
309
  msgstr ""
310
 
311
+ #: app/helper/BPMediaSettings.php:126
312
  msgid "Other Settings"
313
  msgstr ""
314
 
315
+ #: app/helper/BPMediaSettings.php:128
316
  msgid "Admin bar menu"
317
  msgstr ""
318
 
319
+ #: app/helper/BPMediaSettings.php:131
320
  msgid "Enable menu in WordPress admin bar"
321
  msgstr ""
322
 
323
+ #: app/helper/BPMediaSettings.php:134
324
+ #: app/helper/BPMediaSettings.php:136
325
  msgid "Recount"
326
  msgstr ""
327
 
328
+ #: app/helper/BPMediaSettings.php:137
329
  msgid "Repair media counts"
330
  msgstr ""
331
 
332
+ #: app/helper/BPMediaSettings.php:141
333
  msgid "BuddyPress Media Addons for Audio/Video Conversion"
334
  msgstr ""
335
 
336
+ #: app/helper/BPMediaSettings.php:142
337
  msgid "Submit a request form"
338
  msgstr ""
339
 
340
+ #: app/helper/BPMediaSettings.php:143
341
  msgid "Request Type"
342
  msgstr ""
343
 
344
+ #: app/helper/BPMediaSettings.php:144
345
  msgid "Select One"
346
  msgstr ""
347
 
348
+ #: app/helper/BPMediaSettings.php:145
349
  msgid "Premium Support"
350
  msgstr ""
351
 
352
+ #: app/helper/BPMediaSettings.php:146
353
  msgid "Suggest a New Feature"
354
  msgstr ""
355
 
356
+ #: app/helper/BPMediaSettings.php:152
357
+ #: app/helper/BPMediaSettings.php:513
358
+ #: app/admin/BPMediaAdmin.php:81
359
+ #: app/main/privacy/BPMediaPrivacySettings.php:29
360
+ msgid "Update Database"
361
  msgstr ""
362
 
363
+ #: app/helper/BPMediaSettings.php:156
364
+ msgid "BP-Album Importer"
 
365
  msgstr ""
366
 
367
+ #: app/helper/BPMediaSettings.php:240
368
+ #: app/helper/BPMediaSettings.php:242
369
  msgid "Recounting of media files done successfully"
370
  msgstr ""
371
 
372
+ #: app/helper/BPMediaSettings.php:242
373
  msgid "Recount Success"
374
  msgstr ""
375
 
376
+ #: app/helper/BPMediaSettings.php:245
377
+ #: app/helper/BPMediaSettings.php:247
378
  msgid "Recounting Failed"
379
  msgstr ""
380
 
381
+ #: app/helper/BPMediaSettings.php:247
382
  msgid "Recount Fail"
383
  msgstr ""
384
 
385
+ #: app/helper/BPMediaSettings.php:259
386
+ #: app/helper/BPMediaSettings.php:261
387
  msgid "Atleast one Media Type Must be selected"
388
  msgstr ""
389
 
390
+ #: app/helper/BPMediaSettings.php:261
391
  msgid "Media Type"
392
  msgstr ""
393
 
394
+ #: app/helper/BPMediaSettings.php:268
395
+ #: app/helper/BPMediaSettings.php:270
396
  msgid "\"Number of media\" count value should be numeric and greater than 0."
397
  msgstr ""
398
 
399
+ #: app/helper/BPMediaSettings.php:270
400
  msgid "Default Count"
401
  msgstr ""
402
 
403
+ #: app/helper/BPMediaSettings.php:274
404
  msgid "Settings saved."
405
  msgstr ""
406
 
407
+ #: app/helper/BPMediaSettings.php:303
408
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' ) "
409
  msgstr ""
410
 
411
+ #: app/helper/BPMediaSettings.php:348
412
+ #: app/helper/BPMediaSettings.php:397
413
+ #: app/helper/BPMediaSettings.php:441
414
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' )"
415
  msgstr ""
416
 
417
+ #: app/helper/BPMediaSettings.php:350
418
  msgid "Need to specify atleast to radios else use a checkbox instead"
419
  msgstr ""
420
 
421
+ #: app/helper/BPMediaSettings.php:443
422
  msgid "Please provide some values to populate the dropdown. Format : array( 'value' => 'option' )"
423
  msgstr ""
424
 
425
+ #: app/helper/BPMediaSettings.php:458
426
  msgid "None"
427
  msgstr ""
428
 
429
+ #: app/helper/BPMediaSettings.php:512
430
  msgid "BuddyPress Media 2.6 requires a database upgrade. "
431
  msgstr ""
432
 
433
+ #: app/admin/BPMediaAdmin.php:78
434
+ msgid "BuddyPress Media Component"
435
  msgstr ""
436
 
437
+ #: app/admin/BPMediaAdmin.php:78
438
+ #: app/admin/BPMediaAdmin.php:202
439
+ #: app/admin/BPMediaAdmin.php:203
440
+ msgid "BuddyPress Media"
441
  msgstr ""
442
 
443
+ #: app/admin/BPMediaAdmin.php:79
444
+ #: app/admin/BPMediaAdmin.php:230
445
+ msgid "BuddyPress Media Settings"
446
  msgstr ""
447
 
448
+ #: app/admin/BPMediaAdmin.php:79
449
+ #: app/admin/BPMediaAdmin.php:231
450
+ #: app/main/BuddyPressMedia.php:416
451
+ msgid "Settings"
452
  msgstr ""
453
 
454
+ #: app/admin/BPMediaAdmin.php:81
455
+ msgid "BuddyPress Media Database Update"
456
  msgstr ""
457
 
458
+ #: app/admin/BPMediaAdmin.php:84
459
+ #: app/admin/BPMediaAdmin.php:260
460
+ #: app/admin/BPMediaAdmin.php:261
461
+ msgid "Importer"
462
  msgstr ""
463
 
464
+ #: app/admin/BPMediaAdmin.php:86
465
+ #: app/admin/BPMediaAdmin.php:237
466
+ msgid "BuddyPress Media Addons"
467
  msgstr ""
468
 
469
+ #: app/admin/BPMediaAdmin.php:86
470
+ #: app/admin/BPMediaAdmin.php:238
471
+ msgid "Addons"
472
  msgstr ""
473
 
474
+ #: app/admin/BPMediaAdmin.php:87
475
+ #: app/admin/BPMediaAdmin.php:244
476
+ msgid "BuddyPress Media Support"
477
  msgstr ""
478
 
479
+ #: app/admin/BPMediaAdmin.php:87
480
+ msgid "Support "
481
  msgstr ""
482
 
483
+ #: app/admin/BPMediaAdmin.php:89
484
+ msgid "BuddyPress Media Convert Videos"
485
  msgstr ""
486
 
487
+ #: app/admin/BPMediaAdmin.php:89
488
+ #: app/admin/BPMediaAdmin.php:253
489
+ msgid "Convert Videos"
490
  msgstr ""
491
 
492
+ #: app/admin/BPMediaAdmin.php:150
493
+ #: app/importers/BPMediaAlbumimporter.php:91
494
+ #: app/main/BuddyPressMedia.php:275
495
+ #: app/main/BuddyPressMedia.php:278
496
+ #: app/main/BPMediaComponent.php:297
497
+ #: app/main/BPMediaComponent.php:298
498
+ #: app/main/BPMediaComponent.php:304
499
+ msgid "Media"
500
  msgstr ""
501
 
502
+ #: app/admin/BPMediaAdmin.php:172
503
+ msgid "By"
504
  msgstr ""
505
 
506
+ #: app/admin/BPMediaAdmin.php:172
507
+ msgid "Empowering The Web With WordPress"
508
  msgstr ""
509
 
510
+ #: app/admin/BPMediaAdmin.php:245
511
+ msgid "Support"
512
  msgstr ""
513
 
514
+ #: app/admin/BPMediaAdmin.php:252
515
+ msgid "BuddyPress Media Covert Videos"
516
  msgstr ""
517
 
518
+ #: app/admin/BPMediaAdmin.php:353
519
+ #, php-format
520
+ msgid "I use @buddypressmedia http://goo.gl/8Upmv on %s"
521
  msgstr ""
522
 
523
+ #: app/admin/BPMediaAdmin.php:354
524
+ msgid "Add link to footer"
525
  msgstr ""
526
 
527
+ #: app/admin/BPMediaAdmin.php:355
528
+ msgid "Tweet"
529
  msgstr ""
530
 
531
+ #: app/admin/BPMediaAdmin.php:356
532
+ msgid "Rate on WordPress.org"
533
  msgstr ""
534
 
535
+ #: app/admin/BPMediaAdmin.php:357
536
+ msgid "Spread the Word"
537
  msgstr ""
538
 
539
+ #: app/admin/BPMediaAdmin.php:367
540
+ msgid "USD"
541
  msgstr ""
542
 
543
+ #: app/admin/BPMediaAdmin.php:376
544
+ msgid "OR"
545
  msgstr ""
546
 
547
+ #: app/admin/BPMediaAdmin.php:377
548
+ msgid "Use <a href=\"https://rtcamp.com/store/product-category/buddypress/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media\">premium add-ons</a> starting from $9"
549
  msgstr ""
550
 
551
+ #: app/admin/BPMediaAdmin.php:379
552
+ msgid "Donate"
553
  msgstr ""
554
 
555
+ #: app/admin/BPMediaAdmin.php:393
556
+ msgid "Become a fan on Facebook"
 
557
  msgstr ""
558
 
559
+ #: app/admin/BPMediaAdmin.php:393
560
+ msgid "Facebook"
561
  msgstr ""
562
 
563
+ #: app/admin/BPMediaAdmin.php:394
564
+ msgid "Follow us on Twitter"
565
  msgstr ""
566
 
567
+ #: app/admin/BPMediaAdmin.php:394
568
+ msgid "Twitter"
569
  msgstr ""
570
 
571
+ #: app/admin/BPMediaAdmin.php:395
572
+ msgid "Subscribe to our feeds"
573
  msgstr ""
574
 
575
+ #: app/admin/BPMediaAdmin.php:395
576
+ msgid "RSS Feed"
577
  msgstr ""
578
 
579
+ #: app/admin/BPMediaAdmin.php:397
580
+ msgid "Subscribe"
581
  msgstr ""
582
 
583
+ #: app/admin/BPMediaAdmin.php:400
584
+ msgid "Latest News"
585
  msgstr ""
586
 
587
+ #: app/importers/BPMediaAlbumimporter.php:72
588
+ msgid "Warning!"
589
  msgstr ""
590
 
591
+ #: app/importers/BPMediaAlbumimporter.php:72
592
+ #, php-format
593
+ msgid "This import process is irreversible. Although everything is tested, please take a <a target=\"_blank\" href=\"http://codex.wordpress.org/WordPress_Backups\">backup of your database and files</a>, before proceeding. If you don't know your way around databases and files, consider <a target=\"_blank\" href=\"%s\">hiring us</a>, or another professional."
594
  msgstr ""
595
 
596
+ #: app/importers/BPMediaAlbumimporter.php:73
597
+ msgid "If you have set \"WP_DEBUG\" in you wp-config.php file, please make sure it is set to \"false\", so that it doesn't conflict with the import process."
 
 
598
  msgstr ""
599
 
600
+ #: app/importers/BPMediaAlbumimporter.php:74
601
+ msgid "I have taken a backup of the database and files of this site."
 
602
  msgstr ""
603
 
604
+ #: app/importers/BPMediaAlbumimporter.php:76
605
+ msgid "Start Import"
 
 
606
  msgstr ""
607
 
608
+ #: app/importers/BPMediaAlbumimporter.php:81
609
+ msgid "Users"
610
  msgstr ""
611
 
612
+ #: app/importers/BPMediaAlbumimporter.php:111
613
+ msgid "Comments"
 
614
  msgstr ""
615
 
616
+ #: app/importers/BPMediaAlbumimporter.php:117
617
+ msgid "Comments: 0/0 (No comments to import)"
 
618
  msgstr ""
619
 
620
+ #: app/importers/BPMediaAlbumimporter.php:124
621
+ msgid "User's Favorites"
 
622
  msgstr ""
623
 
624
+ #: app/importers/BPMediaAlbumimporter.php:133
625
+ msgid "BP-Album is active on your site and will cause problems with the import."
626
  msgstr ""
627
 
628
+ #: app/importers/BPMediaAlbumimporter.php:134
629
+ msgid "Click here to deactivate BP-Album and continue importing"
630
  msgstr ""
631
 
632
+ #: app/importers/BPMediaAlbumimporter.php:140
633
+ msgid "Some of the media failed to import. The file might be corrupt or deleted."
 
634
  msgstr ""
635
 
636
+ #: app/importers/BPMediaAlbumimporter.php:141
637
+ #, php-format
638
+ msgid "The following %d BP Album Media id's could not be imported"
 
 
 
 
639
  msgstr ""
640
 
641
+ #: app/importers/BPMediaAlbumimporter.php:150
642
+ #, php-format
643
+ msgid "I just imported bp-album to @buddypressmedia http://goo.gl/8Upmv on %s"
644
  msgstr ""
645
 
646
+ #: app/importers/BPMediaAlbumimporter.php:151
647
+ msgid "Congratulations!"
648
  msgstr ""
649
 
650
+ #: app/importers/BPMediaAlbumimporter.php:151
651
+ msgid "All media from BP Album has been imported."
652
  msgstr ""
653
 
654
+ #: app/importers/BPMediaAlbumimporter.php:152
655
+ msgid "Tweet this"
656
  msgstr ""
657
 
658
+ #: app/importers/BPMediaAlbumimporter.php:156
659
+ msgid "However, a lot of unnecessary files and a database table are still eating up your resources. If everything seems fine, you can clean this data up."
 
660
  msgstr ""
661
 
662
+ #: app/importers/BPMediaAlbumimporter.php:159
663
+ msgid "Clean up Now"
664
  msgstr ""
665
 
666
+ #: app/importers/BPMediaAlbumimporter.php:164
667
+ msgid "Clean up Later"
668
  msgstr ""
669
 
670
+ #: app/importers/BPMediaAlbumimporter.php:169
671
+ msgid "Why don't you try adding some instagram like effects to your images?"
672
  msgstr ""
673
 
674
+ #: app/importers/BPMediaAlbumimporter.php:187
675
+ msgid "Looks like you don't use BP Album. Is there any other BuddyPress Plugin you want an importer for?"
676
  msgstr ""
677
 
678
+ #: app/importers/BPMediaAlbumimporter.php:188
679
+ #, php-format
680
+ msgid "<a href=\"%s\">Create an issue</a> on GitHub requesting the same."
681
  msgstr ""
682
 
683
+ #: app/main/BPMediaGroupLoader.php:252
684
+ msgid "Media Settings"
685
  msgstr ""
686
 
687
+ #: app/main/BuddyPressMedia.php:158
688
+ msgid "BuddyPress is not installed."
689
  msgstr ""
690
 
691
+ #: app/main/BuddyPressMedia.php:160
692
+ msgid "To use BuddyPress Media, BuddyPress must be installed first."
693
  msgstr ""
694
 
695
+ #: app/main/BuddyPressMedia.php:161
696
+ #, php-format
697
+ msgid "<a href=\"%s\">Install BuddyPress now</a>"
698
  msgstr ""
699
 
700
+ #: app/main/BuddyPressMedia.php:280
701
+ msgid "Privacy"
702
  msgstr ""
703
 
704
+ #: app/main/BuddyPressMedia.php:286
705
+ msgid "Photo"
706
  msgstr ""
707
 
708
+ #: app/main/BuddyPressMedia.php:289
709
+ msgid "Videos"
710
  msgstr ""
711
 
712
+ #: app/main/BuddyPressMedia.php:295
713
+ #: app/main/BuddyPressMedia.php:298
714
+ msgid "Music"
715
  msgstr ""
716
 
717
+ #: app/main/BuddyPressMedia.php:301
718
+ #: app/main/BPMediaComponent.php:255
719
+ #: app/main/BPMediaComponent.php:267
720
+ msgid "Albums"
721
  msgstr ""
722
 
723
+ #: app/main/BuddyPressMedia.php:304
724
+ #: app/main/BPMediaComponent.php:256
725
+ msgid "Album"
726
  msgstr ""
727
 
728
+ #: app/main/BuddyPressMedia.php:307
729
+ msgid "Upload"
730
  msgstr ""
731
 
732
+ #: app/main/BuddyPressMedia.php:508
733
+ #, php-format
734
+ msgid ""
735
+ "The BuddyPress version installed is an\n"
736
+ "\t\t\t\t\t\t\t\t\t\tolder version and is not supported,\n"
737
+ "\t\t\t\t\t\t\t\t\t\tplease update BuddyPress to use\n"
738
+ "\t\t\t\t\t\t\t\t\t\tBuddyPress Media Plugin.\n"
739
+ "\t\t\t\t\t\t\t\t\t\t<a class=\"alignright\" href=\"%1$s\">X</a>"
740
  msgstr ""
741
 
742
+ #: app/main/BuddyPressMedia.php:521
743
+ #, php-format
744
+ msgid ""
745
+ "You have not installed BuddyPress.\n"
746
+ "\t\t\t\t\t\t\t\t\tPlease install latest version of BuddyPress\n"
747
+ "\t\t\t\t\t\t\t\t\tto use BuddyPress Media plugin.\n"
748
+ "\t\t\t\t\t\t\t\t\t<a class=\"alignright\" href=\"%1$s\">X</a>"
749
  msgstr ""
750
 
751
+ #: app/main/BPMediaComponent.php:60
752
+ msgid "Search Media..."
 
 
753
  msgstr ""
754
 
755
  #: app/main/BPMediaComponent.php:257
 
 
756
  msgid "Create"
757
  msgstr ""
758
 
759
  #: app/main/BPMediaComponent.php:258
 
 
760
  msgid "Create Album"
761
  msgstr ""
762
 
763
  #: app/main/BPMediaComponent.php:259
 
764
  msgid "Edit Album"
765
  msgstr ""
766
 
796
  msgid "BuddyPress Media's Media Files"
797
  msgstr ""
798
 
799
+ #: app/main/privacy/BPMediaPrivacySettings.php:28
800
+ msgid "Update BuddyPress Media Database"
801
  msgstr ""
802
 
803
+ #: app/main/privacy/BPMediaPrivacySettings.php:93
804
+ msgid "Start"
805
  msgstr ""
806
 
807
+ #: app/main/privacy/BPMediaPrivacyScreen.php:42
808
+ msgid "Default privacy level for your media has been updated"
809
  msgstr ""
810
 
811
+ #: app/main/privacy/BPMediaPrivacyScreen.php:53
812
+ msgid "Save Changes"
 
813
  msgstr ""
814
 
815
+ #: app/main/privacy/BPMediaPrivacy.php:113
816
+ msgid "<strong>Private</strong>, Visible only to myself"
817
  msgstr ""
818
 
819
+ #: app/main/privacy/BPMediaPrivacy.php:117
820
+ msgid "<strong>Friends</strong>, Visible to my friends"
821
  msgstr ""
822
 
823
+ #: app/main/privacy/BPMediaPrivacy.php:121
824
+ msgid "<strong>Users</strong>, Visible to registered users"
825
  msgstr ""
826
 
827
+ #: app/main/privacy/BPMediaPrivacy.php:125
828
+ msgid "<strong>Public</strong>, Visible to the world"
 
829
  msgstr ""
830
 
831
+ #: app/main/privacy/BPMediaPrivacy.php:145
832
+ msgid "Set default privacy levels for your media"
833
  msgstr ""
834
 
835
+ #: app/main/privacy/BPMediaPrivacy.php:326
836
  #, php-format
837
+ msgid "This %s is private"
 
 
 
 
 
838
  msgstr ""
839
 
840
+ #: app/main/privacy/BPMediaPrivacy.php:327
841
  #, php-format
842
+ msgid "This %1s is visible only to %2s&rsquo;s friends"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
843
  msgstr ""
844
 
845
+ #: app/main/privacy/BPMediaPrivacy.php:328
846
+ #, php-format
847
+ msgid "This %s is visible to logged in users, only"
848
  msgstr ""
849
 
850
+ #: app/main/includes/BPMediaFilters.php:143
851
+ #, php-format
852
+ msgid "Delete %s"
853
  msgstr ""
854
 
855
+ #: app/main/includes/BPMediaFilters.php:394
856
+ msgid "Total Photos"
857
  msgstr ""
858
 
859
+ #: app/main/includes/BPMediaFilters.php:395
860
+ msgid "Total Videos"
861
  msgstr ""
862
 
863
+ #: app/main/includes/BPMediaFilters.php:396
864
+ msgid "Total Audio"
865
  msgstr ""
866
 
867
+ #: app/main/includes/BPMediaFilters.php:397
868
+ msgid "Total Albums"
 
869
  msgstr ""
870
 
871
+ #: app/main/includes/BPMediaTemplateFunctions.php:34
872
+ msgid "Media Title"
873
  msgstr ""
874
 
875
+ #: app/main/includes/BPMediaTemplateFunctions.php:35
876
+ msgid "Media Description"
877
  msgstr ""
878
 
879
+ #: app/main/includes/BPMediaTemplateFunctions.php:36
880
+ msgid "Select Media File"
881
  msgstr ""
882
 
883
+ #: app/main/includes/BPMediaTemplateFunctions.php:231
884
+ msgid "Show More"
 
885
  msgstr ""
886
 
887
+ #: app/main/includes/BPMediaHostWordpress.php:59
888
+ msgid "Sorry, the requested media does not exist."
 
889
  msgstr ""
890
 
891
+ #: app/main/includes/BPMediaHostWordpress.php:137
892
+ msgid "Error Uploading File"
 
 
893
  msgstr ""
894
 
895
+ #: app/main/includes/BPMediaHostWordpress.php:171
896
+ msgid "MP4 file you have uploaded is corrupt."
 
897
  msgstr ""
898
 
899
+ #: app/main/includes/BPMediaHostWordpress.php:178
900
+ #: app/main/includes/BPMediaHostWordpress.php:183
901
+ msgid "The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264."
902
  msgstr ""
903
 
904
+ #: app/main/includes/BPMediaHostWordpress.php:188
905
+ msgid "The MP4 file you have uploaded is not a video file."
 
906
  msgstr ""
907
 
908
+ #: app/main/includes/BPMediaHostWordpress.php:199
909
+ msgid "MP3 file you have uploaded is currupt."
910
  msgstr ""
911
 
912
+ #: app/main/includes/BPMediaHostWordpress.php:206
913
+ #: app/main/includes/BPMediaHostWordpress.php:211
914
+ msgid "The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3."
915
  msgstr ""
916
 
917
+ #: app/main/includes/BPMediaHostWordpress.php:216
918
+ msgid "The MP3 file you have uploaded is not an audio file."
919
  msgstr ""
920
 
921
+ #: app/main/includes/BPMediaHostWordpress.php:228
922
+ msgid "Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3, .mov and .mp4."
923
  msgstr ""
924
 
925
+ #: app/main/includes/BPMediaHostWordpress.php:235
926
+ msgid "Error creating attachment for the media file, please try again"
927
  msgstr ""
928
 
929
+ #: app/main/includes/BPMediaHostWordpress.php:340
930
+ #, php-format
931
+ msgid "%s uploaded a media."
932
  msgstr ""
933
 
934
+ #: app/main/includes/BPMediaHostWordpress.php:361
935
+ msgid "Uploaded by "
 
936
  msgstr ""
937
 
938
+ #: app/main/includes/BPMediaHostWordpress.php:562
939
+ #, php-format
940
+ msgid "Comment <span>%s</span>"
941
  msgstr ""
942
 
943
+ #: app/main/includes/BPMediaHostWordpress.php:566
944
+ msgid "Favorite"
945
  msgstr ""
946
 
947
+ #: app/main/includes/BPMediaHostWordpress.php:568
948
+ msgid "Remove Favorite"
949
  msgstr ""
950
 
951
+ #: app/main/includes/BPMediaHostWordpress.php:587
952
+ msgid "Post"
953
  msgstr ""
954
 
955
+ #: app/main/includes/BPMediaHostWordpress.php:587
956
+ msgid "or press esc to cancel."
957
  msgstr ""
958
 
959
+ #: app/main/includes/BPMediaHostWordpress.php:612
960
+ msgid "Delete"
961
  msgstr ""
962
 
963
+ #: app/main/includes/BPMediaHostWordpress.php:714
964
+ #: app/main/includes/BPMediaActions.php:788
965
+ #: app/main/group/BPMediaGroupAction.php:124
966
+ #, php-format
967
+ msgid "%1$s added a %2$s"
968
  msgstr ""
969
 
970
+ #: app/main/includes/BPMediaHostWordpress.php:984
971
+ msgid "Wall Posts"
972
  msgstr ""
973
 
974
+ #: app/main/includes/BPMediaActions.php:66
975
+ #: app/main/includes/BPMediaActions.php:90
976
+ msgid "File uploaded is not supported"
977
  msgstr ""
978
 
979
+ #: app/main/includes/BPMediaActions.php:73
980
+ msgid "Image uploads are disabled"
981
  msgstr ""
982
 
983
+ #: app/main/includes/BPMediaActions.php:79
984
+ msgid "Video uploads are disabled"
 
 
985
  msgstr ""
986
 
987
+ #: app/main/includes/BPMediaActions.php:85
988
+ msgid "Audio uploads are disabled"
 
989
  msgstr ""
990
 
991
+ #: app/main/includes/BPMediaActions.php:104
992
+ msgid "Upload Successful"
 
993
  msgstr ""
994
 
995
+ #: app/main/includes/BPMediaActions.php:109
996
+ msgid "You did not specified a file to upload"
 
997
  msgstr ""
998
 
999
+ #: app/main/includes/BPMediaActions.php:311
1000
+ msgid "Download"
 
1001
  msgstr ""
1002
 
1003
+ #: app/main/includes/BPMediaActions.php:318
1004
+ #: app/main/includes/BPMediaActions.php:838
1005
+ msgid "Set as Album Cover"
1006
  msgstr ""
1007
 
1008
+ #: app/main/includes/BPMediaActions.php:323
1009
+ #: app/main/includes/BPMediaActions.php:841
1010
+ msgid "Unset as Album Cover"
1011
  msgstr ""
1012
 
1013
+ #: app/main/includes/BPMediaActions.php:329
1014
+ msgid "Edit Media"
1015
  msgstr ""
1016
 
1017
+ #: app/main/includes/BPMediaActions.php:329
1018
+ msgid "Edit"
1019
  msgstr ""
1020
 
1021
+ #: app/main/includes/BPMediaActions.php:741
1022
+ #, php-format
1023
+ msgid "%1$s created an album %2$s"
 
1024
  msgstr ""
1025
 
1026
+ #: app/main/includes/bp-media-upload-handler.php:32
1027
+ msgid "You are not allowed to be here"
1028
  msgstr ""
1029
 
1030
+ #: app/main/includes/BPMediaFunction.php:167
1031
+ msgid "You do not have access to this page."
1032
  msgstr ""
1033
 
1034
+ #: app/main/includes/BPMediaFunction.php:228
1035
  #, php-format
1036
+ msgid "%1$s added new media in album %2$s"
1037
  msgstr ""
1038
 
1039
  #: app/main/widgets/BPMediaWidget.php:20
1044
  msgid "BuddyPress Media Widget"
1045
  msgstr ""
1046
 
1047
+ #: app/main/widgets/BPMediaWidget.php:72
1048
  msgid "All"
1049
  msgstr ""
1050
 
1051
+ #: app/main/widgets/BPMediaWidget.php:82
1052
  #, php-format
1053
  msgid ""
1054
  "Please configure this widget\n"
1057
  "\t\t\t\t\t\t\t\t\there</a>."
1058
  msgstr ""
1059
 
1060
+ #: app/main/widgets/BPMediaWidget.php:150
1061
  msgid "No "
1062
  msgstr ""
1063
 
1064
+ #: app/main/widgets/BPMediaWidget.php:197
1065
  msgid "Widget Type:"
1066
  msgstr ""
1067
 
1068
+ #: app/main/widgets/BPMediaWidget.php:199
1069
  msgid "Recent Media"
1070
  msgstr ""
1071
 
1072
+ #: app/main/widgets/BPMediaWidget.php:200
1073
  msgid "Popular Media"
1074
  msgstr ""
1075
 
1076
+ #: app/main/widgets/BPMediaWidget.php:203
1077
  msgid "Title:"
1078
  msgstr ""
1079
 
1080
+ #: app/main/widgets/BPMediaWidget.php:206
1081
  msgid "Number of posts to show:"
1082
  msgstr ""
1083
 
1084
+ #: app/main/widgets/BPMediaWidget.php:210
1085
  msgid "Show All"
1086
  msgstr ""
1087
 
1088
+ #: app/main/widgets/BPMediaWidget.php:213
1089
  msgid "Show Photos"
1090
  msgstr ""
1091
 
1092
+ #: app/main/widgets/BPMediaWidget.php:216
1093
  msgid "Show Music"
1094
  msgstr ""
1095
 
1096
+ #: app/main/widgets/BPMediaWidget.php:220
1097
  msgid "Show Videos"
1098
  msgstr ""
1099
 
1100
+ #: app/main/group/BPMediaGroupElementExtension.php:91
1101
+ msgid "Sorry, the requested media does not belong to the group"
 
 
 
 
1102
  msgstr ""
1103
 
1104
+ #: app/main/group/BPMediaGroupsExtension.php:40
1105
+ #: app/main/group/BPMediaGroupsExtension.php:87
1106
+ msgid "Album Creation Control"
1107
  msgstr ""
1108
 
1109
+ #: app/main/group/BPMediaGroupsExtension.php:41
1110
+ #: app/main/group/BPMediaGroupsExtension.php:88
1111
+ msgid "Who can create Albums in this group?"
1112
  msgstr ""
1113
 
1114
+ #: app/main/group/BPMediaGroupsExtension.php:45
1115
+ #: app/main/group/BPMediaGroupsExtension.php:92
1116
+ msgid "All Group Members"
1117
  msgstr ""
1118
 
1119
+ #: app/main/group/BPMediaGroupsExtension.php:49
1120
+ #: app/main/group/BPMediaGroupsExtension.php:96
1121
+ msgid "Group Admins and Mods only"
1122
  msgstr ""
1123
 
1124
+ #: app/main/group/BPMediaGroupsExtension.php:53
1125
+ #: app/main/group/BPMediaGroupsExtension.php:100
1126
+ msgid "Group Admin only"
1127
  msgstr ""
1128
 
1129
+ #: app/main/group/BPMediaGroupsExtension.php:130
1130
+ msgid "There was an error saving, please try again"
 
1131
  msgstr ""
1132
 
1133
+ #: app/main/group/BPMediaGroupsExtension.php:132
1134
+ msgid "Settings saved successfully"
 
1135
  msgstr ""
1136
 
1137
+ #: app/main/group/BPMediaGroupsExtension.php:153
1138
+ msgid ""
1139
+ "You could display a small snippet of information from your group extension here. It will show on the group\n"
1140
+ "\t home screen."
1141
  msgstr ""
1142
 
1143
+ #: app/main/profile/BPMediaUploadScreen.php:33
1144
+ #: app/main/profile/BPMediaTemplate.php:98
1145
+ msgid "Upload Media"
1146
  msgstr ""
1147
 
1148
+ #: app/main/profile/BPMediaTemplate.php:44
1149
+ msgid "Select Album: "
1150
  msgstr ""
1151
 
1152
+ #: app/main/profile/BPMediaTemplate.php:83
1153
+ msgid "+ Create New Album"
1154
  msgstr ""
1155
 
1156
+ #: app/main/profile/BPMediaTemplate.php:90
1157
+ msgid "Cancel"
1158
  msgstr ""
1159
 
1160
+ #: app/main/profile/BPMediaTemplate.php:93
1161
+ msgid "&"
 
1162
  msgstr ""
1163
 
1164
+ #: app/main/profile/BPMediaTemplate.php:96
1165
+ msgid "Drop files here"
1166
  msgstr ""
1167
 
1168
+ #: app/main/profile/BPMediaTemplate.php:97
1169
+ msgid " or "
1170
  msgstr ""
1171
 
1172
+ #: app/main/profile/BPMediaTemplate.php:98
1173
+ msgid "Max Upload Size"
 
1174
  msgstr ""
1175
 
1176
+ #: app/main/profile/BPMediaTemplate.php:246
1177
+ msgid "Select Album"
1178
  msgstr ""
1179
 
1180
+ #: app/main/profile/BPMediaTemplate.php:247
1181
+ #: app/main/profile/BPMediaTemplate.php:275
1182
+ msgid "x"
1183
  msgstr ""
1184
 
1185
+ #: app/main/profile/BPMediaTemplate.php:267
1186
+ msgid "Select"
1187
  msgstr ""
1188
 
1189
+ #: app/main/profile/BPMediaTemplate.php:278
1190
+ msgid "Album Name"
 
1191
  msgstr ""
1192
 
1193
+ #: app/main/profile/BPMediaTemplate.php:286
1194
+ msgid "Add Media"
1195
  msgstr ""
1196
 
1197
+ #: app/main/profile/BPMediaAlbumScreen.php:84
1198
+ #: app/main/profile/BPMediaScreen.php:194
1199
  #, php-format
1200
+ msgid "Sorry, no %s were found."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1201
  msgstr ""
1202
 
1203
+ #: app/main/profile/BPMediaAlbumScreen.php:161
1204
+ msgid "Sorry, no media items were found in this album."
1205
  msgstr ""
1206
 
1207
+ #: app/main/profile/BPMediaScreen.php:112
1208
+ #: app/main/profile/BPMediaScreen.php:371
1209
+ msgid "The requested url does not exist"
1210
  msgstr ""
1211
 
1212
+ #: app/main/profile/BPMediaScreen.php:123
1213
  #, php-format
1214
+ msgid "All %s"
1215
  msgstr ""
1216
 
1217
+ #: app/main/profile/BPMediaScreen.php:305
1218
  #, php-format
1219
+ msgid "Edit %s"
1220
  msgstr ""
1221
 
1222
+ #: app/main/profile/BPMediaScreen.php:326
1223
+ #, php-format
1224
+ msgid "%s Title"
1225
  msgstr ""
1226
 
1227
+ #: app/main/profile/BPMediaScreen.php:332
1228
+ #, php-format
1229
+ msgid "%s Description"
1230
  msgstr ""
1231
 
1232
+ #: app/main/profile/BPMediaScreen.php:339
1233
+ msgid "Update"
1234
  msgstr ""
1235
 
1236
+ #: app/main/profile/BPMediaScreen.php:340
1237
+ msgid "Back to Media File"
1238
  msgstr ""
1239
 
1240
+ #: app/main/profile/BPMediaScreen.php:341
1241
+ msgid "Back to Media"
1242
  msgstr ""
1243
 
1244
+ #: app/main/profile/BPMediaScreen.php:393
1245
+ msgid "Media deleted successfully"
1246
  msgstr ""
1247
 
1248
+ #: app/main/profile/BPMediaAlbum.php:74
1249
+ msgid "Sorry, the requested album does not exist."
 
1250
  msgstr ""
1251
 
1252
+ #: app/main/activity/BPMediaActivity.php:46
1253
+ msgid "Attach Media"
 
1254
  msgstr ""
1255
 
1256
+ #: app/main/activity/BPMediaActivity.php:103
1257
+ msgid "View"
1258
  msgstr ""
1259
 
1260
+ #: app/main/activity/BPMediaActivity.php:161
1261
  #, php-format
1262
+ msgid "%1$s posted an update in the group %2$s"
1263
  msgstr ""
1264
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: WordPress 3.5 + BuddyPress 1.6
8
  Tested up to: WordPress 3.5 + BuddyPress 1.6
9
- Stable tag: 2.8
10
 
11
  Adds Photos, Music, Videos & Albums to BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
@@ -122,9 +122,13 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
122
 
123
  Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit BuddyPress Media's Features page") to get some details about future releases.
124
 
 
 
 
 
125
  = 2.8 =
126
  * Adds importer for BP Album
127
- * Tested with [reallifescrapped](http://reallifescrapped), an aswesome social network for scrapbookers by [Meg](http://profiles.wordpress.org/oceanwidedesigns)
128
  * Other minor bug fixes, especially for Groups
129
 
130
  = 2.7.6 =
@@ -353,5 +357,5 @@ Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-medi
353
  * HTML5 Video Tag Support (with fallback)
354
 
355
  == Upgrade Notice ==
356
- = 2.8 =
357
- BP-Media Importer added
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: WordPress 3.5 + BuddyPress 1.6
8
  Tested up to: WordPress 3.5 + BuddyPress 1.6
9
+ Stable tag: 2.8.1
10
 
11
  Adds Photos, Music, Videos & Albums to BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
122
 
123
  Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit BuddyPress Media's Features page") to get some details about future releases.
124
 
125
+ = 2.8.1 =
126
+ * Improved i18n support, thanks to [David Decker](http://profiles.wordpress.org/daveshine/)
127
+ * Updated translations
128
+
129
  = 2.8 =
130
  * Adds importer for BP Album
131
+ * Tested with [reallifescrapped](http://reallifescrapped.com), an aswesome social network for scrapbookers by [Meg](http://profiles.wordpress.org/oceanwidedesigns)
132
  * Other minor bug fixes, especially for Groups
133
 
134
  = 2.7.6 =
357
  * HTML5 Video Tag Support (with fallback)
358
 
359
  == Upgrade Notice ==
360
+ = 2.8.1 =
361
+ BP-Media Importer added and Translations Updated