🐛 Fix: total word count error in section

This commit is contained in:
Cell
2023-10-10 15:08:32 +08:00
parent 8611f00cf4
commit 8bb2a35dcc
15 changed files with 93 additions and 53 deletions
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Tags"
[posts]
other = "Artikel"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Zuletzt aktualisiert"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Ein Wort"
other = "{{ .Count }} Wörter"
[single.fuzzywordcount]
other = "{{ .Count }} Wörter (ungefähr)"
[single.readingTime]
one = "Eine Minute"
other = "{{ .Count }} Minuten"
+7 -3
View File
@@ -36,14 +36,15 @@ other = "Tags"
[posts]
other = "Posts"
[taxonomy.totalwordCount]
one = "Total one word"
other = "Total {{ .Count }} words"
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Recently Updated"
[section.totalWordCount]
one = "Total one word"
other = "Total {{ .Count }} words"
# === Section ===
# === Pagination ===
@@ -119,6 +120,9 @@ encryptyAgain = "Encrypt again"
one = "One word"
other = "{{ .Count }} words"
[single.fuzzyWordCount]
other = "About {{ .Count }} words"
[single.readingTime]
one = "One minute"
other = "{{ .Count }} minutes"
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Etiquetas"
[posts]
other = "Artículos"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Actualizado recientemente"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Una palabra"
other = "{{ .Count }} palabras"
[single.fuzzyWordCount]
other = "Aproximadamente {{ .Count }} palabras"
[single.readingTime]
one = "Un minuto"
other = "{{ .Count }} minutos"
+7 -4
View File
@@ -36,15 +36,15 @@ other = "Tags"
[posts]
other = "Posts"
[taxonomy.totalwordCount]
one = "Nombre de mots: 1"
other = "Nombre de mots: {{ .Count }}"
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Récemment Modifié"
[section.totalWordCount]
one = "Nombre de mots: 1"
other = "Nombre de mots: {{ .Count }}"
# === Section ===
# === Pagination ===
@@ -121,6 +121,9 @@ encryptyAgain = "Chiffrer à nouveau"
one = "1 mot"
other = "{{ .Count }} mots"
[single.fuzzyWordCount]
other = "environ {{ .Count }} mots"
[single.readingTime]
one = "1 minute"
other = "{{ .Count }} minutes"
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Etichette"
[posts]
other = "Articoli"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Aggiornati di recente"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Una parola"
other = "{{ .Count }} parole"
[single.fuzzyWordCount]
other = "circa {{ .Count }} parole"
[single.readingTime]
one = "Un minuto"
other = "{{ .Count }} minuti"
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Tagi"
[posts]
other = "Posty"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Ostatnio zaktualizowane"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -121,6 +121,9 @@ encryptyAgain = ""
one = "Jedno słowo"
other = "{{ .Count }} słów"
[single.fuzzyWordCount]
other = "Około {{ .Count }} słów"
[single.readingTime]
one = "Jedna minuta"
other = "{{ .Count }} minuty"
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Tags"
[posts]
other = "Posts"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Recentemente atualizado"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Uma palavra"
other = "{{ .Count }} palavras"
[single.fuzzyWordCount]
other = ""
[single.readingTime]
one = "Um minuto"
other = "{{ .Count }} minutos"
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Etichete"
[posts]
other = "Articole"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Actualizat recent"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Un cuvânt"
other = "{{ .Count }} cuvinte"
[single.fuzzyWordCount]
other = "Aproximativ {{ .Count }} cuvinte"
[single.readingTime]
one = "Un minut"
other = "{{ .Count }} minute"
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Тэги"
[posts]
other = "Статьи"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Недавно обновленные"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -122,6 +122,9 @@ encryptyAgain = ""
one = "Одно слово"
other = "{{ .Count }} слов"
[single.fuzzyWordCount]
other = "Около {{ .Count }} слов"
[single.readingTime]
one = "Одна минута"
other = "{{ .Count }} минут"
+7 -4
View File
@@ -37,15 +37,15 @@ other = "Тагови"
[posts]
other = "Постови"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Недавно Ажурирано"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -121,6 +121,9 @@ encryptyAgain = ""
one = "Једна реч"
other = "{{ .Count }} речи"
[single.fuzzyWordCount]
other = "Око {{ .Count }} речи"
[single.readingTime]
one = "Један минут"
other = "{{ .Count }} минута"
+7 -4
View File
@@ -36,15 +36,15 @@ other = "Nhãn"
[posts]
other = "Bài viết"
[taxonomy.totalwordCount]
one = ""
other = ""
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "Mới nhất"
[section.totalWordCount]
one = ""
other = ""
# === Section ===
# === Pagination ===
@@ -121,6 +121,9 @@ encryptyAgain = ""
one = "One word"
other = "{{ .Count }} từ"
[single.fuzzyWordCount]
other = "Khoảng {{ .Count }} từ"
[single.readingTime]
one = "One minute"
other = "{{ .Count }} phút"
+6 -3
View File
@@ -36,14 +36,14 @@ other = "标签"
[posts]
other = "文章"
[taxonomy.totalwordCount]
other = "总计约 {{ .Count }} 字"
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "最近更新"
[section.totalWordCount]
other = "总计约 {{ .Count }} 字"
# === Section ===
# === Pagination ===
@@ -118,6 +118,9 @@ password = "密码"
encryptyAgain = "重新加密"
[single.wordCount]
other = "{{ .Count }} 字"
[single.fuzzyWordCount]
other = "约 {{ .Count }} 字"
[single.readingTime]
+6 -3
View File
@@ -36,14 +36,14 @@ other = "標籤"
[posts]
other = "文章"
[taxonomy.totalwordCount]
other = "總計約 {{ .Count }} 字"
# === Taxonomy ===
# === Section ===
[section]
recentlyUpdated = "最近更新"
[section.totalWordCount]
other = "總計約 {{ .Count }} 字"
# === Section ===
# === Pagination ===
@@ -118,6 +118,9 @@ password = "密碼"
encryptyAgain = "重新加密"
[single.wordCount]
other = "{{ .Count }} 字"
[single.fuzzyWordCount]
other = "約 {{ .Count }} 字"
[single.readingTime]
+2 -2
View File
@@ -21,8 +21,8 @@
{{- if ge $humanizedNum 1000 -}}
{{- $humanizedNum = printf "%.2fK" (div $humanizedNum 1000.0) -}}
{{- end -}}
<p class="single-subtitle total-word-count" title='{{- T "taxonomy.totalwordCount" 1 }}'>
{{- dict "Class" "fa-regular fa-keyboard fa-fw" | partial "plugin/icon.html" }} {{ T "taxonomy.totalwordCount" (dict "Count" $humanizedNum) -}}
<p class="single-subtitle total-word-count" title='{{- T "section.totalWordCount" . }}'>
{{- dict "Class" "fa-regular fa-keyboard fa-fw" | partial "plugin/icon.html" }} {{ T "section.totalWordCount" (dict "Count" $humanizedNum) -}}
</p>
{{- end -}}
</div>
+2 -2
View File
@@ -74,9 +74,9 @@
</span>&nbsp;
{{- end -}}
{{- if $params.wordCount -}}
<span>
<span title="{{ T "single.wordCount" .WordCount }}">
{{- dict "Class" "fa-solid fa-pencil-alt fa-fw me-1" | partial "plugin/icon.html" -}}
{{- T "single.wordCount" .WordCount -}}
{{- T "single.fuzzyWordCount" .FuzzyWordCount -}}
</span>&nbsp;
{{- end -}}
{{- if $params.readingTime -}}