File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ global_variables() {
109
109
template_tags_title=" All tags"
110
110
# "posts" (on "All tags" page, text at the end of each tag line, like "2. Music - 15 posts")
111
111
template_tags_posts=" posts"
112
+ template_tags_posts_2_4=" posts" # Some slavic languages use a different plural form for 2-4 items
112
113
template_tags_posts_singular=" post"
113
114
# "Posts tagged" (text on a title of a page with index of one tag, like "My Blog - Posts tagged "Music"")
114
115
template_tag_title=" Posts tagged"
@@ -681,7 +682,11 @@ all_tags() {
681
682
nposts=$( grep -c " <\!-- text begin -->" " $i " )
682
683
tagname=${i# " $prefix_tags " }
683
684
tagname=${tagname% .html}
684
- (( nposts > 1 )) && word=$template_tags_posts || word=$template_tags_posts_singular
685
+ case $nposts in
686
+ 1) word=$template_tags_posts_singular ;;
687
+ 2|3|4) word=$template_tags_posts_2_4 ;;
688
+ * ) word=$template_tags_posts
689
+ esac
685
690
echo " <li><a href=\" $i \" >$tagname </a> — $nposts $word </li>"
686
691
done
687
692
echo " " 1>&3
You can’t perform that action at this time.
0 commit comments