-
Notifications
You must be signed in to change notification settings - Fork 186
[document_repository] Translate document repository #9954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
1365ea0
to
dc2ff91
Compare
if (this.state.error) { | ||
return <h3>An error occured while loading the page.</h3>; | ||
return <h3>{t('An error occured while loading the page.', | ||
{ns: 'document_repository'})}</h3>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is in the loris namespace?
if (this.state.error) { | ||
return <h3>An error occured while loading the page.</h3>; | ||
return <h3>{t('An error occured while loading the page.', | ||
{ns: 'document_repository'})}</h3>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong namespace here too?
if (this.state.error) { | ||
return <h3>An error occured while loading the page.</h3>; | ||
return <h3>{t('An error occured while loading the page.', | ||
{ns: 'document_repository'})}</h3>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris string
<SelectElement | ||
name="forSite" | ||
label="Site" | ||
label={t('Site', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
<SelectElement | ||
name="instrument" | ||
label="Instrument" | ||
label={t('Instrument', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if it currently exists in the loris namespace but "Instrument" is a common loris term that should be in that namespace.
<TextboxElement | ||
name="pscid" | ||
label="PSCID" | ||
label={t('PSCID', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
<TextboxElement | ||
name="visitLabel" | ||
label="Visit Label" | ||
label={t('Visit Label', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
if (this.state.error) { | ||
return <h3>An error occured while loading the page.</h3>; | ||
return <h3>{t('An error occured while loading the page.', | ||
{ns: 'document_repository'})}</h3>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
name="forSite" | ||
label="Site" | ||
placeHolder="Search for site" | ||
label={t('Site', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
<SelectElement | ||
name="instrument" | ||
label="Instrument" | ||
label={t('Instrument', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
<TextboxElement | ||
name="pscid" | ||
label="PSCID" | ||
label={t('PSCID', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
<TextboxElement | ||
name="visitLabel" | ||
label="Visit Label" | ||
label={t('Visit Label', {ns: 'document_repository'})} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loris namespace
Hi @SKADE2303, please address @driusan comments, This are the same issues we disused in #9941. Correct me if I'm wrong but I think to remember we also had a meeting about it. This namespace issue have to be addressed in most of all PRs sent. Please take a careful look to each one again. Thank you. |
This PR is responsible for translating the module document_repository to different languages. Currently only 'Hindi' language is supported but other languages can be added as required.
Testing instructions (if applicable)