From ae732f39317e4619770bc086e08ac21a256fa0e3 Mon Sep 17 00:00:00 2001 From: Jian Liew Date: Thu, 12 Nov 2020 17:48:55 +0800 Subject: [PATCH] Added binary prefix for kilobyte using i18n (#461) --- i18n/ar.toml | 5 ++++- i18n/de.toml | 5 ++++- i18n/en.toml | 5 ++++- i18n/es.toml | 3 +++ i18n/fr.toml | 5 ++++- i18n/hi.toml | 3 +++ i18n/id.toml | 3 +++ i18n/ja.toml | 3 +++ i18n/nl.toml | 3 +++ i18n/pt.toml | 3 +++ i18n/ru.toml | 5 ++++- i18n/tr.toml | 3 +++ i18n/zh-cn.toml | 3 +++ layouts/shortcodes/attachments.html | 4 ++-- 14 files changed, 46 insertions(+), 7 deletions(-) diff --git a/i18n/ar.toml b/i18n/ar.toml index 66e90e148c..cfce2ed6e9 100644 --- a/i18n/ar.toml +++ b/i18n/ar.toml @@ -23,4 +23,7 @@ other = "تعديل هذه الصفحة" other = "المزيد" [Expand-title] -other = "...قم بتوسيع" \ No newline at end of file +other = "...قم بتوسيع" + +[BinaryPrefix-kilobyte] +other = "kb" \ No newline at end of file diff --git a/i18n/de.toml b/i18n/de.toml index 55ced7a593..2d50ed381c 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -23,4 +23,7 @@ other = "Bearbeite diese Seite" other = "Mehr" [Expand-title] -other = "Erweitere mich..." \ No newline at end of file +other = "Erweitere mich..." + +[BinaryPrefix-kilobyte] +other = "kb" \ No newline at end of file diff --git a/i18n/en.toml b/i18n/en.toml index 118345fae9..7b7d0caa67 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -23,4 +23,7 @@ other = "Edit this page" other = "More" [Expand-title] -other = "Expand me..." \ No newline at end of file +other = "Expand me..." + +[BinaryPrefix-kilobyte] +other = "kb" \ No newline at end of file diff --git a/i18n/es.toml b/i18n/es.toml index 57b7a332e8..aad5aa354d 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -24,3 +24,6 @@ other = "Más" [Expand-title] other = "Expandir..." + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/i18n/fr.toml b/i18n/fr.toml index 106f20d5b6..65bd26ec98 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -23,4 +23,7 @@ other = "Modifier la page" other = "Aller plus loin" [Expand-title] -other = "Déroulez-moi..." \ No newline at end of file +other = "Déroulez-moi..." + +[BinaryPrefix-kilobyte] +other = "ko" \ No newline at end of file diff --git a/i18n/hi.toml b/i18n/hi.toml index b0f2515723..8d19ca3593 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -24,3 +24,6 @@ other = "अधिक सामग्री दिखाएं" [Expand-title] other = "विस्तार करे..." + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/i18n/id.toml b/i18n/id.toml index e0aa5ae793..fac7e45005 100644 --- a/i18n/id.toml +++ b/i18n/id.toml @@ -24,3 +24,6 @@ other = "Lainnya" [Expand-title] other = "Bentangkan..." + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/i18n/ja.toml b/i18n/ja.toml index e7510c3075..02769be7da 100644 --- a/i18n/ja.toml +++ b/i18n/ja.toml @@ -24,3 +24,6 @@ other = "更に" [Expand-title] other = "開く..." + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/i18n/nl.toml b/i18n/nl.toml index cca84b4116..b4d604bae9 100644 --- a/i18n/nl.toml +++ b/i18n/nl.toml @@ -24,3 +24,6 @@ other = "Snelkoppelingen" [Expand-title] other = "Lees meer..." + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/i18n/pt.toml b/i18n/pt.toml index b110533ed7..6575b4ac25 100644 --- a/i18n/pt.toml +++ b/i18n/pt.toml @@ -24,3 +24,6 @@ other = "Mais" [Expand-title] other = "Expandir..." + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/i18n/ru.toml b/i18n/ru.toml index 36ad079405..84b7df9b31 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -23,4 +23,7 @@ other = "Редактировать" other = "Еще" [Expand-title] -other = "Развернуть..." \ No newline at end of file +other = "Развернуть..." + +[BinaryPrefix-kilobyte] +other = "килобайт" \ No newline at end of file diff --git a/i18n/tr.toml b/i18n/tr.toml index 17249ede57..c3affe3d29 100644 --- a/i18n/tr.toml +++ b/i18n/tr.toml @@ -24,3 +24,6 @@ other = "Dahası Var" [Expand-title] other = "Genişlet..." + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index e887d3e634..4a6d435930 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -24,3 +24,6 @@ other = "更多" [Expand-title] other = "展开" + +[BinaryPrefix-kilobyte] +other = "kb" diff --git a/layouts/shortcodes/attachments.html b/layouts/shortcodes/attachments.html index 1725fc4640..d688b71856 100644 --- a/layouts/shortcodes/attachments.html +++ b/layouts/shortcodes/attachments.html @@ -18,7 +18,7 @@ {{.Name}} - ({{div .Size 1024 }} ko) + ({{div .Size 1024 }} {{T "BinaryPrefix-kilobyte"}}) {{end}} {{else}} @@ -26,7 +26,7 @@ {{.Name}} - ({{div .Size 1024 }} ko) + ({{div .Size 1024 }} {{T "BinaryPrefix-kilobyte"}}) {{end}} {{end}}