extends LitElement {
extends LitElement {
${this.columns().map(
- (col) => html`${col} | `
- )}
+ (col) => html`${gettext(col)} | `
+ )}
diff --git a/web/src/pages/RouterOutlet.ts b/web/src/pages/RouterOutlet.ts
index 814e97fc6..863d3d03d 100644
--- a/web/src/pages/RouterOutlet.ts
+++ b/web/src/pages/RouterOutlet.ts
@@ -141,7 +141,8 @@ export class RouterOutlet extends LitElement {
this.current = matchedRoute;
}
- render(): TemplateResult {
+ render(): TemplateResult | undefined {
+ // TODO: Render 404 when current Route is empty
return this.current?.render();
}
}
diff --git a/web/src/pages/applications/ApplicationListPage.ts b/web/src/pages/applications/ApplicationListPage.ts
index 8a580295c..7a48108d3 100644
--- a/web/src/pages/applications/ApplicationListPage.ts
+++ b/web/src/pages/applications/ApplicationListPage.ts
@@ -1,3 +1,4 @@
+import { gettext } from "django";
import { customElement } from "lit-element";
import { Application } from "../../api/application";
import { PBResponse } from "../../api/client";
@@ -6,13 +7,13 @@ import { TablePage } from "../../elements/table/TablePage";
@customElement("pb-application-list")
export class ApplicationList extends TablePage {
pageTitle(): string {
- return "Applications";
+ return gettext("Applications");
}
pageDescription(): string {
- return "External Applications which use passbook as Identity-Provider, utilizing protocols like OAuth2 and SAML.";
+ return gettext("External Applications which use passbook as Identity-Provider, utilizing protocols like OAuth2 and SAML.");
}
pageIcon(): string {
- return "pf-icon pf-icon-applications";
+ return gettext("pf-icon pf-icon-applications");
}
apiEndpoint(page: number): Promise> {