Fix i18n errors introduced in r9210 and r9226.

`grunt build-commit` has also updated the RTL file for the BP-Legacy template pack.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9227 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Grunt: run more JS validation tests and `checktextdomain` during the `travis` task.

While committers ought to run `grunt build-commit` prior to committing, this is intended to act as a safety net should we forget and overlook something. Hopefully, the failures will bubble up to Travis-CI, and we'll be notified that way.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9228 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Grunt: rename the `build-*` tasks and add new task to help package releases.

Clarifying the existing `build-*` tasks will help reduce confusion for contributors to the project by making it easier to understand when each should be run.
A new task to help the BuddyPress team package new releases will help make our release process more straightforward and hopefully save time.

The Grunt tasks are now:

* "src" -- operates on the `src/` folder. To be run during development.
* "commit" -- operates on the `src/` folder. To be run before commit.
* "build" -- updates the `build/` folder. Creates a build of BuddyPress ready for full testing (with minified assets, etc).
* "release" -- updates the `build/` folder. Creates the release version of BuddyPress, ready to be added to our distribution SVN.

In the near future, we'll probably add a `grunt watch` task which will do the same thing as the new `src` task.

Fixes #6064

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9229 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Don't join against the group members table when fetching total group counts.

The join doesn't take place in the 'paged' count, which leads to inconsistent
query results when groups have no members.

This reverts changes made in [4064].

Props Mamaduka.
Fixes #5584.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9230 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Check cache for count functions that return zero.

Some of our count functions were previously setting counts of zero
correctly, but the functions themselves were not referencing the cache
properly when the count returned zero.  This led to unnecessary database
queries and we hate extra queries!

This commit addresses the problem and adds unit tests.

Props r-a-y, boonebgorges.

Fixes #6012.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9231 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
bp-legacy: For member groups template, use same `<select>` ID as the groups directory template.

This is done for consistency from a theme developer's perspective.

Props lenasterg.  Fixes #5998.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@9232 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Merge remote-tracking branch 'upstream/master'