Skip to content

Commit

Permalink
change OCR to Layout in UI (Actions) (#666)
Browse files Browse the repository at this point in the history
* change OCR to Layout in UI (Actions)

* more OCR to Layout
  • Loading branch information
alex-krasn authored Oct 29, 2020
1 parent 0fa559a commit ac604b6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/common/localization/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ export const english: IAppStrings = {
additionalActions: {
text: "Additional actions",
subIMenuItems: {
runOcrOnCurrentDocument: "Run OCR on current document",
runOcrOnAllDocuments: "Run OCR on all documents",
runOcrOnCurrentDocument: "Run Layout on current document",
runOcrOnAllDocuments: "Run Layout on all documents",
runAutoLabelingCurrentDocument: "Auto-label the current document",
runAutoLabelingOnMultipleUnlabeledDocuments: "Auto-label multiple unlabeled documents",
noPredictModelOnProject: "Predict model not avaliable, please train the model first.",
Expand Down
4 changes: 2 additions & 2 deletions src/common/localization/es-cl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ export const spanish: IAppStrings = {
additionalActions: {
text: "Acciones adicionales",
subIMenuItems: {
runOcrOnCurrentDocument: "Ejecutar OCR en el documento actual",
runOcrOnAllDocuments: "Ejecute OCR en todos los documentos",
runOcrOnCurrentDocument: "Ejecutar Layout en el documento actual",
runOcrOnAllDocuments: "Ejecute Layout en todos los documentos",
runAutoLabelingCurrentDocument: "Etiquetar automáticamente el documento actual",
runAutoLabelingOnMultipleUnlabeledDocuments: "Etiquetar automáticamente varios documentos sin etiquetar",
noPredictModelOnProject: "Predecir modelo no disponible, entrene el modelo primero.",
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/common/assetPreview/assetPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class AssetPreview extends React.Component<IAssetPreviewProps, IAssetPrev
<div className="asset-loading">
<div className="asset-loading-ocr-spinner">
<Label className="p-0" ></Label>
<Spinner size={SpinnerSize.small} label="Running OCR..." ariaLive="off" labelPosition="right" />
<Spinner size={SpinnerSize.small} label="Running Layout..." ariaLive="off" labelPosition="right" />
</div>
</div>
}
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/pages/editorPage/canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export default class Canvas extends React.Component<ICanvasProps, ICanvasState>
<div className="canvas-ocr-loading">
<div className="canvas-ocr-loading-spinner">
<Label className="p-0" ></Label>
<Spinner size={SpinnerSize.large} label="Running OCR..." ariaLive="assertive" labelPosition="right" />
<Spinner size={SpinnerSize.large} label="Running Layout..." ariaLive="assertive" labelPosition="right" />
</div>
</div>
}
Expand Down
6 changes: 3 additions & 3 deletions src/react/components/pages/editorPage/editorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ export default class EditorPage extends React.Component<IEditorPageProps, IEdito
<div>
<Spinner
size={SpinnerSize.small}
label="Running OCR"
label="Running Layout"
ariaLive="off"
labelPosition="right"
/>
</div> : "Run OCR on unvisited documents"
</div> : "Run Layout on unvisited documents"
}
</PrimaryButton>
</div>}
Expand Down Expand Up @@ -362,7 +362,7 @@ export default class EditorPage extends React.Component<IEditorPageProps, IEdito
/>
<PreventLeaving
when={isRunningOCRs || isCanvasRunningOCR}
message={"An OCR operation is currently in progress, are you sure you want to leave?"}
message={"An Layout operation is currently in progress, are you sure you want to leave?"}
/>
<PreventLeaving
when={isCanvasRunningAutoLabeling}
Expand Down
2 changes: 1 addition & 1 deletion src/services/ocrService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class OCRService {
setTimeout(checkSucceeded, interval, resolve, reject);
} else {
// Didn't succeeded after too much time, reject
reject(new Error("Timed out for getting OCR results"));
reject(new Error("Timed out for getting Layout results"));
}
});
};
Expand Down

0 comments on commit ac604b6

Please sign in to comment.