1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 21:02:06 -04:00

i18n: general term cleanup, add missing terms, interpolate some

This commit is contained in:
bbedward
2025-12-18 16:19:27 -05:00
parent baf23157fc
commit 2a91bc41f7
30 changed files with 1540 additions and 421 deletions

View File

@@ -384,7 +384,7 @@ Singleton {
DMSService.sendRequest("cups.pausePrinter", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to pause printer") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to pause printer"), response.error);
} else {
getState();
}
@@ -400,7 +400,7 @@ Singleton {
DMSService.sendRequest("cups.resumePrinter", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to resume printer") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to resume printer"), response.error);
} else {
getState();
}
@@ -417,7 +417,7 @@ Singleton {
DMSService.sendRequest("cups.cancelJob", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to cancel selected job") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to cancel selected job"), response.error);
} else {
fetchJobsForPrinter(printerName);
}
@@ -433,7 +433,7 @@ Singleton {
DMSService.sendRequest("cups.purgeJobs", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to cancel all jobs") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to cancel all jobs"), response.error);
} else {
fetchJobsForPrinter(printerName);
}
@@ -499,7 +499,7 @@ Singleton {
DMSService.sendRequest("cups.createPrinter", params, response => {
creatingPrinter = false;
if (response.error) {
ToastService.showError(I18n.tr("Failed to create printer") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to create printer"), response.error);
} else {
ToastService.showInfo(I18n.tr("Printer created successfully"));
getState();
@@ -516,7 +516,7 @@ Singleton {
DMSService.sendRequest("cups.deletePrinter", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to delete printer") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to delete printer"), response.error);
} else {
ToastService.showInfo(I18n.tr("Printer deleted"));
if (selectedPrinter === printerName) {
@@ -536,7 +536,7 @@ Singleton {
DMSService.sendRequest("cups.acceptJobs", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to enable job acceptance") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to enable job acceptance"), response.error);
} else {
getState();
}
@@ -552,7 +552,7 @@ Singleton {
DMSService.sendRequest("cups.rejectJobs", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to disable job acceptance") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to disable job acceptance"), response.error);
} else {
getState();
}
@@ -569,7 +569,7 @@ Singleton {
DMSService.sendRequest("cups.setPrinterShared", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to update sharing") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to update sharing"), response.error);
} else {
getState();
}
@@ -586,7 +586,7 @@ Singleton {
DMSService.sendRequest("cups.setPrinterLocation", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to update location") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to update location"), response.error);
} else {
getState();
}
@@ -603,7 +603,7 @@ Singleton {
DMSService.sendRequest("cups.setPrinterInfo", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to update description") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to update description"), response.error);
} else {
getState();
}
@@ -619,7 +619,7 @@ Singleton {
DMSService.sendRequest("cups.printTestPage", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to print test page") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to print test page"), response.error);
} else {
ToastService.showInfo(I18n.tr("Test page sent to printer"));
fetchJobsForPrinter(printerName);
@@ -637,7 +637,7 @@ Singleton {
DMSService.sendRequest("cups.moveJob", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to move job") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to move job"), response.error);
} else {
fetchAllJobs();
}
@@ -653,7 +653,7 @@ Singleton {
DMSService.sendRequest("cups.restartJob", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to restart job") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to restart job"), response.error);
} else {
fetchAllJobs();
}
@@ -672,7 +672,7 @@ Singleton {
DMSService.sendRequest("cups.holdJob", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to hold job") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to hold job"), response.error);
} else {
fetchAllJobs();
}
@@ -689,7 +689,7 @@ Singleton {
DMSService.sendRequest("cups.addPrinterToClass", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to add printer to class") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to add printer to class"), response.error);
} else {
getClasses();
}
@@ -706,7 +706,7 @@ Singleton {
DMSService.sendRequest("cups.removePrinterFromClass", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to remove printer from class") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to remove printer from class"), response.error);
} else {
getClasses();
}
@@ -722,7 +722,7 @@ Singleton {
DMSService.sendRequest("cups.deleteClass", params, response => {
if (response.error) {
ToastService.showError(I18n.tr("Failed to delete class") + " - " + response.error);
ToastService.showError(I18n.tr("Failed to delete class"), response.error);
} else {
getClasses();
}