From bf4e277db787c3c9f218901178a1c7e39db98656 Mon Sep 17 00:00:00 2001 From: marcin Date: Wed, 14 Oct 2020 19:07:40 +0200 Subject: [PATCH] Add translation to timeago.js Update translation --- .../main/webapp/src/lib/angular.timeago.js | 23 +++++++++++++++++++ docs-web/src/main/webapp/src/locale/pl.json | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/docs-web/src/main/webapp/src/lib/angular.timeago.js b/docs-web/src/main/webapp/src/lib/angular.timeago.js index 129820ea..72ef6d95 100644 --- a/docs-web/src/main/webapp/src/lib/angular.timeago.js +++ b/docs-web/src/main/webapp/src/lib/angular.timeago.js @@ -356,6 +356,29 @@ angular.module('yaru22.angular-timeago').config(["timeAgoSettings", function(tim 'use strict'; +angular.module('yaru22.angular-timeago').config(["timeAgoSettings", function(timeAgoSettings) { + timeAgoSettings.strings['pl'] = { + prefixAgo: null, + prefixFromNow: null, + suffixAgo: 'temu', + suffixFromNow: 'od teraz', + seconds: 'mniej niż minuta', + minute: 'około minuty', + minutes: '%d minut', + hour: 'około godziny', + hours: 'około %d godzin', + day: 'dzień', + days: '%d dni', + month: 'około miesiąca', + months: '%d miesięcy', + year: 'około roku', + years: '%d lat', + numbers: [] + }; +}]); + +'use strict'; + angular.module('yaru22.angular-timeago').config(["timeAgoSettings", function(timeAgoSettings) { timeAgoSettings.strings['pt_BR'] = { prefixAgo: null, diff --git a/docs-web/src/main/webapp/src/locale/pl.json b/docs-web/src/main/webapp/src/locale/pl.json index 2b0fe68b..5303ac77 100644 --- a/docs-web/src/main/webapp/src/locale/pl.json +++ b/docs-web/src/main/webapp/src/locale/pl.json @@ -85,7 +85,7 @@ "page_size_30": "30 na stronę", "upgrade_quota": "Aby zwiększyć twój limit, zapytaj swojego administratora", "quota": "{{ current | number: 0 }}MB ({{ percent | number: 1 }}%) z dostępnych {{ total | number: 0 }}MB", - "count": "{{ count }} dokument{{ count > 1 ? 'ów' : '' }} found", + "count": "{{ count }} dokument{{ count > 1 ? 'ów' : '' }} znaleziony", "last_updated": "Ostatnio zmieniony {{ date | timeAgo: dateFormat }}", "view": { "delete_comment_title": "Usuń komentarz",