浏览代码

Мелкие правки

Book Pauk 3 年之前
父节点
当前提交
07b9a3c033
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      client/components/Reader/RecentBooksPage/RecentBooksPage.vue

+ 3 - 3
client/components/Reader/RecentBooksPage/RecentBooksPage.vue

@@ -389,10 +389,10 @@ class RecentBooksPage {
     }
 
     wordEnding(num) {
-        const endings = ['', 'а', 'и', 'и', 'и', '', '', '', '', ''];
+        const endings = ['ов', '', 'а', 'а', 'а', 'ов', 'ов', 'ов', 'ов', 'ов'];
         const deci = num % 100;
         if (deci > 10 && deci < 20) {
-            return '';
+            return 'ов';
         } else {
             return endings[num % 10];
         }
@@ -400,7 +400,7 @@ class RecentBooksPage {
 
     get header() {
         const len = (this.tableData ? this.tableData.length : 0);
-        return `${(this.search ? 'Найдено' : 'Всего')} ${len} книг${this.wordEnding(len)}`;
+        return `${(this.search ? 'Найдено' : 'Всего')} ${len} файл${this.wordEnding(len)}`;
     }
 
     async downloadBook(fb2path, fullTitle) {