Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2013 03:10:11 PM (12 years ago)
Author:
boonebgorges
Message:

Improvements to i18n number formatting in activity count functions/templates

This changeset makes number formatting more consistent in the activity
templates of bp-legacy. The logic is as follows:

  • Move all number formatting out of the templates and into the relevant -template.php file.
  • Add number formatting to those _count() template functions that were missing it.
  • Clean up sprintf() swapping arguments to account for string vs int number formats

See #4997, #5228

Fixes #5231

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r7454 r7520  
    343343        // Add 'Groups' to the main navigation
    344344        $main_nav = array(
    345             'name'                => sprintf( __( 'Groups <span>%d</span>', 'buddypress' ), bp_get_total_group_count_for_user() ),
     345            'name'                => sprintf( __( 'Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user() ),
    346346            'slug'                => $this->slug,
    347347            'position'            => 70,
Note: See TracChangeset for help on using the changeset viewer.