Browse Source

Singular 'library' when appropriate

Mustache is really terrible for this kind of thing.
Daniel James 9 years ago
parent
commit
c8ce0350ec
1 changed files with 3 additions and 1 deletions
  1. 3 1
      index.html

+ 3 - 1
index.html

@@ -56,7 +56,9 @@
   <h3>Changes in this release</h3>
   <h3>Changes in this release</h3>
 
 
   {{#unreleased_lib_count}}
   {{#unreleased_lib_count}}
-  <p>The release includes {{unreleased_lib_count}} new libraries
+  <p>The release includes {{unreleased_lib_count}} new
+  {{#unreleased_library_plural}}libraries{{/unreleased_library_plural}}
+  {{^unreleased_library_plural}}library{{/unreleased_library_plural}}
   ({{#unreleased_libs}}{{#index}}, {{/index}}<a href="{{link}}">{{name}}</a>{{/unreleased_libs}})
   ({{#unreleased_libs}}{{#index}}, {{/index}}<a href="{{link}}">{{name}}</a>{{/unreleased_libs}})
   as well as updates to many existing libraries.
   as well as updates to many existing libraries.
   {{/unreleased_lib_count}}
   {{/unreleased_lib_count}}

粤ICP备19079148号