Skip to content

Commit

Permalink
more locales
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Feb 4, 2025
1 parent 142d27b commit 68494ab
Show file tree
Hide file tree
Showing 22 changed files with 114 additions and 20 deletions.
2 changes: 2 additions & 0 deletions app/Actions/Statistics/Counts.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function getTakenAtCountOverTime(?int $owner_id = null, int $min_date = 3
*/
public function getMinCreatedAt(?int $owner_id = null): string
{
// @phpstan-ignore-next-line Phpstan does not recognise that the result of the query has the attribute min_created_at
return DB::table('photos')
->select(DB::raw('min(created_at) as min_created_at'))
->when($owner_id !== null, function ($query, $owner_id) {
Expand All @@ -97,6 +98,7 @@ public function getMinCreatedAt(?int $owner_id = null): string
*/
public function getMinTakenAt(?int $owner_id = null): string
{
// @phpstan-ignore-next-line Phpstan does not recognise that the result of the query has the attribute min_taken_at
return DB::table('photos')
->select(DB::raw('min(taken_at) as min_taken_at'))
->whereNotNull('taken_at')
Expand Down
4 changes: 4 additions & 0 deletions lang/cz/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/de/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/el/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/en/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/es/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/fr/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/hu/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/it/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/ja/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/nl/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/no/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/pl/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/pt/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/ru/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/sk/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/sv/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/vi/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/zh_CN/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
4 changes: 4 additions & 0 deletions lang/zh_TW/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
'punch_card' => [
'title' => 'Activity',
'photo-taken' => '%d photos taken',
'photo-taken-in' => '%d photos taken in %d',
'photo-uploaded' => '%d photos uploaded',
'photo-uploaded-in' => '%d photos uploaded in %d',
'with-exif' => 'with exif data',
'less' => 'Less',
'more' => 'More',
'tooltip' => '%d photos on %s',
'created_at' => 'Upload date',
'taken_at' => 'Exif date',
],
];
Loading

0 comments on commit 68494ab

Please sign in to comment.