Skip to content

Commit

Permalink
i18n: mark missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Oct 25, 2024
1 parent 5507a30 commit 36a75a4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* // This file is part of Invenio-App-Rdm
* // Copyright (C) 2023 CERN.
* // Copyright (C) 2024 KTH Royal Institute of Technology.
* //
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
* // under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -176,7 +177,7 @@ export class ImpersonateUserForm extends Component {
</Modal.Content>
<Modal.Actions>
<Button onClick={this.handleModalClose} floated="left">
Close
{i18next.t("Close")}
</Button>
<Button
size="small"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* // This file is part of Invenio-App-Rdm
* // Copyright (C) 2023 CERN.
* // Copyright (C) 2024 KTH Royal Institute of Technology.
* //
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
* // under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -81,7 +82,7 @@ export class RestoreConfirmation extends Component {
</Modal.Content>
<Modal.Actions>
<Button onClick={this.handleModalClose} floated="left">
Close
{i18next.t("Close")}
</Button>
<Button
size="small"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* // This file is part of Invenio-App-Rdm
* // Copyright (C) 2023 CERN.
* // Copyright (C) 2024 KTH Royal Institute of Technology.
* //
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
* // under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -129,7 +130,7 @@ export default class TombstoneForm extends Component {
this.handleVisibility(setFieldValue, true)
}
>
Public
{i18next.t("Public")}
</Button>
<Button
active={!values.is_visible}
Expand All @@ -139,7 +140,7 @@ export default class TombstoneForm extends Component {
this.handleVisibility(setFieldValue, false)
}
>
Hidden
{i18next.t("Hidden")}
</Button>
</Button.Group>
{!values.is_visible && isPublic && (
Expand Down Expand Up @@ -182,7 +183,7 @@ export default class TombstoneForm extends Component {
</Modal.Content>
<Modal.Actions>
<Button onClick={this.handleModalClose} floated="left">
Close
{i18next.t("Close")}
</Button>
<Button
size="small"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* This file is part of Invenio.
* Copyright (C) 2022 CERN.
* Copyright (C) 2024 KTH Royal Institute of Technology.
*
* Invenio is free software; you can redistribute it and/or modify it
* under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -85,7 +86,7 @@ class SearchResultItemComponent extends Component {
)}
>
<Icon name="paperclip" />
Records
{i18next.t("Records")}
</a>
</Table.Cell>
<Table.Cell data-label={i18next.t("Status")}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// This file is part of InvenioRDM
// Copyright (C) 2024 CERN.
// Copyright (C) 2024 KTH Royal Institute of Technology.
//
// Invenio RDM Records is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.

import _get from "lodash/get";
import { i18next } from "@translations/invenio_app_rdm/i18next";
import isEmpty from "lodash/isEmpty";
Expand Down Expand Up @@ -149,7 +156,7 @@ export class AccessRequestForm extends Component {
<TextField
required
fieldPath="email"
label="Your email address"
label={i18next.t("Your email address")}
placeholder={i18next.t("Email address")}
icon="at"
iconPosition="left"
Expand Down Expand Up @@ -217,15 +224,15 @@ export class AccessRequestForm extends Component {
}}
</Formik>
<Modal open={modalOpen}>
<Modal.Header>Email confirmation needed</Modal.Header>
<Modal.Header>{i18next.t("Email confirmation needed")}</Modal.Header>
<Modal.Content>
<Modal.Description>
We have sent you an email to verify your address. Please check the email
and follow the instructions to complete the access request.
{i18next.t("We have sent you an email to verify your address.")}
{i18next.t("Please check the email and follow the instructions to complete the access request.")}
</Modal.Description>
</Modal.Content>
<Modal.Actions>
<Button onClick={this.handleModalClose}>Close</Button>
<Button onClick={this.handleModalClose}>{i18next.t("Close")}</Button>
</Modal.Actions>
</Modal>
</>
Expand Down

0 comments on commit 36a75a4

Please sign in to comment.