mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +01:00
pl localization
This commit is contained in:
parent
015202d1e1
commit
8d3ff86ace
9 changed files with 302 additions and 20 deletions
|
@ -51,4 +51,6 @@ en:
|
||||||
author: Author
|
author: Author
|
||||||
show_more: More
|
show_more: More
|
||||||
close: Close
|
close: Close
|
||||||
more_data_not_available: More data not available
|
binary: Binary
|
||||||
|
text: Text
|
||||||
|
general: General
|
56
config/locales/pl.yml
Normal file
56
config/locales/pl.yml
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
pl:
|
||||||
|
project_name: Nazwa projektu
|
||||||
|
project_version: Wersja projektu
|
||||||
|
generated_at: Wygenerowano
|
||||||
|
generator: Generator
|
||||||
|
report_period: Okres raportu
|
||||||
|
total_files: Liczba plików
|
||||||
|
total_lines: Liczba linii
|
||||||
|
total_commits: Liczba commitów
|
||||||
|
authors: Autorzy
|
||||||
|
commits: Commity
|
||||||
|
commits_by_hour: Commity po godzinie
|
||||||
|
files: Pliki
|
||||||
|
lines: Linie
|
||||||
|
files_by_date: Pliki po dacie
|
||||||
|
lines_by_date: Linie po dacie
|
||||||
|
files_by_extension: Pliki po rozszerzeniu
|
||||||
|
lines_by_extension: Linie po rozszerzeniu
|
||||||
|
hour_of_day: Godzina dnia
|
||||||
|
hour: Godzina
|
||||||
|
percentage: Procent
|
||||||
|
day: Dzień
|
||||||
|
day_of_week: Dzień tygodnia
|
||||||
|
hour_of_week: Godzina tygodnia
|
||||||
|
month: Miesiąc
|
||||||
|
month_of_year: Miesiąc roku
|
||||||
|
year_month: Rok i miesiąc
|
||||||
|
commits_by_wday: Commity po dniu tygodnia
|
||||||
|
commits_by_month: Commity po miesiącu
|
||||||
|
commits_by_year_month: Commity po roku i miesiącu
|
||||||
|
commits_by_month_of_year: Commity po miesiącu i roku
|
||||||
|
year: Rok
|
||||||
|
commits_by_year: Commity po roku
|
||||||
|
activity: Aktywność
|
||||||
|
activity_by_date: Aktywność po dacie
|
||||||
|
commits_by_date: Commity po dacie
|
||||||
|
insertions_by_author: Dodane linie
|
||||||
|
deletions_by_author: Usunięte linie
|
||||||
|
changed_lines_by_author: Zmienione linie
|
||||||
|
best_authors_shown: najlepszych autorów
|
||||||
|
commits_count_by_author: Liczba commitów
|
||||||
|
commits_sum_by_author_by_date: Liczba commitów po dacie
|
||||||
|
insertions_by_author_by_date: Dodane linie po dacie
|
||||||
|
deletions_by_author_by_date: Usunięte linie po dacie
|
||||||
|
changed_lines_by_author_by_date: Zmienione linie po dacie
|
||||||
|
best_authors: Najlepsi autorzy
|
||||||
|
insertions: Dodane linie
|
||||||
|
deletions: Usunięte linie
|
||||||
|
first_commit: Pierwszy commit
|
||||||
|
last_commit: Ostatni commit
|
||||||
|
author: Autor
|
||||||
|
show_more: Więcej
|
||||||
|
close: Zamknij
|
||||||
|
binary: Binarne
|
||||||
|
text: Tekstowe
|
||||||
|
general: Ogólne
|
224
config/locales/pl_default.yml
Normal file
224
config/locales/pl_default.yml
Normal file
|
@ -0,0 +1,224 @@
|
||||||
|
pl:
|
||||||
|
date:
|
||||||
|
abbr_day_names:
|
||||||
|
- nie
|
||||||
|
- pon
|
||||||
|
- wto
|
||||||
|
- śro
|
||||||
|
- czw
|
||||||
|
- pią
|
||||||
|
- sob
|
||||||
|
abbr_month_names:
|
||||||
|
-
|
||||||
|
- sty
|
||||||
|
- lut
|
||||||
|
- mar
|
||||||
|
- kwi
|
||||||
|
- maj
|
||||||
|
- cze
|
||||||
|
- lip
|
||||||
|
- sie
|
||||||
|
- wrz
|
||||||
|
- paź
|
||||||
|
- lis
|
||||||
|
- gru
|
||||||
|
day_names:
|
||||||
|
- niedziela
|
||||||
|
- poniedziałek
|
||||||
|
- wtorek
|
||||||
|
- środa
|
||||||
|
- czwartek
|
||||||
|
- piątek
|
||||||
|
- sobota
|
||||||
|
formats:
|
||||||
|
default: ! '%d-%m-%Y'
|
||||||
|
long: ! '%B %d, %Y'
|
||||||
|
short: ! '%d %b'
|
||||||
|
month_names:
|
||||||
|
-
|
||||||
|
- styczeń
|
||||||
|
- luty
|
||||||
|
- marzec
|
||||||
|
- kwiecień
|
||||||
|
- maj
|
||||||
|
- czerwiec
|
||||||
|
- lipiec
|
||||||
|
- sierpień
|
||||||
|
- wrzesień
|
||||||
|
- październik
|
||||||
|
- listopad
|
||||||
|
- grudzień
|
||||||
|
order:
|
||||||
|
- :day
|
||||||
|
- :month
|
||||||
|
- :year
|
||||||
|
datetime:
|
||||||
|
distance_in_words:
|
||||||
|
about_x_hours:
|
||||||
|
few: około %{count} godziny
|
||||||
|
one: około godziny
|
||||||
|
other: około %{count} godzin
|
||||||
|
many: około %{count} godzin
|
||||||
|
about_x_months:
|
||||||
|
few: około %{count} miesiące
|
||||||
|
one: około miesiąca
|
||||||
|
other: około %{count} miesięcy
|
||||||
|
many: około %{count} miesięcy
|
||||||
|
about_x_years:
|
||||||
|
few: około %{count} lata
|
||||||
|
one: około rok
|
||||||
|
other: około %{count} lat
|
||||||
|
many: około %{count} lat
|
||||||
|
almost_x_years:
|
||||||
|
few: prawie %{count} lata
|
||||||
|
one: prawie rok
|
||||||
|
other: prawie %{count} lat
|
||||||
|
many: prawie %{count} lat
|
||||||
|
half_a_minute: pół minuty
|
||||||
|
less_than_x_minutes:
|
||||||
|
few: mniej niż %{count} minuty
|
||||||
|
one: mniej niż minutę
|
||||||
|
other: mniej niż %{count} minut
|
||||||
|
many: mniej niż %{count} minut
|
||||||
|
less_than_x_seconds:
|
||||||
|
few: mniej niż %{count} sekundy
|
||||||
|
one: mniej niż sekundę
|
||||||
|
other: mniej niż %{count} sekund
|
||||||
|
many: mniej niż %{count} sekund
|
||||||
|
over_x_years:
|
||||||
|
few: ponad %{count} lata
|
||||||
|
one: ponad rok
|
||||||
|
other: ponad %{count} lat
|
||||||
|
many: ponad %{count} lat
|
||||||
|
x_days:
|
||||||
|
few: ! '%{count} dni'
|
||||||
|
one: 1 dzień
|
||||||
|
other: ! '%{count} dni'
|
||||||
|
many: ! '%{count} dni'
|
||||||
|
x_minutes:
|
||||||
|
few: ! '%{count} minuty'
|
||||||
|
one: 1 minuta
|
||||||
|
other: ! '%{count} minut'
|
||||||
|
many: ! '%{count} minut'
|
||||||
|
x_months:
|
||||||
|
few: ! '%{count} miesiące'
|
||||||
|
one: 1 miesiąc
|
||||||
|
other: ! '%{count} miesięcy'
|
||||||
|
many: ! '%{count} miesięcy'
|
||||||
|
x_seconds:
|
||||||
|
few: ! '%{count} sekundy'
|
||||||
|
one: 1 sekunda
|
||||||
|
other: ! '%{count} sekund'
|
||||||
|
many: ! '%{count} sekund'
|
||||||
|
prompts:
|
||||||
|
day: Dzień
|
||||||
|
hour: Godzina
|
||||||
|
minute: Minuta
|
||||||
|
month: Miesiąc
|
||||||
|
second: Sekundy
|
||||||
|
year: Rok
|
||||||
|
errors: &errors
|
||||||
|
format: ! '%{attribute} %{message}'
|
||||||
|
messages:
|
||||||
|
accepted: musi zostać zaakceptowane
|
||||||
|
blank: nie może być puste
|
||||||
|
confirmation: nie zgadza się z potwierdzeniem
|
||||||
|
empty: nie może być puste
|
||||||
|
equal_to: musi być równe %{count}
|
||||||
|
even: musi być parzyste
|
||||||
|
exclusion: jest zarezerwowane
|
||||||
|
greater_than: musi być większe od %{count}
|
||||||
|
greater_than_or_equal_to: musi być większe lub równe %{count}
|
||||||
|
inclusion: nie znajduje się na liście dopuszczalnych wartości
|
||||||
|
invalid: jest nieprawidłowe
|
||||||
|
less_than: musi być mniejsze od %{count}
|
||||||
|
less_than_or_equal_to: musi być mniejsze lub równe %{count}
|
||||||
|
not_a_number: nie jest liczbą
|
||||||
|
not_an_integer: musi być liczbą całkowitą
|
||||||
|
odd: musi być nieparzyste
|
||||||
|
record_invalid: ! 'Negatywne sprawdzenie poprawności: %{errors}'
|
||||||
|
taken: zostało już zajęte
|
||||||
|
too_long: jest za długie (maksymalnie %{count} znaków)
|
||||||
|
too_short: jest za krótkie (przynajmniej %{count} znaków)
|
||||||
|
wrong_length: ma nieprawidłową długość (powinna wynosić %{count} znaków)
|
||||||
|
template:
|
||||||
|
body: ! 'Błędy dotyczą następujących pól:'
|
||||||
|
header:
|
||||||
|
one: ! '%{model} nie został zachowany z powodu jednego błędu'
|
||||||
|
few: ! '%{model} nie został zachowany z powodu %{count} błędów'
|
||||||
|
other: ! '%{model} nie został zachowany z powodu %{count} błędów'
|
||||||
|
helpers:
|
||||||
|
select:
|
||||||
|
prompt: Proszę wybrać
|
||||||
|
submit:
|
||||||
|
create: Utwórz %{model}
|
||||||
|
submit: Zapisz %{model}
|
||||||
|
update: Aktualizuj %{model}
|
||||||
|
number:
|
||||||
|
currency:
|
||||||
|
format:
|
||||||
|
delimiter: ! ' '
|
||||||
|
format: ! '%u %n'
|
||||||
|
precision: 2
|
||||||
|
separator: ! ','
|
||||||
|
significant: false
|
||||||
|
strip_insignificant_zeros: true
|
||||||
|
unit: PLN
|
||||||
|
format:
|
||||||
|
delimiter: ! ' '
|
||||||
|
precision: 3
|
||||||
|
separator: ! ','
|
||||||
|
significant: false
|
||||||
|
strip_insignificant_zeros: false
|
||||||
|
human:
|
||||||
|
decimal_units:
|
||||||
|
format: ! '%n %u'
|
||||||
|
units:
|
||||||
|
billion: Miliard
|
||||||
|
million: Milion
|
||||||
|
quadrillion: Biliard
|
||||||
|
thousand: Tysiąc
|
||||||
|
trillion: Bilion
|
||||||
|
unit: ''
|
||||||
|
format:
|
||||||
|
delimiter: ''
|
||||||
|
precision: 3
|
||||||
|
significant: true
|
||||||
|
strip_insignificant_zeros: true
|
||||||
|
storage_units:
|
||||||
|
format: ! '%n %u'
|
||||||
|
units:
|
||||||
|
byte:
|
||||||
|
one: bajt
|
||||||
|
few: bajty
|
||||||
|
many: bajty
|
||||||
|
other: bajty
|
||||||
|
gb: GB
|
||||||
|
kb: KB
|
||||||
|
mb: MB
|
||||||
|
tb: TB
|
||||||
|
percentage:
|
||||||
|
format:
|
||||||
|
delimiter: ''
|
||||||
|
precision:
|
||||||
|
format:
|
||||||
|
delimiter: ''
|
||||||
|
support:
|
||||||
|
array:
|
||||||
|
last_word_connector: ! ' oraz '
|
||||||
|
two_words_connector: ! ' i '
|
||||||
|
words_connector: ! ', '
|
||||||
|
time:
|
||||||
|
am: przed południem
|
||||||
|
formats:
|
||||||
|
default: ! '%a, %d %b %Y %H:%M:%S %z'
|
||||||
|
long: ! '%B %d, %Y %H:%M'
|
||||||
|
short: ! '%d %b %H:%M'
|
||||||
|
pm: po południu
|
||||||
|
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
||||||
|
activemodel:
|
||||||
|
errors:
|
||||||
|
<<: *errors
|
||||||
|
activerecord:
|
||||||
|
errors:
|
||||||
|
<<: *errors
|
|
@ -35,7 +35,7 @@ module GitStats
|
||||||
title: :commits_by_wday.t,
|
title: :commits_by_wday.t,
|
||||||
y_text: :commits.t,
|
y_text: :commits.t,
|
||||||
x_text: :day.t,
|
x_text: :day.t,
|
||||||
data_x: Date::ABBR_DAYNAMES,
|
data_x: I18n.t('date.abbr_day_names'),
|
||||||
data_y: author.activity.by_wday_array
|
data_y: author.activity.by_wday_array
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
@ -47,7 +47,7 @@ module GitStats
|
||||||
title: :commits_by_month.t,
|
title: :commits_by_month.t,
|
||||||
y_text: :commits.t,
|
y_text: :commits.t,
|
||||||
x_text: :month.t,
|
x_text: :month.t,
|
||||||
data_x: Date::ABBR_MONTHNAMES[1..-1],
|
data_x: I18n.t('date.abbr_month_names')[1..-1],
|
||||||
data_y: author.activity.by_month_array
|
data_y: author.activity.by_month_array
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,11 +50,11 @@ module GitStats
|
||||||
|
|
||||||
def links
|
def links
|
||||||
{
|
{
|
||||||
'General' => 'general.html',
|
general: 'general.html',
|
||||||
'Activity' => 'activity/by_date.html',
|
activity: 'activity/by_date.html',
|
||||||
'Authors' => 'authors/best_authors.html',
|
authors: 'authors/best_authors.html',
|
||||||
'Files' => 'files/by_date.html',
|
files: 'files/by_date.html',
|
||||||
'Lines' => 'lines/by_date.html'
|
lines: 'lines/by_date.html'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
%table{:class => "table table-bordered table-condensed"}
|
%table{:class => "table table-bordered table-condensed"}
|
||||||
%tr
|
%tr
|
||||||
%th= :day.t
|
%th= :day.t
|
||||||
- Date::ABBR_DAYNAMES.each do |d|
|
- I18n.t('date.abbr_day_names').each do |d|
|
||||||
%th= d
|
%th= d
|
||||||
%tr
|
%tr
|
||||||
%th= :commits.t
|
%th= :commits.t
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
- max = author.activity.by_wday_hour.values.map {|h| h.values.empty? ? 0 : h.values.max }.max
|
- max = author.activity.by_wday_hour.values.map {|h| h.values.empty? ? 0 : h.values.max }.max
|
||||||
- (0..6).each do |day|
|
- (0..6).each do |day|
|
||||||
%tr
|
%tr
|
||||||
%th= Date::ABBR_DAYNAMES[day]
|
%th= I18n.t('date.abbr_day_names')[day]
|
||||||
- (0..23).each do |hour|
|
- (0..23).each do |hour|
|
||||||
- color = max ? "%02x" % (255 - author.activity.by_wday_hour[day][hour] * 100 / max) : "FF"
|
- color = max ? "%02x" % (255 - author.activity.by_wday_hour[day][hour] * 100 / max) : "FF"
|
||||||
%td{style: "background-color: ##{color}#{color}#{color};"}= author.activity.by_wday_hour[day][hour]
|
%td{style: "background-color: ##{color}#{color}#{color};"}= author.activity.by_wday_hour[day][hour]
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
%table{:class => "table table-bordered table-condensed"}
|
%table{:class => "table table-bordered table-condensed"}
|
||||||
%tr
|
%tr
|
||||||
%th= :month.t
|
%th= :month.t
|
||||||
- Date::ABBR_MONTHNAMES[1..-1].each do |m|
|
- I18n.t('date.abbr_month_names')[1..-1].each do |m|
|
||||||
%th= m
|
%th= m
|
||||||
%tr
|
%tr
|
||||||
%th= :commits.t
|
%th= :commits.t
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
%table{:class => "table table-bordered table-condensed"}
|
%table{:class => "table table-bordered table-condensed"}
|
||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
- Date::ABBR_MONTHNAMES[1..-1].each do |h|
|
- I18n.t('date.abbr_month_names')[1..-1].each do |h|
|
||||||
%th= h
|
%th= h
|
||||||
- author.activity.by_year_month.each do |year, months|
|
- author.activity.by_year_month.each do |year, months|
|
||||||
%tr
|
%tr
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
%td= author.commits.size
|
%td= author.commits.size
|
||||||
%td= author.insertions
|
%td= author.insertions
|
||||||
%td= author.deletions
|
%td= author.deletions
|
||||||
%td= author.commits.first.try(:date).try(:to_formatted_s, :long)
|
%td= I18n.localize(author.commits.first.try(:date), format: :long) rescue ""
|
||||||
%td= author.commits.last.try(:date).try(:to_formatted_s, :long)
|
%td= I18n.localize(author.commits.last.try(:date), format: :long) rescue ""
|
||||||
%td
|
%td
|
||||||
%a.btn{:href => "#{author.dirname}/activity/by_date.html"}= :show_more.t
|
%a.btn{:href => "#{author.dirname}/activity/by_date.html"}= :show_more.t
|
||||||
|
|
||||||
|
|
|
@ -7,19 +7,19 @@
|
||||||
%td= repo.project_version
|
%td= repo.project_version
|
||||||
%tr
|
%tr
|
||||||
%td= :generated_at.t
|
%td= :generated_at.t
|
||||||
%td= DateTime.now.to_formatted_s(:long)
|
%td= I18n.localize(DateTime.now, format: :long)
|
||||||
%tr
|
%tr
|
||||||
%td= :generator.t
|
%td= :generator.t
|
||||||
%td= "GitStats #{GitStats::VERSION}"
|
%td= "GitStats #{GitStats::VERSION}"
|
||||||
%tr
|
%tr
|
||||||
%td= :report_period.t
|
%td= :report_period.t
|
||||||
%td= repo.commits_period.map {|d| d.to_formatted_s(:long)}.join(" .. ")
|
%td= repo.commits_period.map {|d| I18n.localize(d, format: :long)}.join(" .. ")
|
||||||
%tr
|
%tr
|
||||||
%td= :total_files.t
|
%td= :total_files.t
|
||||||
%td= "#{repo.files_count} (binary: #{repo.binary_files.size}, text: #{repo.text_files.size})"
|
%td= "#{repo.files_count} (#{:binary.t}: #{repo.binary_files.size}, #{:text.t}: #{repo.text_files.size})"
|
||||||
%tr
|
%tr
|
||||||
%td= :total_lines.t
|
%td= :total_lines.t
|
||||||
%td= "#{repo.lines_count} lines (#{repo.short_stats.map(&:insertions).sum} insertions, #{repo.short_stats.map(&:deletions).sum} deletions)"
|
%td= "#{repo.lines_count} #{:lines.t} (#{repo.short_stats.map(&:insertions).sum} #{:insertions.t}, #{repo.short_stats.map(&:deletions).sum} #{:deletions.t})"
|
||||||
%tr
|
%tr
|
||||||
%td= :total_commits.t
|
%td= :total_commits.t
|
||||||
%td= repo.commits.size
|
%td= repo.commits.size
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
%div.nav-collapse.collapse
|
%div.nav-collapse.collapse
|
||||||
%ul.nav
|
%ul.nav
|
||||||
- links.each do |name, href|
|
- links.each do |name, href|
|
||||||
%li{:class => active_page[name.underscore] ? "active" : ""}
|
%li{:class => active_page[name.to_s.underscore] ? "active" : ""}
|
||||||
%a{:href => link_to(href, active_page)}= name
|
%a{:href => link_to(href, active_page)}= name.t
|
||||||
%div.container
|
%div.container
|
||||||
= yield
|
= yield
|
||||||
|
|
Loading…
Reference in a new issue