diff --git a/src/common/localization/en-us.ts b/src/common/localization/en-us.ts index 7fe04331d..3cc4a6bb1 100644 --- a/src/common/localization/en-us.ts +++ b/src/common/localization/en-us.ts @@ -129,6 +129,11 @@ export const english: IAppStrings = { backEndNotAvailable: "Checkbox feature will work in future version of Form Recognizer service, please stay tuned.", addName: "Add a model name...", downloadJson: "Download JSON file", + errors: { + electron: { + cantAccessFiles: "Cannot access files in '${folderUri}' for training. Please check if specified folder URI is correct." + } + } }, modelCompose: { @@ -336,7 +341,7 @@ export const english: IAppStrings = { browse: "Browse", selectFolder: "Select folder", chooseFolder: "Choose folder", - invalidFolderMessage: "Connection [${project.sourceConnection.providerOptions.folderPath}] and project folder [${project.folderPath}] are invalid. Please check the specified folders in the Connection and Project Settings pages", + invalidFolderMessage: "Connection [${project.sourceConnection.providerOptions.folderPath}] and/or project folder [${project.folderPath}] are invalid. Please check the specified folders in the Connection and Project Settings pages", }, }, }, diff --git a/src/common/localization/es-cl.ts b/src/common/localization/es-cl.ts index 9d3818a6a..1fa82c39f 100644 --- a/src/common/localization/es-cl.ts +++ b/src/common/localization/es-cl.ts @@ -130,6 +130,11 @@ export const spanish: IAppStrings = { backEndNotAvailable: "La función de casilla de verificación funcionará en la versión futura del servicio de reconocimiento de formularios, manténgase atento.", addName: "Agregar nombre de modelo ...", downloadJson: "Descargar archivo JSON", + errors: { + electron: { + cantAccessFiles: "No se puede acceder a los archivos en '${folderUri}' para entrenamiento. Compruebe si el URI de la carpeta especificada es correcto." + } + } }, modelCompose: { title: "Modelo componer", diff --git a/src/common/strings.ts b/src/common/strings.ts index e543dc84b..844590414 100644 --- a/src/common/strings.ts +++ b/src/common/strings.ts @@ -129,6 +129,11 @@ export interface IAppStrings { backEndNotAvailable: string, addName: string, downloadJson: string; + errors: { + electron: { + cantAccessFiles: string; + } + } }; modelCompose: { title: string, diff --git a/src/react/components/pages/train/trainPage.tsx b/src/react/components/pages/train/trainPage.tsx index 46248240a..e5a886a51 100644 --- a/src/react/components/pages/train/trainPage.tsx +++ b/src/react/components/pages/train/trainPage.tsx @@ -17,7 +17,7 @@ import TrainPanel from "./trainPanel"; import TrainTable from "./trainTable"; import { ITrainRecordProps } from "./trainRecord"; import "./trainPage.scss"; -import { strings } from "../../../../common/strings"; +import { strings, interpolate } from "../../../../common/strings"; import { constants } from "../../../../common/constants"; import _ from "lodash"; import Alert from "../../common/alert/alert"; @@ -26,6 +26,7 @@ import PreventLeaving from "../../common/preventLeaving/preventLeaving"; import ServiceHelper from "../../../../services/serviceHelper"; import { getPrimaryGreenTheme, getGreenWithWhiteBackgroundTheme } from "../../../../common/themes"; import { getAppInsights } from '../../../../services/telemetryService'; +import { isElectron } from "../../../../common/hostProcess"; export interface ITrainPageProps extends RouteComponentProps, React.Props { connections: IConnection[]; @@ -297,11 +298,13 @@ export default class TrainPage extends React.Component