Skip to content

Commit

Permalink
Added binary prefix for kilobyte using i18n (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
JianLoong authored Nov 12, 2020
1 parent c3a66e9 commit ae732f3
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 7 deletions.
5 changes: 4 additions & 1 deletion i18n/ar.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ other = "تعديل هذه الصفحة"
other = "المزيد"

[Expand-title]
other = "...قم بتوسيع"
other = "...قم بتوسيع"

[BinaryPrefix-kilobyte]
other = "kb"
5 changes: 4 additions & 1 deletion i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ other = "Bearbeite diese Seite"
other = "Mehr"

[Expand-title]
other = "Erweitere mich..."
other = "Erweitere mich..."

[BinaryPrefix-kilobyte]
other = "kb"
5 changes: 4 additions & 1 deletion i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ other = "Edit this page"
other = "More"

[Expand-title]
other = "Expand me..."
other = "Expand me..."

[BinaryPrefix-kilobyte]
other = "kb"
3 changes: 3 additions & 0 deletions i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "Más"

[Expand-title]
other = "Expandir..."

[BinaryPrefix-kilobyte]
other = "kb"
5 changes: 4 additions & 1 deletion i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ other = "Modifier la page"
other = "Aller plus loin"

[Expand-title]
other = "Déroulez-moi..."
other = "Déroulez-moi..."

[BinaryPrefix-kilobyte]
other = "ko"
3 changes: 3 additions & 0 deletions i18n/hi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "अधिक सामग्री दिखाएं"

[Expand-title]
other = "विस्तार करे..."

[BinaryPrefix-kilobyte]
other = "kb"
3 changes: 3 additions & 0 deletions i18n/id.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "Lainnya"

[Expand-title]
other = "Bentangkan..."

[BinaryPrefix-kilobyte]
other = "kb"
3 changes: 3 additions & 0 deletions i18n/ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "更に"

[Expand-title]
other = "開く..."

[BinaryPrefix-kilobyte]
other = "kb"
3 changes: 3 additions & 0 deletions i18n/nl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "Snelkoppelingen"

[Expand-title]
other = "Lees meer..."

[BinaryPrefix-kilobyte]
other = "kb"
3 changes: 3 additions & 0 deletions i18n/pt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "Mais"

[Expand-title]
other = "Expandir..."

[BinaryPrefix-kilobyte]
other = "kb"
5 changes: 4 additions & 1 deletion i18n/ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ other = "Редактировать"
other = "Еще"

[Expand-title]
other = "Развернуть..."
other = "Развернуть..."

[BinaryPrefix-kilobyte]
other = "килобайт"
3 changes: 3 additions & 0 deletions i18n/tr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "Dahası Var"

[Expand-title]
other = "Genişlet..."

[BinaryPrefix-kilobyte]
other = "kb"
3 changes: 3 additions & 0 deletions i18n/zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ other = "更多"

[Expand-title]
other = "展开"

[BinaryPrefix-kilobyte]
other = "kb"
4 changes: 2 additions & 2 deletions layouts/shortcodes/attachments.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
<a href="{{ (printf "%s%s/%s" $fileDir ($.Scratch.Get "filesName") .Name) | relURL }}" >
{{.Name}}
</a>
({{div .Size 1024 }} ko)
({{div .Size 1024 }} {{T "BinaryPrefix-kilobyte"}})
</li>
{{end}}
{{else}}
<li>
<a href="{{ (printf "%s%s/%s" $fileDir ($.Scratch.Get "filesName") .Name) | relURL }}" >
{{.Name}}
</a>
({{div .Size 1024 }} ko)
({{div .Size 1024 }} {{T "BinaryPrefix-kilobyte"}})
</li>
{{end}}
{{end}}
Expand Down

0 comments on commit ae732f3

Please sign in to comment.