diff --git a/gui/frontend/src/components/organisms/ConvertForm/CheckboxField.tsx b/gui/frontend/src/components/organisms/ConvertForm/CheckboxField.tsx index c1d8b14..14e3533 100644 --- a/gui/frontend/src/components/organisms/ConvertForm/CheckboxField.tsx +++ b/gui/frontend/src/components/organisms/ConvertForm/CheckboxField.tsx @@ -1,9 +1,9 @@ -import { Checkbox, FormControlLabel, Box, Tooltip } from '@mui/material'; +import { Box, Checkbox, FormControlLabel, Tooltip } from '@mui/material'; import { Controller, useFormContext } from 'react-hook-form'; import { STORAGE } from '@/lib/storage'; -import type { FormProps } from './'; +import type { FormProps } from './ConvertForm'; import type { ReactNode } from 'react'; type PickBooleans = { diff --git a/gui/frontend/src/components/organisms/ConvertForm/InputModInfoField.tsx b/gui/frontend/src/components/organisms/ConvertForm/InputModInfoField.tsx index c77cc9f..8893989 100644 --- a/gui/frontend/src/components/organisms/ConvertForm/InputModInfoField.tsx +++ b/gui/frontend/src/components/organisms/ConvertForm/InputModInfoField.tsx @@ -1,9 +1,9 @@ -import { TextField, Grid2 as Grid } from '@mui/material'; +import { Grid2 as Grid, TextField } from '@mui/material'; import { Controller, useFormContext } from 'react-hook-form'; import { setPathToStorage } from './ConvertForm'; -import type { FormProps } from './'; +import type { FormProps } from './ConvertForm'; import type { ReactNode } from 'react'; type Props = { diff --git a/gui/frontend/src/components/organisms/ConvertForm/InputPathField.tsx b/gui/frontend/src/components/organisms/ConvertForm/InputPathField.tsx index b5ad90a..7e4e555 100644 --- a/gui/frontend/src/components/organisms/ConvertForm/InputPathField.tsx +++ b/gui/frontend/src/components/organisms/ConvertForm/InputPathField.tsx @@ -1,11 +1,11 @@ -import { TextField, Grid2 as Grid, type TextFieldProps } from '@mui/material'; +import { Grid2 as Grid, TextField, type TextFieldProps } from '@mui/material'; import { Controller, useFormContext } from 'react-hook-form'; import { SelectPathButton } from '@/components/molecules/SelectPathButton'; import { getParent } from '@/lib/path'; import { STORAGE } from '@/lib/storage'; -import { type PathFormKeys, setPathToStorage, type FormProps } from './ConvertForm'; +import { type FormProps, type PathFormKeys, setPathToStorage } from './ConvertForm'; import type { ReactNode } from 'react'; diff --git a/gui/frontend/src/components/organisms/RemoveOarButton/RemoveOarButton.tsx b/gui/frontend/src/components/organisms/RemoveOarButton/RemoveOarButton.tsx index 94ca6a2..1b6b4f4 100644 --- a/gui/frontend/src/components/organisms/RemoveOarButton/RemoveOarButton.tsx +++ b/gui/frontend/src/components/organisms/RemoveOarButton/RemoveOarButton.tsx @@ -41,8 +41,8 @@ export const RemoveOarButton = () => { return ( : } + onClick={handleClick} tooltipTitle={

{t('remove-oar-tooltip')}

} variant='contained' /> diff --git a/gui/frontend/src/lib/path/parseDarPath.test.ts b/gui/frontend/src/lib/path/parseDarPath.test.ts index b22fd7b..5fa1911 100644 --- a/gui/frontend/src/lib/path/parseDarPath.test.ts +++ b/gui/frontend/src/lib/path/parseDarPath.test.ts @@ -1,4 +1,4 @@ -import { describe, it, expect } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { parseDarPath } from './parseDarPath'; diff --git a/test/sample_scripts/custom_translation.js b/test/sample_scripts/custom_translation.js index 67eaa53..0280500 100644 --- a/test/sample_scripts/custom_translation.js +++ b/test/sample_scripts/custom_translation.js @@ -10,7 +10,7 @@ // clearCustomTranslation(); function setCustomTranslation() { - /** ref: https://github.com/SARDONYX-sard/dar-to-oar/blob/0.8.1/locales/en-US.json */ + /** ref: https://github.com/SARDONYX-sard/dar-to-oar/blob/0.9.0/locales/en-US.json */ const i18n = { 'all-clear-btn': 'All Clear', 'backup-dialog-all-checked-label': 'Check all', @@ -31,7 +31,7 @@ 'convert-form-author-name-helper': '[Optional]', 'convert-form-author-placeholder': 'Name', 'convert-form-dar-helper': '[Required] Path of dir containing "DynamicAnimationReplacer".', - 'convert-form-dar-helper2': '"C:\\[...]/Mod Name/" -> Convert 1st & 3rd person', + 'convert-form-dar-helper2': '"C:/[...]/Mod Name/" -> Convert 1st & 3rd person', 'convert-form-dar-helper3': '"[...]/animations/DynamicAnimationReplacer" -> Convert 3rd person', 'convert-form-dar-label': 'DAR(source) Directory', 'convert-form-mapping-1st-label': 'Mapping Table Path(For _1st_person)', @@ -68,6 +68,9 @@ 'import-lang-btn': 'Import Language', 'import-lang-tooltip': 'Import any language from a Json file. (automatically reloads for validation).', 'import-lang-tooltip2': 'Note: For invalid Json, fall back to English. (See Wiki for how to write Json)', + 'infer-btn': 'Infer', + 'infer-btn-tooltip': + 'Infer OAR and ModName from DAR (input). (Even if each item is not entered without this function, it is inferred to some extent on the back-end side.)', 'lang-preset-auto': 'Auto', 'lang-preset-custom': 'Custom', 'lang-preset-label': 'Language', @@ -89,19 +92,19 @@ 'open-log-dir-btn': 'Log(dir)', 'open-log-dir-tooltip': 'Open the log storage location.', 'open-log-tooltip': 'Open current log file.(Rotate to a new log file each time the application is launched.)', - 'progress-btn': 'ProgressBar', - 'progress-btn-tooltip': 'Display detail progress', - 'progress-btn-tooltip2': '', + 'progress-btn': 'Progress', + 'progress-btn-tooltip': 'Let the back-end report detailed progress.', + 'progress-btn-tooltip2': '(conversion may be slightly slower)', 'remove-oar-btn': 'Remove OAR', 'remove-oar-failed': 'Not found "OpenAnimationReplacer" directory', 'remove-oar-specify-error': 'DAR or OAR dir must be specified.', 'remove-oar-success': 'Removed OAR directory.', 'remove-oar-tooltip': 'Find and delete OAR dir from "OAR(destination) Directory"(or "DAR(source) Directory*" if not specified).', - 'run-parallel-btn-tooltip': 'Use multi-threading.', + 'run-parallel-btn-tooltip': 'Attempt file-by-file parallel conversion.', 'run-parallel-btn-tooltip2': - 'Note: More than twice the processing speed can be expected, but the concurrent processing results in thread termination timings being out of order, so log writes will be out of order as well, greatly reducing readability of the logs.', - 'run-parallel-label': 'Run Parallel', + 'Pros: extremely fast conversion / Cons: entries in logs are out of order and difficult to read', + 'run-parallel-label': 'Parallel', 'select-btn': 'Select', 'tab-label-backup': 'Backup', 'tab-label-editor': 'Editor / Preset',