Skip to content

Commit afc2b85

Browse files
authored
Merge pull request #1324 from umami-software/dev
v1.35.0
2 parents 16046a5 + 07d2761 commit afc2b85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+57
-67
lines changed

lang/fr-FR.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"label.more": "Plus",
3838
"label.name": "Nom",
3939
"label.new-password": "Nouveau mot de passe",
40-
"label.none": "None",
40+
"label.none": "Aucun·e",
4141
"label.owner": "Propriétaire",
4242
"label.password": "Mot de passe",
4343
"label.passwords-dont-match": "Les mots de passe ne correspondent pas",
@@ -104,7 +104,7 @@
104104
"metrics.page-views": "Pages vues",
105105
"metrics.pages": "Pages",
106106
"metrics.referrers": "Sources",
107-
"metrics.screens": "Screens",
107+
"metrics.screens": "Tailles d'écran",
108108
"metrics.unique-visitors": "Visiteurs uniques",
109109
"metrics.views": "Vues",
110110
"metrics.visitors": "Visiteurs"

lang/nl-NL.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"label.more": "Toon meer",
3838
"label.name": "Naam",
3939
"label.new-password": "Nieuw wachtwoord",
40-
"label.none": "None",
40+
"label.none": "Geen",
4141
"label.owner": "Eigenaar",
4242
"label.password": "Wachtwoord",
4343
"label.passwords-dont-match": "Wachtwoorden komen niet overeen",
@@ -79,7 +79,7 @@
7979
"message.no-websites-configured": "Je hebt geen websites ingesteld.",
8080
"message.page-not-found": "Pagina niet gevonden.",
8181
"message.powered-by": "mogelijk gemaakt door {name}",
82-
"message.reset-warning": "All statistics for this website will be deleted, but your tracking code will remain intact.",
82+
"message.reset-warning": "Alle bijhorende statistieken van deze website worden verwijderd, maar jouw volgcode blijft gelden.",
8383
"message.save-success": "Opslaan succesvol.",
8484
"message.share-url": "Met deze URL kan {target} openbaar gedeeld worden.",
8585
"message.toggle-charts": "Grafieken tonen/verbergen",
@@ -104,7 +104,7 @@
104104
"metrics.page-views": "Paginaweergaven",
105105
"metrics.pages": "Pagina's",
106106
"metrics.referrers": "Verwijzers",
107-
"metrics.screens": "Screens",
107+
"metrics.screens": "Schermen",
108108
"metrics.unique-visitors": "Unieke bezoekers",
109109
"metrics.views": "Weergaven",
110110
"metrics.visitors": "Bezoekers"

lib/queries.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,12 @@ export function getDatabase() {
1414
return type;
1515
}
1616

17-
export function getDateStringQuery(data, unit) {
18-
const db = getDatabase();
19-
20-
if (db === POSTGRESQL) {
21-
return `to_char(${data}, '${POSTGRESQL_DATE_FORMATS[unit]}')`;
22-
}
23-
24-
if (db === MYSQL) {
25-
return `DATE_FORMAT(${data}, '${MYSQL_DATE_FORMATS[unit]}')`;
26-
}
27-
}
28-
2917
export function getDateQuery(field, unit, timezone) {
3018
const db = getDatabase();
3119

3220
if (db === POSTGRESQL) {
3321
if (timezone) {
34-
return `date_trunc('${unit}', ${field} at time zone '${timezone}')`;
22+
return `to_char(date_trunc('${unit}', ${field} at time zone '${timezone}'), '${POSTGRESQL_DATE_FORMATS[unit]}')`;
3523
}
3624
return `date_trunc('${unit}', ${field})`;
3725
}
@@ -40,7 +28,7 @@ export function getDateQuery(field, unit, timezone) {
4028
if (timezone) {
4129
const tz = moment.tz(timezone).format('Z');
4230

43-
return `convert_tz(${field},'+00:00','${tz}')`;
31+
return `date_format(convert_tz(${field},'+00:00','${tz}'), '${MYSQL_DATE_FORMATS[unit]}')`;
4432
}
4533

4634
return `${field}`;

public/intl/messages/ar-SA.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"metrics.filter.combined": [
735735
{
736736
"type": 0,
737-
"value": "Combined"
737+
"value": "مجمعة"
738738
}
739739
],
740740
"metrics.filter.raw": [

public/intl/messages/ca-ES.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"metrics.filter.combined": [
735735
{
736736
"type": 0,
737-
"value": "Combined"
737+
"value": "Combinat"
738738
}
739739
],
740740
"metrics.filter.raw": [

public/intl/messages/cs-CZ.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"metrics.filter.combined": [
735735
{
736736
"type": 0,
737-
"value": "Combined"
737+
"value": "Kombinace"
738738
}
739739
],
740740
"metrics.filter.raw": [

public/intl/messages/da-DK.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"metrics.filter.combined": [
735735
{
736736
"type": 0,
737-
"value": "Combined"
737+
"value": "Kombineret"
738738
}
739739
],
740740
"metrics.filter.raw": [

public/intl/messages/de-DE.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"metrics.filter.combined": [
735735
{
736736
"type": 0,
737-
"value": "Combined"
737+
"value": "Kombiniert"
738738
}
739739
],
740740
"metrics.filter.raw": [

public/intl/messages/el-GR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"metrics.filter.combined": [
735735
{
736736
"type": 0,
737-
"value": "Combined"
737+
"value": "Σε συνδυασμό"
738738
}
739739
],
740740
"metrics.filter.raw": [

public/intl/messages/es-MX.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@
734734
"metrics.filter.combined": [
735735
{
736736
"type": 0,
737-
"value": "Combined"
737+
"value": "Combinado"
738738
}
739739
],
740740
"metrics.filter.raw": [

0 commit comments

Comments
 (0)