bp_attachments_get_plupload_l10n

Builds localization strings for the BuddyPress Uploader scripts.

Description

(array) bp_attachments_get_plupload_l10n(); 

Returns (array)

Plupload default localization strings.


Usage

  1. if ( !function_exists( 'bp_attachments_get_plupload_l10n' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-attachments.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_attachments_get_plupload_l10n(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-attachments.php  
  1. function bp_attachments_get_plupload_l10n() { 
  2. // Localization strings. 
  3. 'queue_limit_exceeded' => __( 'You have attempted to queue too many files.', buddypress ),  
  4. 'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.', buddypress ),  
  5. 'zero_byte_file' => __( 'This file is empty. Please try another.', buddypress ),  
  6. 'invalid_filetype' => __( 'This file type is not allowed. Please try another.', buddypress ),  
  7. 'not_an_image' => __( 'This file is not an image. Please try another.', buddypress ),  
  8. 'image_memory_exceeded' => __( 'Memory exceeded. Please try another smaller file.', buddypress ),  
  9. 'image_dimensions_exceeded' => __( 'This is larger than the maximum size. Please try another.', buddypress ),  
  10. 'default_error' => __( 'Anerroroccurred. Please try again later.', buddypress ),  
  11. 'missing_upload_url' => __( 'There was a configuration error. Please contact the server administrator.', buddypress ),  
  12. 'upload_limit_exceeded' => __( 'You may only upload 1 file.', buddypress ),  
  13. 'http_error' => __( 'HTTP error.', buddypress ),  
  14. 'upload_failed' => __( 'Upload failed.', buddypress ),  
  15. 'big_upload_failed' => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.', buddypress ),  
  16. 'big_upload_queued' => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.', buddypress ),  
  17. 'io_error' => __( 'IO error.', buddypress ),  
  18. 'security_error' => __( 'Security error.', buddypress ),  
  19. 'file_cancelled' => __( 'File canceled.', buddypress ),  
  20. 'upload_stopped' => __( 'Upload stopped.', buddypress ),  
  21. 'dismiss' => __( 'Dismiss', buddypress ),  
  22. 'crunching' => __( 'Crunching…', buddypress ),  
  23. 'unique_file_warning' => __( 'Make sure to upload a unique file', buddypress ),  
  24. 'error_uploading' => __( '“%s” has failed to upload.', buddypress ),  
  25. 'has_avatar_warning' => __( 'If you'd like to delete the existing profile photo but not upload a new one, please use the delete tab.', buddypress ) 
  26. ) );