Changeset 391 for trunk/bp-core/bp-core-avatars.php
- Timestamp:
- 10/12/2008 08:19:04 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-avatars.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r373 r391 77 77 <?php if ( !isset($_POST['slick_avatars_action']) && !isset($_GET['slick_avatars_action']) ) { ?> 78 78 <div class="wrap"> 79 <h2><?php _e('Your Avatar' ) ?></h2>79 <h2><?php _e('Your Avatar', 'buddypress') ?></h2> 80 80 81 81 <?php if ( $message ) { ?> … … 86 86 <?php } ?> 87 87 88 <p><?php _e('Your avatar will be used on your profile and throughout the site.' ) ?></p>89 <p><?php _e('Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Photo\' to proceed.' ) ?></p>88 <p><?php _e('Your avatar will be used on your profile and throughout the site.', 'buddypress') ?></p> 89 <p><?php _e('Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Photo\' to proceed.', 'buddypress') ?></p> 90 90 91 91 <?php … … 100 100 $str = bp_core_get_avatar( get_current_user_id(), 1 ); 101 101 if ( strlen($str) ) { 102 echo '<h3>' . __('This is your current avatar' ) . '</h3>';102 echo '<h3>' . __('This is your current avatar', 'buddypress') . '</h3>'; 103 103 echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 1) . '</span>'; 104 104 echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 2) . '</span>'; … … 111 111 112 112 echo '<div class="wrap"><h2>'; 113 _e('Your Avatar' );113 _e('Your Avatar', 'buddypress'); 114 114 echo '</h2>'; 115 115 … … 120 120 // Set friendly error feedback. 121 121 $uploadErrors = array( 122 0 => __("There is no error, the file uploaded with success" ),123 1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini" ),124 2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" ),125 3 => __("The uploaded file was only partially uploaded" ),126 4 => __("No file was uploaded" ),127 6 => __("Missing a temporary folder" )122 0 => __("There is no error, the file uploaded with success", 'buddypress'), 123 1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini", 'buddypress'), 124 2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form", 'buddypress'), 125 3 => __("The uploaded file was only partially uploaded", 'buddypress'), 126 4 => __("No file was uploaded", 'buddypress'), 127 6 => __("Missing a temporary folder", 'buddypress') 128 128 ); 129 129 … … 171 171 // Store details to the DB and we're done 172 172 echo '<div class="wrap"><h2>'; 173 _e('Your Avatar' );173 _e('Your Avatar', 'buddypress'); 174 174 echo '</h2>'; 175 175 176 echo '<p>' . __('Your new avatar was successfully created!' ) . '</p>';176 echo '<p>' . __('Your new avatar was successfully created!', 'buddypress') . '</p>'; 177 177 178 178 bp_core_avatar_save($result); … … 191 191 192 192 unset($_GET['slick_avatars_action']); 193 $message = __('Avatar successfully removed.' );193 $message = __('Avatar successfully removed.', 'buddypress'); 194 194 bp_core_avatar_admin($message); 195 195 … … 278 278 279 279 echo '<div id="avatar_v1">'; 280 echo '<h3>' . __('Main Avatar' ) . '</h3>';281 echo '<p>' . __('Please select the area of your photo you would like to use for your avatar' ) . '(' . CORE_AVATAR_V1_W . 'px x ' . CORE_AVATAR_V1_H . 'px).</p>';280 echo '<h3>' . __('Main Avatar', 'buddypress') . '</h3>'; 281 echo '<p>' . __('Please select the area of your photo you would like to use for your avatar', 'buddypress') . '(' . CORE_AVATAR_V1_W . 'px x ' . CORE_AVATAR_V1_H . 'px).</p>'; 282 282 283 283 // Canvas … … 285 285 286 286 // Preview 287 echo '<p class="crop-preview"><strong>' . __('Crop Preview' ) . '</strong></p>';287 echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>'; 288 288 echo '<div id="crop-preview-v1" class="crop-preview"></div>'; 289 289 … … 299 299 if (CORE_AVATAR_V2_W !== false && CORE_AVATAR_V2_H !== false) { 300 300 // Continue button (v1 => v2) 301 echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop & Continue' ) . '" onclick="cropAndContinue();" /></p>';301 echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop & Continue', 'buddypress') . '" onclick="cropAndContinue();" /></p>'; 302 302 echo '</div>'; 303 303 304 304 echo '<div id="avatar_v2" style="display: none">'; 305 echo '<h3>' . __('Alternate Avatar' ) . '</h3>';306 echo '<p>' . __('Please select the area of your photo you would like to use for an alternate version' ) . '(' . CORE_AVATAR_V2_W . 'px x ' . CORE_AVATAR_V2_H . 'px).</p>';305 echo '<h3>' . __('Alternate Avatar', 'buddypress') . '</h3>'; 306 echo '<p>' . __('Please select the area of your photo you would like to use for an alternate version', 'buddypress') . '(' . CORE_AVATAR_V2_W . 'px x ' . CORE_AVATAR_V2_H . 'px).</p>'; 307 307 308 308 // Canvas … … 310 310 311 311 // Preview 312 echo '<p class="crop-preview"><strong>' . __('Crop Preview' ) . '</strong></p>';312 echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>'; 313 313 echo '<div id="crop-preview-v2" class="crop-preview"></div>'; 314 314 … … 322 322 323 323 // Final button to process everything 324 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save' ) . '" /></p>';324 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save', 'buddypress') . '" /></p>'; 325 325 echo '</div>'; 326 326 } else { … … 329 329 330 330 // Final button to process everything 331 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save' ) . '" /></p>';331 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save', 'buddypress') . '" /></p>'; 332 332 } 333 333 … … 458 458 function bp_core_ap_die( $msg ) { 459 459 echo '<p><strong>' . $msg . '</strong></p>'; 460 echo '<p><a href="' . get_option('home') .'/wp-admin/admin.php?page=bp-xprofile.php">' . __('Try Again' ) . '</a></p>';460 echo '<p><a href="' . get_option('home') .'/wp-admin/admin.php?page=bp-xprofile.php">' . __('Try Again', 'buddypress') . '</a></p>'; 461 461 echo '</div>'; 462 462 exit;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)