consistently use title case when formatting counts

This commit is contained in:
rolux 2013-07-18 08:14:14 +00:00
parent 5e3e4de939
commit f8179ea48a
6 changed files with 10 additions and 11 deletions

View file

@ -66,7 +66,7 @@ pandora.ui.clipsView = function(videoRatio) {
init: function(data) {
var items = data.items;
$status.html(
Ox.toTitleCase(Ox.formatCount(items, 'Clip'))
Ox.toTitleCase(Ox.formatCount(items, 'clip'))
);
}
});

View file

@ -157,7 +157,7 @@ pandora.ui.documentsDialog = function(options) {
.bindEvent({
init: function(data) {
$status.html(
Ox.formatCount(data.items, 'file')
Ox.toTitleCase(Ox.formatCount(data.items, 'file'))
);
},
load: function() {

View file

@ -6,7 +6,6 @@ pandora.ui.namesDialog = function() {
var height = Math.round((window.innerHeight - 48) * 0.9),
width = 576 + Ox.UI.SCROLLBAR_SIZE,
numberOfNames = 0,
$findInput = Ox.Input({
changeOnKeypress: true,
@ -73,8 +72,9 @@ pandora.ui.namesDialog = function() {
})
.bindEvent({
init: function(data) {
numberOfNames = data.items;
$status.html(Ox.formatCount(numberOfNames, 'name'));
$status.html(
Ox.toTitleCase(Ox.formatCount(data.items, 'name'))
);
},
open: function(data) {
$list.find('.OxItem.OxSelected > .OxCell.OxColumnSortname')

View file

@ -246,7 +246,7 @@ pandora.ui.navigationView = function(type, videoRatio) {
}
function updateStatusbar(items) {
$status.html(Ox.toTitleCase(Ox.formatCount(items, 'Clip')));
$status.html(Ox.toTitleCase(Ox.formatCount(items, 'clip')));
}
if (type == 'map') {

View file

@ -4,7 +4,6 @@ pandora.ui.titlesDialog = function() {
var height = Math.round((window.innerHeight - 48) * 0.9),
width = 512 + Ox.UI.SCROLLBAR_SIZE,
numberOfTitles = 0,
$findInput = Ox.Input({
changeOnKeypress: true,
@ -62,8 +61,9 @@ pandora.ui.titlesDialog = function() {
})
.bindEvent({
init: function(data) {
numberOfTitles = data.items;
$status.html(Ox.formatCount(numberOfTitles, 'title'));
$status.html(
Ox.toTitleCase(Ox.formatCount(data.items, 'title'))
);
},
open: function(data) {
$list.find('.OxItem.OxSelected > .OxCell.OxColumnSorttitle')

View file

@ -922,9 +922,8 @@ pandora.ui.usersDialog = function() {
function setTo() {
var recipients = getTo().length;
//fixme shoule be No not no from formatCount here
$mailForm.values({
to: Ox.formatCount(recipients, 'recipient')
to: Ox.formatCount(recipients, 'recipient').replace('no', 'No')
});
}