xaizek / pms (License: GPLv3+) (since 2018-12-07)
Older version of Practical Music Search written in C++.
Commit 61908b4133b1485552fd6819799da56e2d231f7e

fixed plurality of number of songs when filtered or selected
Author: Bart Nagel
Author date (UTC): 2010-05-13 13:05
Committer name: Bart Nagel
Committer date (UTC): 2010-05-13 13:05
Parent(s): 2481126718d3bb2c5c164a8b35af62ca75eec9db
Signing key:
Tree: 410066aa1e6e16e8ad5e2eedb5ac64bc131798a8
File Lines added Lines deleted
src/field.cpp 3 3
File src/field.cpp changed (mode: 100644) (index ce9e4bb..ac71169)
... ... string Formatter::format(Song * song, Item keyword, unsigned int & printlen, c
683 683 { {
684 684 sprintf(s, "%ld/%d %s (%s)", static_cast<unsigned long>(list->selection.size), sprintf(s, "%ld/%d %s (%s)", static_cast<unsigned long>(list->selection.size),
685 685 list->size(), list->size(),
686 Pms::pluralformat(list->selection.size).c_str(),
686 Pms::pluralformat(list->size()).c_str(),
687 687 Pms::timeformat(list->selection.length).c_str()); Pms::timeformat(list->selection.length).c_str());
688 688 } }
689 689 else else
 
... ... string Formatter::format(Song * song, Item keyword, unsigned int & printlen, c
691 691 sprintf(s, "%ld/%d/%d %s (%s)", static_cast<unsigned long>(list->selection.size), sprintf(s, "%ld/%d/%d %s (%s)", static_cast<unsigned long>(list->selection.size),
692 692 list->size(), list->size(),
693 693 list->realsize(), list->realsize(),
694 Pms::pluralformat(list->selection.size).c_str(),
694 Pms::pluralformat(list->realsize()).c_str(),
695 695 Pms::timeformat(list->selection.length).c_str()); Pms::timeformat(list->selection.length).c_str());
696 696 } }
697 697 } }
 
... ... string Formatter::format(Song * song, Item keyword, unsigned int & printlen, c
708 708 sprintf(s, "%d/%d %s (%s)", sprintf(s, "%d/%d %s (%s)",
709 709 list->size(), list->size(),
710 710 list->realsize(), list->realsize(),
711 Pms::pluralformat(list->selection.size).c_str(),
711 Pms::pluralformat(list->realsize()).c_str(),
712 712 Pms::timeformat(list->selection.length).c_str()); Pms::timeformat(list->selection.length).c_str());
713 713 } }
714 714 } }
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/pms

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/pms

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master