feat(i18n): enhanced i18n support (#3730)
This commit is contained in:
parent
c73a403cdc
commit
330e11c7ff
@ -53,7 +53,7 @@ function ViewerHeader({ hotkeysManager, extensionManager, servicesManager }) {
|
|||||||
onClick: () =>
|
onClick: () =>
|
||||||
show({
|
show({
|
||||||
content: AboutModal,
|
content: AboutModal,
|
||||||
title: 'About OHIF Viewer',
|
title: t('AboutModal:About OHIF Viewer'),
|
||||||
contentProps: { versionNumber, commitHash },
|
contentProps: { versionNumber, commitHash },
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
@ -62,7 +62,7 @@ function ViewerHeader({ hotkeysManager, extensionManager, servicesManager }) {
|
|||||||
icon: 'settings',
|
icon: 'settings',
|
||||||
onClick: () =>
|
onClick: () =>
|
||||||
show({
|
show({
|
||||||
title: t('UserPreferencesModal:User Preferences'),
|
title: t('UserPreferencesModal:User preferences'),
|
||||||
content: UserPreferences,
|
content: UserPreferences,
|
||||||
contentProps: {
|
contentProps: {
|
||||||
hotkeyDefaults: hotkeysManager.getValidHotkeyDefinitions(hotkeyDefaults),
|
hotkeyDefaults: hotkeysManager.getValidHotkeyDefinitions(hotkeyDefaults),
|
||||||
|
|||||||
@ -254,11 +254,11 @@ function WorkList({
|
|||||||
const studyDate =
|
const studyDate =
|
||||||
date &&
|
date &&
|
||||||
moment(date, ['YYYYMMDD', 'YYYY.MM.DD'], true).isValid() &&
|
moment(date, ['YYYYMMDD', 'YYYY.MM.DD'], true).isValid() &&
|
||||||
moment(date, ['YYYYMMDD', 'YYYY.MM.DD']).format('MMM-DD-YYYY');
|
moment(date, ['YYYYMMDD', 'YYYY.MM.DD']).format(t('Common:localDateFormat','MMM-DD-YYYY'));
|
||||||
const studyTime =
|
const studyTime =
|
||||||
time &&
|
time &&
|
||||||
moment(time, ['HH', 'HHmm', 'HHmmss', 'HHmmss.SSS']).isValid() &&
|
moment(time, ['HH', 'HHmm', 'HHmmss', 'HHmmss.SSS']).isValid() &&
|
||||||
moment(time, ['HH', 'HHmm', 'HHmmss', 'HHmmss.SSS']).format('hh:mm A');
|
moment(time, ['HH', 'HHmm', 'HHmmss', 'HHmmss.SSS']).format(t('Common:localTimeFormat', 'hh:mm A'));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dataCY: `studyRow-${studyInstanceUid}`,
|
dataCY: `studyRow-${studyInstanceUid}`,
|
||||||
@ -327,10 +327,10 @@ function WorkList({
|
|||||||
expandedContent: (
|
expandedContent: (
|
||||||
<StudyListExpandedRow
|
<StudyListExpandedRow
|
||||||
seriesTableColumns={{
|
seriesTableColumns={{
|
||||||
description: 'Description',
|
description: t('StudyList:Description'),
|
||||||
seriesNumber: 'Series',
|
seriesNumber: t('StudyList:Series'),
|
||||||
modality: 'Modality',
|
modality: t('StudyList:Modality'),
|
||||||
instances: 'Instances',
|
instances: t('StudyList:Instances'),
|
||||||
}}
|
}}
|
||||||
seriesTableDataSource={
|
seriesTableDataSource={
|
||||||
seriesInStudiesMap.has(studyInstanceUid)
|
seriesInStudiesMap.has(studyInstanceUid)
|
||||||
@ -416,7 +416,7 @@ function WorkList({
|
|||||||
onClick: () =>
|
onClick: () =>
|
||||||
show({
|
show({
|
||||||
content: AboutModal,
|
content: AboutModal,
|
||||||
title: 'About OHIF Viewer',
|
title: t('AboutModal:About OHIF Viewer'),
|
||||||
contentProps: { versionNumber, commitHash },
|
contentProps: { versionNumber, commitHash },
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
@ -425,7 +425,7 @@ function WorkList({
|
|||||||
icon: 'settings',
|
icon: 'settings',
|
||||||
onClick: () =>
|
onClick: () =>
|
||||||
show({
|
show({
|
||||||
title: t('UserPreferencesModal:User Preferences'),
|
title: t('UserPreferencesModal:User preferences'),
|
||||||
content: UserPreferences,
|
content: UserPreferences,
|
||||||
contentProps: {
|
contentProps: {
|
||||||
hotkeyDefaults: hotkeysManager.getValidHotkeyDefinitions(hotkeyDefaults),
|
hotkeyDefaults: hotkeysManager.getValidHotkeyDefinitions(hotkeyDefaults),
|
||||||
|
|||||||
@ -1,35 +1,37 @@
|
|||||||
|
import i18n from 'i18next';
|
||||||
|
|
||||||
const filtersMeta = [
|
const filtersMeta = [
|
||||||
{
|
{
|
||||||
name: 'patientName',
|
name: 'patientName',
|
||||||
displayName: 'PatientName',
|
displayName: i18n.t('StudyList:PatientName'),
|
||||||
inputType: 'Text',
|
inputType: 'Text',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
gridCol: 4,
|
gridCol: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'mrn',
|
name: 'mrn',
|
||||||
displayName: 'MRN',
|
displayName: i18n.t('StudyList:MRN'),
|
||||||
inputType: 'Text',
|
inputType: 'Text',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
gridCol: 3,
|
gridCol: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'studyDate',
|
name: 'studyDate',
|
||||||
displayName: 'StudyDate',
|
displayName: i18n.t('StudyList:StudyDate'),
|
||||||
inputType: 'DateRange',
|
inputType: 'DateRange',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
gridCol: 5,
|
gridCol: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'description',
|
name: 'description',
|
||||||
displayName: 'StudyDescription',
|
displayName: i18n.t('StudyList:Description'),
|
||||||
inputType: 'Text',
|
inputType: 'Text',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
gridCol: 4,
|
gridCol: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'modalities',
|
name: 'modalities',
|
||||||
displayName: 'Modality',
|
displayName: i18n.t('StudyList:Modality'),
|
||||||
inputType: 'MultiSelect',
|
inputType: 'MultiSelect',
|
||||||
inputProps: {
|
inputProps: {
|
||||||
options: [
|
options: [
|
||||||
@ -110,14 +112,14 @@ const filtersMeta = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'accession',
|
name: 'accession',
|
||||||
displayName: 'AccessionNumber',
|
displayName: i18n.t('StudyList:AccessionNumber'),
|
||||||
inputType: 'Text',
|
inputType: 'Text',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
gridCol: 3,
|
gridCol: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'instances',
|
name: 'instances',
|
||||||
displayName: 'Instances',
|
displayName: i18n.t('StudyList:Instances'),
|
||||||
inputType: 'None',
|
inputType: 'None',
|
||||||
isSortable: false,
|
isSortable: false,
|
||||||
gridCol: 2,
|
gridCol: 2,
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"About OHIF Viewer": "Über OHIF Viewer",
|
||||||
"Browser": "Browser",
|
"Browser": "Browser",
|
||||||
"Build Number": "Build-Nummer",
|
"Build number": "Build-Nummer",
|
||||||
"Latest Master Commits": "Letzter Master Commit",
|
"Last master commits": "Letzter Master Commit",
|
||||||
"More details": "Mehr Details",
|
"More details": "Mehr Details",
|
||||||
"Name": "Name",
|
"Name": "Name",
|
||||||
"About OHIF Viewer": "Über OHIF Viewer",
|
|
||||||
"OS": "OS",
|
"OS": "OS",
|
||||||
"Report an issue": "Ein Problem melden",
|
"Report an issue": "Ein Problem melden",
|
||||||
"Repository URL": "Repository URL",
|
"Repository URL": "Repository URL",
|
||||||
"Value": "Wert",
|
"Value": "Wert",
|
||||||
"Version Information": "Informationen zur Version",
|
"Version information": "Informationen zur Version",
|
||||||
"Visit the forum": "Besuchen Sie das Forum"
|
"Visit the forum": "Besuchen Sie das Forum"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
"Rectangle": "Rechteck",
|
"Rectangle": "Rechteck",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset View": "$t(Common:Reset)",
|
"Reset View": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "Auf Default zurücksetzen",
|
"Reset to defaults": "Auf Default zurücksetzen",
|
||||||
"Rotate Right": "Nach rechts drehen",
|
"Rotate Right": "Nach rechts drehen",
|
||||||
"Rotate +90": "Drehen +90",
|
"Rotate +90": "Drehen +90",
|
||||||
"Sagittal": "Sagittal",
|
"Sagittal": "Sagittal",
|
||||||
|
|||||||
@ -9,5 +9,5 @@
|
|||||||
"Description": "Beschreibung",
|
"Description": "Beschreibung",
|
||||||
"Study list": "Studienliste",
|
"Study list": "Studienliste",
|
||||||
"Instances": "Instanzen",
|
"Instances": "Instanzen",
|
||||||
"Studies": "Studien"
|
"Number of studies": "Studien"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"No hotkeys found": "Keine Hotkeys gefunden.",
|
"No hotkeys found": "Keine Hotkeys gefunden.",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"ResetDefaultMessage": "Einstellungen zurückgesetzt. Bitte speichern.",
|
"ResetDefaultMessage": "Einstellungen zurückgesetzt. Bitte speichern.",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"SaveMessage": "Gespeichert",
|
"SaveMessage": "Gespeichert",
|
||||||
"User Preferences": "Benutzereinstellungen",
|
"User preferences": "Benutzereinstellungen",
|
||||||
"Language": "Sprache",
|
"Language": "Sprache",
|
||||||
"General": "Allgemein"
|
"General": "Allgemein"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,18 @@
|
|||||||
{
|
{
|
||||||
|
"About OHIF Viewer": "About OHIF Viewer",
|
||||||
"Browser": "Browser",
|
"Browser": "Browser",
|
||||||
"Build Number": "Build Number",
|
"Build number": "Build Number",
|
||||||
"Latest Master Commits": "Latest Master Commits",
|
"Commit hash": "Commit hash",
|
||||||
|
"Data citation": "Data citation",
|
||||||
|
"Important links": "Important links",
|
||||||
|
"Last master commits": "Latest Master Commits",
|
||||||
"More details": "More details",
|
"More details": "More details",
|
||||||
"Name": "Name",
|
"Name": "Name",
|
||||||
"OHIF Viewer - About": "OHIF Viewer - About",
|
|
||||||
"OS": "OS",
|
"OS": "OS",
|
||||||
"Report an issue": "Report an issue",
|
"Report an issue": "Report an issue",
|
||||||
"Repository URL": "Repository URL",
|
"Repository URL": "Repository URL",
|
||||||
"Value": "Value",
|
"Value": "Value",
|
||||||
"Version Information": "Version Information",
|
"Version information": "Version Information",
|
||||||
|
"Version number": "Version number",
|
||||||
"Visit the forum": "Visit the forum"
|
"Visit the forum": "Visit the forum"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
"Rectangle": "Rectangle",
|
"Rectangle": "Rectangle",
|
||||||
"Reference Lines": "Reference Lines",
|
"Reference Lines": "Reference Lines",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "$t(Common:Reset) to Defaults",
|
"Reset to defaults": "$t(Common:Reset) to Defaults",
|
||||||
"Rotate Right": "Rotate Right",
|
"Rotate Right": "Rotate Right",
|
||||||
"Sagittal": "Sagittal",
|
"Sagittal": "Sagittal",
|
||||||
"Save": "Save",
|
"Save": "Save",
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"Clear dates": "Clear dates",
|
"Clear dates": "Clear dates",
|
||||||
|
"Close": "$t(Common:Close)",
|
||||||
"End Date": "End Date",
|
"End Date": "End Date",
|
||||||
"Start Date": "Start Date"
|
"Last 7 days": "Last 7 days",
|
||||||
|
"Last 30 days": "Last 30 days",
|
||||||
|
"Start Date": "Start Date",
|
||||||
|
"Today": "Today"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,9 +11,8 @@
|
|||||||
"Previous": "< Back",
|
"Previous": "< Back",
|
||||||
"Page": "Page",
|
"Page": "Page",
|
||||||
"Next": "Next >",
|
"Next": "Next >",
|
||||||
"ResultsPerPage": "Results per page",
|
"Results per page": "Results per page",
|
||||||
"Studies": "Studies",
|
"Number of studies": "Studies",
|
||||||
"StudyDate": "Study Date",
|
"StudyDate": "Study Date",
|
||||||
"StudyDescription": "Description",
|
|
||||||
"StudyList": "Study List"
|
"StudyList": "Study List"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"No hotkeys found": "No hotkeys are configured for this application. Hotkeys can be configured in the application's app-config.js file.",
|
"No hotkeys found": "No hotkeys are configured for this application. Hotkeys can be configured in the application's app-config.js file.",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"ResetDefaultMessage": "Preferences successfully reset to default. <br /> You must <strong>Save</strong> to perform this action.",
|
"ResetDefaultMessage": "Preferences successfully reset to default. <br /> You must <strong>Save</strong> to perform this action.",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"SaveMessage": "Preferences saved",
|
"SaveMessage": "Preferences saved",
|
||||||
"User Preferences": "User Preferences"
|
"User preferences": "User Preferences"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"About OHIF Viewer": "Sobre OHIF Viewer",
|
||||||
"Browser": "Navegador",
|
"Browser": "Navegador",
|
||||||
"Build Number": "Número de compilación",
|
"Build number": "Número de compilación",
|
||||||
"Latest Master Commits": "Últimos Master Commits",
|
"Last master commits": "Últimos Master Commits",
|
||||||
"More details": "Más detalles",
|
"More details": "Más detalles",
|
||||||
"Name": "Nombre",
|
"Name": "Nombre",
|
||||||
"OHIF Viewer - About": "Sobre OHIF Viewer",
|
|
||||||
"OS": "SO",
|
"OS": "SO",
|
||||||
"Report an issue": "Informar un problema",
|
"Report an issue": "Informar un problema",
|
||||||
"Repository URL": "URL del repositorio",
|
"Repository URL": "URL del repositorio",
|
||||||
"Value": "Valor",
|
"Value": "Valor",
|
||||||
"Version Information": "Información de la versión",
|
"Version information": "Información de la versión",
|
||||||
"Visit the forum": "Visita el foro"
|
"Visit the forum": "Visita el foro"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
"ROI Window": "Ventana ROI",
|
"ROI Window": "Ventana ROI",
|
||||||
"Rectangle": "Rectángulo",
|
"Rectangle": "Rectángulo",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "$t(Common:Reset) por defecto",
|
"Reset to defaults": "$t(Common:Reset) por defecto",
|
||||||
"Rotate Right": "Girar ->",
|
"Rotate Right": "Girar ->",
|
||||||
"Sagittal": "Sagital",
|
"Sagittal": "Sagital",
|
||||||
"Save": "Guardar",
|
"Save": "Guardar",
|
||||||
|
|||||||
@ -11,9 +11,8 @@
|
|||||||
"Previous": "< Anterior",
|
"Previous": "< Anterior",
|
||||||
"Page": "Página",
|
"Page": "Página",
|
||||||
"Next": "Siguiente >",
|
"Next": "Siguiente >",
|
||||||
"ResultsPerPage": "Resultados por página",
|
"Results per page": "Resultados por página",
|
||||||
"Studies": "Estudios",
|
"Number of studies": "Estudios",
|
||||||
"StudyDate": "Fecha del estudio",
|
"StudyDate": "Fecha del estudio",
|
||||||
"StudyDescription": "Descripción",
|
|
||||||
"StudyList": "Lista de Estudios"
|
"StudyList": "Lista de Estudios"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"User Preferences": "Preferencias de Usuario"
|
"User preferences": "Preferencias de Usuario"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
"ROI Window": "ROI fenêtrage",
|
"ROI Window": "ROI fenêtrage",
|
||||||
"Rectangle": "Rectangle",
|
"Rectangle": "Rectangle",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "Valeurs d'usine",
|
"Reset to defaults": "Valeurs d'usine",
|
||||||
"Rotate Right": "Tourner à droite",
|
"Rotate Right": "Tourner à droite",
|
||||||
"Sagittal": "Sagittal",
|
"Sagittal": "Sagittal",
|
||||||
"Save": "Sauvegarder",
|
"Save": "Sauvegarder",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"User Preferences": "Préférences utilisateur"
|
"User preferences": "Préférences utilisateur"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
"ROI Window": "ROIウィンドウ",
|
"ROI Window": "ROIウィンドウ",
|
||||||
"Rectangle": "長方形",
|
"Rectangle": "長方形",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "デフォルトへ$t(Common:Reset)",
|
"Reset to defaults": "デフォルトへ$t(Common:Reset)",
|
||||||
"Rotate Right": "右に回転",
|
"Rotate Right": "右に回転",
|
||||||
"Sagittal": "サジタル",
|
"Sagittal": "サジタル",
|
||||||
"Save": "保存",
|
"Save": "保存",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"User Preferences": "ユーザプレファレンス"
|
"User preferences": "ユーザプレファレンス"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"About OHIF Viewer": "OHIF Viewer - Sobre",
|
||||||
"Browser": "Navegador",
|
"Browser": "Navegador",
|
||||||
"Build Number": "Número da compilação",
|
"Build number": "Número da compilação",
|
||||||
"Latest Master Commits": "Últimos Commits na Master",
|
"Last master commits": "Últimos Commits na Master",
|
||||||
"More details": "Mais detalhes",
|
"More details": "Mais detalhes",
|
||||||
"Name": "Nome",
|
"Name": "Nome",
|
||||||
"OHIF Viewer - About": "OHIF Viewer - Sobre",
|
|
||||||
"OS": "SO",
|
"OS": "SO",
|
||||||
"Report an issue": "Informar um problema",
|
"Report an issue": "Informar um problema",
|
||||||
"Repository URL": "URL do Repositório",
|
"Repository URL": "URL do Repositório",
|
||||||
"Value": "Valor",
|
"Value": "Valor",
|
||||||
"Version Information": "Informação da Versão",
|
"Version information": "Informação da Versão",
|
||||||
"Visit the forum": "Visite o fórum"
|
"Visit the forum": "Visite o fórum"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
"ROI Window": "Janela ROI",
|
"ROI Window": "Janela ROI",
|
||||||
"Rectangle": "Retângulo",
|
"Rectangle": "Retângulo",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "$t(Common:Reset) para o Padrão",
|
"Reset to defaults": "$t(Common:Reset) para o Padrão",
|
||||||
"Rotate Right": "Girar à direita",
|
"Rotate Right": "Girar à direita",
|
||||||
"Sagittal": "Sagital",
|
"Sagittal": "Sagital",
|
||||||
"Save": "Salvar",
|
"Save": "Salvar",
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "Cancelar",
|
"Cancel": "Cancelar",
|
||||||
"Reset to Defaults": "$t(Common:Reset) para Padrão",
|
"Reset to defaults": "$t(Common:Reset) para Padrão",
|
||||||
"ResetDefaultMessage": "Preferências resetadas com sucesso. <br /> Você deve <strong>Salvar</strong> para que essa ação seja realizada.",
|
"ResetDefaultMessage": "Preferências resetadas com sucesso. <br /> Você deve <strong>Salvar</strong> para que essa ação seja realizada.",
|
||||||
"Save": "Salvar",
|
"Save": "Salvar",
|
||||||
"SaveMessage": "Preferências salvas",
|
"SaveMessage": "Preferências salvas",
|
||||||
"User Preferences": "Preferências do Usuário"
|
"User preferences": "Preferências do Usuário"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,18 @@
|
|||||||
{
|
{
|
||||||
|
"About OHIF Viewer": "About OHIF Viewer",
|
||||||
"Browser": "Browser",
|
"Browser": "Browser",
|
||||||
"Build Number": "Build Number",
|
"Build Number": "Build Number",
|
||||||
"Latest Master Commits": "Latest Master Commits",
|
"Commit hash": "Commit hash",
|
||||||
|
"Data citation": "Data citation",
|
||||||
|
"Important links": "Important links",
|
||||||
|
"Last master commits": "Latest Master Commits",
|
||||||
"More details": "More details",
|
"More details": "More details",
|
||||||
"Name": "Name",
|
"Name": "Name",
|
||||||
"OHIF Viewer - About": "OHIF Viewer - About",
|
|
||||||
"OS": "OS",
|
"OS": "OS",
|
||||||
"Report an issue": "Report an issue",
|
"Report an issue": "Report an issue",
|
||||||
"Repository URL": "Repository URL",
|
"Repository URL": "Repository URL",
|
||||||
"Value": "Value",
|
"Value": "Value",
|
||||||
"Version Information": "Version Information",
|
"Version information": "Version Information",
|
||||||
|
"Version number": "Version number",
|
||||||
"Visit the forum": "Visit the forum"
|
"Visit the forum": "Visit the forum"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
"ROI Window": "Test ROI Window",
|
"ROI Window": "Test ROI Window",
|
||||||
"Rectangle": "Test Rectangle",
|
"Rectangle": "Test Rectangle",
|
||||||
"Reset": "Test $t(Common:Reset)",
|
"Reset": "Test $t(Common:Reset)",
|
||||||
"Reset to Defaults": "Test $t(Common:Reset) to Defaults",
|
"Reset to defaults": "Test $t(Common:Reset) to Defaults",
|
||||||
"Rotate Right": "Test Rotate Right",
|
"Rotate Right": "Test Rotate Right",
|
||||||
"Sagittal": "Test Sagittal",
|
"Sagittal": "Test Sagittal",
|
||||||
"Save": "Test Save",
|
"Save": "Test Save",
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"Clear dates": "Clear dates",
|
"Clear dates": "Clear dates",
|
||||||
|
"Close": "$t(Common:Close)",
|
||||||
"End Date": "End Date",
|
"End Date": "End Date",
|
||||||
"Start Date": "Start Date"
|
"Last 7 days": "Last 7 days",
|
||||||
|
"Last 30 days": "Last 30 days",
|
||||||
|
"Start Date": "Start Date",
|
||||||
|
"Today": "Today"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
"Description": "Test Description",
|
"Description": "Test Description",
|
||||||
"StudyDate": "Test Study Date",
|
"StudyDate": "Test Study Date",
|
||||||
"Study date": "Test Study Date",
|
"Study date": "Test Study Date",
|
||||||
"Studies": "Test Studies",
|
"Number of studies": "Test Studies",
|
||||||
"Series": "Test Series",
|
"Series": "Test Series",
|
||||||
"Instances": "Test Instances",
|
"Instances": "Test Instances",
|
||||||
"Study List": "Test Study List",
|
"Study List": "Test Study List",
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"No hotkeys found": "No hotkeys are configured for this application. Hotkeys can be configured in the application's app-config.js file.",
|
"No hotkeys found": "No hotkeys are configured for this application. Hotkeys can be configured in the application's app-config.js file.",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"ResetDefaultMessage": "Preferences successfully reset to default. <br /> You must <strong>Save</strong> to perform this action.",
|
"ResetDefaultMessage": "Preferences successfully reset to default. <br /> You must <strong>Save</strong> to perform this action.",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"SaveMessage": "Test Preferences saved",
|
"SaveMessage": "Test Preferences saved",
|
||||||
"User Preferences": "Test User Preferences",
|
"User preferences": "Test User Preferences",
|
||||||
"Function": "Test function",
|
"Function": "Test function",
|
||||||
"Shortcut": "Test shortcut",
|
"Shortcut": "Test shortcut",
|
||||||
"Language": "Test language",
|
"Language": "Test language",
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"About OHIF Viewer": "OHIF Viewer - Hakkında",
|
||||||
"Browser": "Tarayıcı",
|
"Browser": "Tarayıcı",
|
||||||
"Build Number": "Derleme Numarası",
|
"Build number": "Derleme Numarası",
|
||||||
"Latest Master Commits": "Son Kaynak Kod Güncellemesi",
|
"Last master commits": "Son Kaynak Kod Güncellemesi",
|
||||||
"More details": "Daha Fazla Detay",
|
"More details": "Daha Fazla Detay",
|
||||||
"Name": "İsim",
|
"Name": "İsim",
|
||||||
"OHIF Viewer - About": "OHIF Viewer - Hakkında",
|
|
||||||
"OS": "İşletim Sistemi",
|
"OS": "İşletim Sistemi",
|
||||||
"Report an issue": "Sorun Bildir",
|
"Report an issue": "Sorun Bildir",
|
||||||
"Repository URL": "Kaynak Kod URL",
|
"Repository URL": "Kaynak Kod URL",
|
||||||
"Value": "Değer",
|
"Value": "Değer",
|
||||||
"Version Information": "Sürüm Bilgisi",
|
"Version information": "Sürüm Bilgisi",
|
||||||
"Visit the forum": "Forumu ziyaret et"
|
"Visit the forum": "Forumu ziyaret et"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
"ROI Window": "ROI Penceresi",
|
"ROI Window": "ROI Penceresi",
|
||||||
"Rectangle": "Diktörtgen",
|
"Rectangle": "Diktörtgen",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "Varsayılana $t(Common:Reset)",
|
"Reset to defaults": "Varsayılana $t(Common:Reset)",
|
||||||
"Rotate Right": "Sağa Döndür",
|
"Rotate Right": "Sağa Döndür",
|
||||||
"Sagittal": "Sagital",
|
"Sagittal": "Sagital",
|
||||||
"Save": "Kaydet",
|
"Save": "Kaydet",
|
||||||
|
|||||||
@ -5,6 +5,6 @@
|
|||||||
"Modality": "Modalite",
|
"Modality": "Modalite",
|
||||||
"PatientName": "Hasta Adı",
|
"PatientName": "Hasta Adı",
|
||||||
"StudyDate": "Çalışma Zamanı",
|
"StudyDate": "Çalışma Zamanı",
|
||||||
"StudyDescription": "Açıklama",
|
"Description": "Açıklama",
|
||||||
"StudyList": "Çalışma Listesi"
|
"StudyList": "Çalışma Listesi"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"No hotkeys found": "Bu uygulama için hiçbir kısayol tuşu yapılandırılmamış. Kısayol tuşları, uygulamanın app-config.js dosyasında yapılandırılabilir.",
|
"No hotkeys found": "Bu uygulama için hiçbir kısayol tuşu yapılandırılmamış. Kısayol tuşları, uygulamanın app-config.js dosyasında yapılandırılabilir.",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"ResetDefaultMessage": "Tercihler başarıyla varsayılana sıfırlandı. <br /> Bu eylemi gerçekleştirmek için <strong>Kaydetmelisiniz</strong>.",
|
"ResetDefaultMessage": "Tercihler başarıyla varsayılana sıfırlandı. <br /> Bu eylemi gerçekleştirmek için <strong>Kaydetmelisiniz</strong>.",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"SaveMessage": "Tercihler kaydedildi",
|
"SaveMessage": "Tercihler kaydedildi",
|
||||||
"User Preferences": "Kullanıcı tercihleri"
|
"User preferences": "Kullanıcı tercihleri"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
"ROI Window": "ROI Window",
|
"ROI Window": "ROI Window",
|
||||||
"Rectangle": "Đo chữ nhật",
|
"Rectangle": "Đo chữ nhật",
|
||||||
"Reset": "$t(Common:Reset)",
|
"Reset": "$t(Common:Reset)",
|
||||||
"Reset to Defaults": "$t(Common:Reset) đến mặc định",
|
"Reset to defaults": "$t(Common:Reset) đến mặc định",
|
||||||
"Rotate Right": "Xoay phải",
|
"Rotate Right": "Xoay phải",
|
||||||
"Sagittal": "Mặt phẳng đứng dọc",
|
"Sagittal": "Mặt phẳng đứng dọc",
|
||||||
"Save": "Lưu",
|
"Save": "Lưu",
|
||||||
|
|||||||
@ -5,6 +5,6 @@
|
|||||||
"Modality": "Thiết bị",
|
"Modality": "Thiết bị",
|
||||||
"PatientName": "Tên Bệnh nhân",
|
"PatientName": "Tên Bệnh nhân",
|
||||||
"StudyDate": "Ngày chụp",
|
"StudyDate": "Ngày chụp",
|
||||||
"StudyDescription": "Diễn giải",
|
"Description": "Diễn giải",
|
||||||
"StudyList": "Danh sách"
|
"StudyList": "Danh sách"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "$t(Buttons:Cancel)",
|
"Cancel": "$t(Buttons:Cancel)",
|
||||||
"Reset to Defaults": "$t(Buttons:Reset to Defaults)",
|
"Reset to defaults": "$t(Buttons:Reset to defaults)",
|
||||||
"Save": "$t(Buttons:Save)",
|
"Save": "$t(Buttons:Save)",
|
||||||
"User Preferences": "Thiết lập theo người dùng"
|
"User preferences": "Thiết lập theo người dùng"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
"Probe": "探针",
|
"Probe": "探针",
|
||||||
"Rectangle": "矩形",
|
"Rectangle": "矩形",
|
||||||
"Reference Lines": "参考线",
|
"Reference Lines": "参考线",
|
||||||
"Reset to Defaults": "返回默认",
|
"Reset to defaults": "返回默认",
|
||||||
"Reset View": "复原",
|
"Reset View": "复原",
|
||||||
"Reset": "复原",
|
"Reset": "复原",
|
||||||
"ROI Window": "选择对比度",
|
"ROI Window": "选择对比度",
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
"Modality": "成像设备",
|
"Modality": "成像设备",
|
||||||
"PatientName": "患者姓名",
|
"PatientName": "患者姓名",
|
||||||
"StudyDate": "检查日期",
|
"StudyDate": "检查日期",
|
||||||
"StudyDescription": "描述",
|
|
||||||
"StudyList": "检查列表",
|
"StudyList": "检查列表",
|
||||||
"Patient Name": "患者姓名",
|
"Patient Name": "患者姓名",
|
||||||
"MRN": "病例号",
|
"MRN": "病例号",
|
||||||
@ -11,7 +10,7 @@
|
|||||||
"Description": "描述",
|
"Description": "描述",
|
||||||
"Study list": "检查列表",
|
"Study list": "检查列表",
|
||||||
"Clear filters": "清空条件",
|
"Clear filters": "清空条件",
|
||||||
"Studies": "",
|
"Number of studies": "",
|
||||||
"Instances": "图像数",
|
"Instances": "图像数",
|
||||||
"Accession": "检查号",
|
"Accession": "检查号",
|
||||||
"Results per page": "每页条数",
|
"Results per page": "每页条数",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "取消",
|
"Cancel": "取消",
|
||||||
"Reset to Defaults": "返回默认",
|
"Reset to defaults": "返回默认",
|
||||||
"Save": "保存",
|
"Save": "保存",
|
||||||
"User Preferences": "用户偏好"
|
"User preferences": "用户偏好"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import detect from 'browser-detect';
|
import detect from 'browser-detect';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import Typography from '../Typography';
|
import Typography from '../Typography';
|
||||||
import Icon from '../Icon';
|
import Icon from '../Icon';
|
||||||
@ -59,6 +60,7 @@ const Row = ({ title, value, link }) => {
|
|||||||
const AboutModal = ({ buildNumber, versionNumber, commitHash }) => {
|
const AboutModal = ({ buildNumber, versionNumber, commitHash }) => {
|
||||||
const { os, version, name } = detect();
|
const { os, version, name } = detect();
|
||||||
const browser = `${name[0].toUpperCase()}${name.substr(1)} ${version}`;
|
const browser = `${name[0].toUpperCase()}${name.substr(1)} ${version}`;
|
||||||
|
const { t } = useTranslation('AboutModal');
|
||||||
|
|
||||||
const renderRowTitle = title => (
|
const renderRowTitle = title => (
|
||||||
<div className="mb-3 border-b-2 border-black pb-3">
|
<div className="mb-3 border-b-2 border-black pb-3">
|
||||||
@ -73,20 +75,20 @@ const AboutModal = ({ buildNumber, versionNumber, commitHash }) => {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{renderRowTitle('Important Links')}
|
{renderRowTitle(t('Important links'))}
|
||||||
<div className="mb-8 flex">
|
<div className="mb-8 flex">
|
||||||
<Link
|
<Link
|
||||||
href="https://community.ohif.org/"
|
href="https://community.ohif.org/"
|
||||||
showIcon={true}
|
showIcon={true}
|
||||||
>
|
>
|
||||||
Visit the forum
|
{t('Visit the forum')}
|
||||||
</Link>
|
</Link>
|
||||||
<span className="ml-4">
|
<span className="ml-4">
|
||||||
<Link
|
<Link
|
||||||
href="https://github.com/OHIF/Viewers/issues/new/choose"
|
href="https://github.com/OHIF/Viewers/issues/new/choose"
|
||||||
showIcon={true}
|
showIcon={true}
|
||||||
>
|
>
|
||||||
Report an issue
|
{t('Report an issue')}
|
||||||
</Link>
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
<span className="ml-4">
|
<span className="ml-4">
|
||||||
@ -94,50 +96,50 @@ const AboutModal = ({ buildNumber, versionNumber, commitHash }) => {
|
|||||||
href="https://ohif.org/"
|
href="https://ohif.org/"
|
||||||
showIcon={true}
|
showIcon={true}
|
||||||
>
|
>
|
||||||
More details
|
{t('More details')}
|
||||||
</Link>
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{renderRowTitle('Version Information')}
|
{renderRowTitle(t('Version information'))}
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<Row
|
<Row
|
||||||
title="Repository URL"
|
title={t('Repository URL')}
|
||||||
value="https://github.com/OHIF/Viewers/"
|
value="https://github.com/OHIF/Viewers/"
|
||||||
link="https://github.com/OHIF/Viewers/"
|
link="https://github.com/OHIF/Viewers/"
|
||||||
/>
|
/>
|
||||||
<Row
|
<Row
|
||||||
title="Data Citation"
|
title={t('Data citation')}
|
||||||
value="https://github.com/OHIF/Viewers/blob/master/DATACITATION.md"
|
value="https://github.com/OHIF/Viewers/blob/master/DATACITATION.md"
|
||||||
link="https://github.com/OHIF/Viewers/blob/master/DATACITATION.md"
|
link="https://github.com/OHIF/Viewers/blob/master/DATACITATION.md"
|
||||||
/>
|
/>
|
||||||
{/* <Row
|
{/* <Row
|
||||||
title="Last Master Commits"
|
title={t('Last master commits')}
|
||||||
value="https://github.com/OHIF/Viewers/"
|
value="https://github.com/OHIF/Viewers/"
|
||||||
link="https://github.com/OHIF/Viewers/"
|
link="https://github.com/OHIF/Viewers/"
|
||||||
/> */}
|
/> */}
|
||||||
<Row
|
<Row
|
||||||
title="Version number"
|
title={t('Version number')}
|
||||||
value={versionNumber}
|
value={versionNumber}
|
||||||
/>
|
/>
|
||||||
{buildNumber && (
|
{buildNumber && (
|
||||||
<Row
|
<Row
|
||||||
title="Build number"
|
title={t('Build number')}
|
||||||
value={buildNumber}
|
value={buildNumber}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{commitHash && (
|
{commitHash && (
|
||||||
<Row
|
<Row
|
||||||
title="Commit Hash"
|
title={t('Commit hash')}
|
||||||
value={commitHash}
|
value={commitHash}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Row
|
<Row
|
||||||
title="Browser"
|
title={t('Browser')}
|
||||||
value={browser}
|
value={browser}
|
||||||
/>
|
/>
|
||||||
<Row
|
<Row
|
||||||
title="OS"
|
title={t('OS')}
|
||||||
value={os}
|
value={os}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import React, { useState, useCallback } from 'react';
|
import React, { useState, useCallback } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
/** REACT DATES */
|
/** REACT DATES */
|
||||||
import { DateRangePicker, isInclusivelyBeforeDay } from 'react-dates';
|
import { DateRangePicker, isInclusivelyBeforeDay } from 'react-dates';
|
||||||
@ -8,27 +9,6 @@ import 'react-dates/initialize';
|
|||||||
import 'react-dates/lib/css/_datepicker.css';
|
import 'react-dates/lib/css/_datepicker.css';
|
||||||
import './DateRange.css';
|
import './DateRange.css';
|
||||||
|
|
||||||
const today = moment();
|
|
||||||
const lastWeek = moment().subtract(7, 'day');
|
|
||||||
const lastMonth = moment().subtract(1, 'month');
|
|
||||||
const studyDatePresets = [
|
|
||||||
{
|
|
||||||
text: 'Today',
|
|
||||||
start: today,
|
|
||||||
end: today,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last 7 days',
|
|
||||||
start: lastWeek,
|
|
||||||
end: today,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Last 30 days',
|
|
||||||
start: lastMonth,
|
|
||||||
end: today,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
const renderYearsOptions = () => {
|
const renderYearsOptions = () => {
|
||||||
const currentYear = moment().year();
|
const currentYear = moment().year();
|
||||||
const options = [];
|
const options = [];
|
||||||
@ -52,6 +32,27 @@ const DateRange = props => {
|
|||||||
const { id, onChange, startDate, endDate } = props;
|
const { id, onChange, startDate, endDate } = props;
|
||||||
const [focusedInput, setFocusedInput] = useState(null);
|
const [focusedInput, setFocusedInput] = useState(null);
|
||||||
const renderYearsOptionsCallback = useCallback(renderYearsOptions, []);
|
const renderYearsOptionsCallback = useCallback(renderYearsOptions, []);
|
||||||
|
const { t } = useTranslation('DatePicker');
|
||||||
|
const today = moment();
|
||||||
|
const lastWeek = moment().subtract(7, 'day');
|
||||||
|
const lastMonth = moment().subtract(1, 'month');
|
||||||
|
const studyDatePresets = [
|
||||||
|
{
|
||||||
|
text: t('Today'),
|
||||||
|
start: today,
|
||||||
|
end: today,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: t('Last 7 days'),
|
||||||
|
start: lastWeek,
|
||||||
|
end: today,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: t('Last 30 days'),
|
||||||
|
start: lastMonth,
|
||||||
|
end: today,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const renderDatePresets = () => {
|
const renderDatePresets = () => {
|
||||||
return (
|
return (
|
||||||
@ -149,11 +150,11 @@ const DateRange = props => {
|
|||||||
/** OPTIONAL */
|
/** OPTIONAL */
|
||||||
renderCalendarInfo={renderDatePresets}
|
renderCalendarInfo={renderDatePresets}
|
||||||
renderMonthElement={renderMonthElement}
|
renderMonthElement={renderMonthElement}
|
||||||
startDatePlaceholderText={'Start Date'}
|
startDatePlaceholderText={t('Start Date')}
|
||||||
endDatePlaceholderText={'End Date'}
|
endDatePlaceholderText={t('End Date')}
|
||||||
phrases={{
|
phrases={{
|
||||||
closeDatePicker: 'Close',
|
closeDatePicker: t('Close'),
|
||||||
clearDates: 'Clear dates',
|
clearDates: t('Clear dates'),
|
||||||
}}
|
}}
|
||||||
isOutsideRange={day => !isInclusivelyBeforeDay(day, moment())}
|
isOutsideRange={day => !isInclusivelyBeforeDay(day, moment())}
|
||||||
hideKeyboardShortcutsPanel={true}
|
hideKeyboardShortcutsPanel={true}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ const HotkeysPreferences = ({
|
|||||||
const splitedHotkeys = splitHotkeyDefinitionsAndCreateTuples(visibleHotkeys);
|
const splitedHotkeys = splitHotkeyDefinitionsAndCreateTuples(visibleHotkeys);
|
||||||
|
|
||||||
if (!Object.keys(hotkeyDefinitions).length) {
|
if (!Object.keys(hotkeyDefinitions).length) {
|
||||||
return 'No hotkey definitions';
|
return t('No hotkeys found');
|
||||||
}
|
}
|
||||||
|
|
||||||
const onHotkeyChangeHandler = (id, definition) => {
|
const onHotkeyChangeHandler = (id, definition) => {
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
|
|
||||||
import Icon from '../Icon';
|
import Icon from '../Icon';
|
||||||
|
|
||||||
@ -21,8 +20,6 @@ const InputLabelWrapper = ({
|
|||||||
className,
|
className,
|
||||||
children,
|
children,
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation('StudyList');
|
|
||||||
|
|
||||||
const onClickHandler = e => {
|
const onClickHandler = e => {
|
||||||
if (!isSortable) {
|
if (!isSortable) {
|
||||||
return;
|
return;
|
||||||
@ -40,7 +37,7 @@ const InputLabelWrapper = ({
|
|||||||
onKeyDown={onClickHandler}
|
onKeyDown={onClickHandler}
|
||||||
tabIndex="0"
|
tabIndex="0"
|
||||||
>
|
>
|
||||||
{t(label)}
|
{label}
|
||||||
{isSortable && (
|
{isSortable && (
|
||||||
<Icon
|
<Icon
|
||||||
name={sortIconMap[sortDirection]}
|
name={sortIconMap[sortDirection]}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
|
|
||||||
import Table from '../Table';
|
import Table from '../Table';
|
||||||
import TableHead from '../TableHead';
|
import TableHead from '../TableHead';
|
||||||
@ -9,8 +8,6 @@ import TableRow from '../TableRow';
|
|||||||
import TableCell from '../TableCell';
|
import TableCell from '../TableCell';
|
||||||
|
|
||||||
const StudyListExpandedRow = ({ seriesTableColumns, seriesTableDataSource, children }) => {
|
const StudyListExpandedRow = ({ seriesTableColumns, seriesTableDataSource, children }) => {
|
||||||
const { t } = useTranslation('StudyList');
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full bg-black py-4 pl-12 pr-2">
|
<div className="w-full bg-black py-4 pl-12 pr-2">
|
||||||
<div className="block">{children}</div>
|
<div className="block">{children}</div>
|
||||||
@ -19,7 +16,7 @@ const StudyListExpandedRow = ({ seriesTableColumns, seriesTableDataSource, child
|
|||||||
<TableHead>
|
<TableHead>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
{Object.keys(seriesTableColumns).map(columnKey => {
|
{Object.keys(seriesTableColumns).map(columnKey => {
|
||||||
return <TableCell key={columnKey}>{t(seriesTableColumns[columnKey])}</TableCell>;
|
return <TableCell key={columnKey}>{seriesTableColumns[columnKey]}</TableCell>;
|
||||||
})}
|
})}
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHead>
|
</TableHead>
|
||||||
|
|||||||
@ -78,7 +78,7 @@ const StudyListFilter = ({
|
|||||||
variant="h6"
|
variant="h6"
|
||||||
className="text-primary-light"
|
className="text-primary-light"
|
||||||
>
|
>
|
||||||
{t('Studies')}
|
{t('Number of studies')}
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -43,7 +43,7 @@ const StudyListPagination = ({ onChangePage, currentPage, perPage, onChangePerPa
|
|||||||
hideSelectedOptions={true}
|
hideSelectedOptions={true}
|
||||||
onChange={onSelectedRange}
|
onChange={onSelectedRange}
|
||||||
/>
|
/>
|
||||||
<Typography className="text-base opacity-60">{t('ResultsPerPage')}</Typography>
|
<Typography className="text-base opacity-60">{t('Results per page')}</Typography>
|
||||||
</div>
|
</div>
|
||||||
<div className="">
|
<div className="">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
|
|||||||
@ -112,7 +112,7 @@ const UserPreferences = ({
|
|||||||
onClick={onResetHandler}
|
onClick={onResetHandler}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
{t('Reset to Defaults')}
|
{t('Reset to defaults')}
|
||||||
</Button>
|
</Button>
|
||||||
<div className="flex flex-row">
|
<div className="flex flex-row">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user