The translation of the web interface into Polish has been corrected and completed (e.g. the word order has been fixed).

Newly added words should be translated from English into other languages in index.ts files
This commit is contained in:
pswid
2022-10-25 20:57:51 +02:00
parent c3cfed5ac3
commit 1dc08d6399
40 changed files with 1071 additions and 804 deletions

View File

@@ -141,7 +141,7 @@ const ManageUsersForm: FC = () => {
<Header>
<HeaderRow>
<HeaderCell resize>{LL.USERNAME()}</HeaderCell>
<HeaderCell stiff>{LL.IS_ADMIN()}</HeaderCell>
<HeaderCell stiff>{LL.IS_ADMIN(0)}</HeaderCell>
<HeaderCell stiff />
</HeaderRow>
</Header>
@@ -192,7 +192,7 @@ const ManageUsersForm: FC = () => {
<Box flexWrap="nowrap" whiteSpace="nowrap">
<ButtonRow>
<Button startIcon={<PersonAddIcon />} variant="outlined" color="secondary" onClick={createUser}>
{LL.ADD()}
{LL.ADD(0)}
</Button>
</ButtonRow>
</Box>

View File

@@ -12,7 +12,7 @@ import { useI18nContext } from '../../i18n/i18n-react';
const Security: FC = () => {
const { LL } = useI18nContext();
useLayoutTitle(LL.SECURITY());
useLayoutTitle(LL.SECURITY(0));
const { routerTab } = useRouterTab();
@@ -20,7 +20,7 @@ const Security: FC = () => {
<>
<RouterTabs value={routerTab}>
<Tab value="users" label={LL.MANAGE_USERS()} />
<Tab value="settings" label={LL.SECURITY() + ' ' + LL.SETTINGS()} />
<Tab value="settings" label={LL.SETTINGS_OF( LL.SECURITY(1) )} />
</RouterTabs>
<Routes>
<Route path="users" element={<ManageUsersForm />} />

View File

@@ -46,7 +46,7 @@ const SecuritySettingsForm: FC = () => {
<ValidatedPasswordField
fieldErrors={fieldErrors}
name="jwt_secret"
label={'su ' + LL.PASSWORD()}
label={LL.SU_PASSWORD()}
fullWidth
variant="outlined"
value={data.jwt_secret}
@@ -71,7 +71,7 @@ const SecuritySettingsForm: FC = () => {
};
return (
<SectionContent title={LL.SECURITY() + ' ' + LL.SETTINGS()} titleGutter>
<SectionContent title={LL.SETTINGS_OF( LL.SECURITY(1) )} titleGutter>
{content()}
</SectionContent>
);

View File

@@ -54,7 +54,7 @@ const UserForm: FC<UserFormProps> = ({ creating, validator, user, setUser, onDon
{user && (
<>
<DialogTitle id="user-form-dialog-title">
{creating ? LL.ADD() : LL.MODIFY()}&nbsp;{LL.USER()}
{creating ? LL.ADD(1) : LL.MODIFY()}&nbsp;{LL.USER(1)}
</DialogTitle>
<DialogContent dividers>
<ValidatedTextField
@@ -80,7 +80,7 @@ const UserForm: FC<UserFormProps> = ({ creating, validator, user, setUser, onDon
/>
<BlockFormControlLabel
control={<Checkbox name="admin" checked={user.admin} onChange={updateFormValue} />}
label={LL.IS_ADMIN()}
label={LL.IS_ADMIN(1)}
/>
</DialogContent>
<DialogActions>
@@ -94,7 +94,7 @@ const UserForm: FC<UserFormProps> = ({ creating, validator, user, setUser, onDon
color="primary"
autoFocus
>
{LL.ADD()}
{LL.ADD(0)}
</Button>
</DialogActions>
</>