Skip to content

Commit ec3b5e2

Browse files
committed
Translate error messages to English
1 parent cc47c95 commit ec3b5e2

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

api/startPaymentPrint.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
if (empty($config['payments']['enabled'])) {
1616
echo json_encode([
1717
'status' => 'disabled',
18-
'error' => 'Zahlungssystem ist deaktiviert',
18+
'error' => 'Payment system disabled',
1919
]);
2020
exit;
2121
}
@@ -68,7 +68,7 @@
6868
http_response_code(500);
6969
echo json_encode([
7070
'status' => 'error',
71-
'error' => 'Anbieter ist nicht SumUp',
71+
'error' => 'Payment provider is not SumUp',
7272
]);
7373
exit;
7474
}
@@ -77,7 +77,7 @@
7777
http_response_code(500);
7878
echo json_encode([
7979
'status' => 'error',
80-
'error' => 'SumUp Merchant Code fehlt',
80+
'error' => 'SumUp Merchant Code missing',
8181
]);
8282
exit;
8383
}
@@ -86,7 +86,7 @@
8686
http_response_code(500);
8787
echo json_encode([
8888
'status' => 'error',
89-
'error' => 'Preis (Cent) ist ungültig oder fehlt',
89+
'error' => 'Price (cents) is invalid or missing',
9090
]);
9191
exit;
9292
}
@@ -96,7 +96,7 @@
9696
http_response_code(500);
9797
echo json_encode([
9898
'status' => 'error',
99-
'error' => 'SumUp Reader ID fehlt',
99+
'error' => 'SumUp Reader ID missing',
100100
]);
101101
exit;
102102
}
@@ -105,7 +105,7 @@
105105
http_response_code(500);
106106
echo json_encode([
107107
'status' => 'error',
108-
'error' => 'SumUp Affiliate Key fehlt',
108+
'error' => 'SumUp Affiliate Key missing',
109109
]);
110110
exit;
111111
}
@@ -114,7 +114,7 @@
114114
http_response_code(500);
115115
echo json_encode([
116116
'status' => 'error',
117-
'error' => 'sumup_solo.py wurde nicht gefunden',
117+
'error' => 'sumup_solo.py not found',
118118
]);
119119
exit;
120120
}
@@ -141,14 +141,14 @@
141141
if ($returnVar === 0) {
142142
echo json_encode([
143143
'status' => 'success',
144-
'message' => 'Zahlung erfolgreich - Druck startet...',
144+
'message' => 'Payment successful - printing starts...',
145145
]);
146146
exit;
147147
}
148148

149149
echo json_encode([
150150
'status' => 'error',
151-
'error' => 'Zahlung fehlgeschlagen oder abgebrochen',
151+
'error' => 'Payment failed or was cancelled',
152152
'log' => implode("\n", $output),
153153
]);
154154
exit;
@@ -159,7 +159,7 @@
159159
http_response_code(500);
160160
echo json_encode([
161161
'status' => 'error',
162-
'error' => 'ngrok URL / webhook_url fehlt',
162+
'error' => 'ngrok URL / webhook_url missing',
163163
]);
164164
exit;
165165
}
@@ -168,7 +168,7 @@
168168
http_response_code(500);
169169
echo json_encode([
170170
'status' => 'error',
171-
'error' => 'create_checkout.py wurde nicht gefunden',
171+
'error' => 'create_checkout.py not found',
172172
]);
173173
exit;
174174
}
@@ -202,7 +202,7 @@
202202
http_response_code(500);
203203
echo json_encode([
204204
'status' => 'error',
205-
'error' => 'QR-Zahlungslink konnte nicht erstellt werden',
205+
'error' => 'The QR payment link could not be generated.',
206206
'log' => implode("\n", $checkoutOutput),
207207
]);
208208
exit;
@@ -229,7 +229,7 @@
229229
echo json_encode([
230230
'status' => 'qr',
231231
'payment_url' => $paymentUrl,
232-
'message' => 'QR-Zahlung bereit',
232+
'message' => 'QR payment ready',
233233
]);
234234
exit;
235235
}
@@ -238,7 +238,7 @@
238238
http_response_code(500);
239239
echo json_encode([
240240
'status' => 'error',
241-
'error' => 'SumUp Reader ID fehlt',
241+
'error' => 'SumUp Reader ID missing',
242242
]);
243243
exit;
244244
}
@@ -247,7 +247,7 @@
247247
http_response_code(500);
248248
echo json_encode([
249249
'status' => 'error',
250-
'error' => 'SumUp Affiliate Key fehlt',
250+
'error' => 'SumUp Affiliate Key missing',
251251
]);
252252
exit;
253253
}
@@ -256,7 +256,7 @@
256256
http_response_code(500);
257257
echo json_encode([
258258
'status' => 'error',
259-
'error' => 'sumup_solo.py wurde nicht gefunden',
259+
'error' => 'sumup_solo.py not found',
260260
]);
261261
exit;
262262
}
@@ -280,15 +280,15 @@
280280
echo json_encode([
281281
'status' => 'both',
282282
'payment_url' => $paymentUrl,
283-
'message' => 'QR-Zahlung bereit, Terminal wurde im Hintergrund gestartet',
283+
'message' => 'QR payment ready, Terminal started in background',
284284
]);
285285
exit;
286286
}
287287

288288
http_response_code(500);
289289
echo json_encode([
290290
'status' => 'error',
291-
'error' => 'Ungültiger Zahlungsmodus',
291+
'error' => 'Invalid payment method',
292292
]);
293293
} catch (\Throwable $e) {
294294
http_response_code(500);

0 commit comments

Comments
 (0)