Skip to content

Commit

Permalink
Merge pull request #2689 from Mihc3/lang/sl-year-fix
Browse files Browse the repository at this point in the history
Update SL language ("2 years ago" translation)
  • Loading branch information
kylekatarnls authored Oct 25, 2022
2 parents 0098de7 + 6aa312c commit 3ae645b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Carbon/Lang/sl.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
'a_second' => '{1}nekaj sekund|:count sekunda|:count sekundi|:count sekunde|:count sekund',
's' => ':count s',

'year_ago' => ':count letom|:count leti|:count leti|:count leti',
'y_ago' => ':count letom|:count leti|:count leti|:count leti',
'year_ago' => ':count letom|:count letoma|:count leti|:count leti',
'y_ago' => ':count letom|:count letoma|:count leti|:count leti',
'month_ago' => ':count mesecem|:count meseci|:count meseci|:count meseci',
'week_ago' => ':count tednom|:count tednoma|:count tedni|:count tedni',
'day_ago' => ':count dnem|:count dnevoma|:count dnevi|:count dnevi',
Expand Down
6 changes: 3 additions & 3 deletions tests/Localization/SlSiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ class SlSiTest extends LocalizationTestCase

// Carbon::now()->subYears(2)->diffForHumans()
// '2 years ago'
'pred 2 leti',
'pred 2 letoma',

// Carbon::now()->subYears(2)->diffForHumans(null, false, true)
// '2yrs ago'
'pred 2 leti',
'pred 2 letoma',

// Carbon::now()->addSecond()->diffForHumans()
// '1 second from now'
Expand Down Expand Up @@ -399,7 +399,7 @@ class SlSiTest extends LocalizationTestCase

// Carbon::now()->subYears(2)->subMonths(3)->subDay()->subSecond()->diffForHumans(null, null, true, 4)
// '2yrs 3mos 1d 1s ago'
'pred 2 leti 3 mes. 1 dnem 1 s',
'pred 2 letoma 3 mes. 1 dnem 1 s',

// Carbon::now()->addWeek()->addHours(10)->diffForHumans(null, true, false, 2)
// '1 week 10 hours'
Expand Down
6 changes: 3 additions & 3 deletions tests/Localization/SlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ class SlTest extends LocalizationTestCase

// Carbon::now()->subYears(2)->diffForHumans()
// '2 years ago'
'pred 2 leti',
'pred 2 letoma',

// Carbon::now()->subYears(2)->diffForHumans(null, false, true)
// '2yrs ago'
'pred 2 leti',
'pred 2 letoma',

// Carbon::now()->addSecond()->diffForHumans()
// '1 second from now'
Expand Down Expand Up @@ -399,7 +399,7 @@ class SlTest extends LocalizationTestCase

// Carbon::now()->subYears(2)->subMonths(3)->subDay()->subSecond()->diffForHumans(null, null, true, 4)
// '2yrs 3mos 1d 1s ago'
'pred 2 leti 3 mes. 1 dnem 1 s',
'pred 2 letoma 3 mes. 1 dnem 1 s',

// Carbon::now()->addWeek()->addHours(10)->diffForHumans(null, true, false, 2)
// '1 week 10 hours'
Expand Down

0 comments on commit 3ae645b

Please sign in to comment.