mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-22 20:26:50 +00:00
Translate group page
This commit is contained in:
@@ -79,21 +79,21 @@ export const CoreSyncStatus = () => {
|
||||
|
||||
if (isMintingPossible && !isUsingGateway) {
|
||||
imagePath = syncedMintingImg;
|
||||
message = `${t(`core:result.status.${isSynchronizing ? 'synchronizing' : 'synchronized'}`, { postProcess: 'capitalize' })} ${t('core:result.status.minting')}`;
|
||||
message = `${t(`core:message.status.${isSynchronizing ? 'synchronizing' : 'synchronized'}`, { postProcess: 'capitalize' })} ${t('core:message.status.minting')}`;
|
||||
} else if (isSynchronizing === true && syncPercent === 99) {
|
||||
imagePath = syncingImg;
|
||||
} else if (isSynchronizing && !isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncingImg;
|
||||
message = `${t('core:result.status.synchronizing', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:result.status.not_minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`;
|
||||
} else if (!isSynchronizing && !isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncedImg;
|
||||
message = `${t('core:result.status.synchronized', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:result.status.not_minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronized', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`;
|
||||
} else if (isSynchronizing && isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncingImg;
|
||||
message = `${t('core:result.status.synchronizing', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:result.status.minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`;
|
||||
} else if (!isSynchronizing && isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncedMintingImg;
|
||||
message = `${t('core:result.status.synchronized', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:result.status.minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronized', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`;
|
||||
}
|
||||
|
||||
return (
|
||||
|
@@ -100,13 +100,13 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
try {
|
||||
if (!name)
|
||||
throw new Error(
|
||||
t('group:result.error.name_required', {
|
||||
t('group:message.error.name_required', {
|
||||
postProcess: 'capitalize',
|
||||
})
|
||||
);
|
||||
if (!description)
|
||||
throw new Error(
|
||||
t('group:result.error.description_required', {
|
||||
t('group:message.error.description_required', {
|
||||
postProcess: 'capitalize',
|
||||
})
|
||||
);
|
||||
@@ -134,7 +134,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
if (!response?.error) {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:result.success.group_creation', {
|
||||
message: t('group:message.success.group_creation', {
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
});
|
||||
@@ -143,11 +143,11 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
{
|
||||
...response,
|
||||
type: 'created-group',
|
||||
label: t('group:result.success.group_creation_name', {
|
||||
label: t('group:message.success.group_creation_name', {
|
||||
group_name: name,
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
labelDone: t('group:result.success.group_creation_label', {
|
||||
labelDone: t('group:message.success.group_creation_label', {
|
||||
group_name: name,
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
@@ -164,7 +164,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
rej({
|
||||
message:
|
||||
error.message ||
|
||||
t('core:result.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -122,7 +122,7 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
if (!response?.error) {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:result.success.join_group', {
|
||||
message: t('group:message.success.join_group', {
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
});
|
||||
@@ -132,11 +132,11 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
{
|
||||
...response,
|
||||
type: 'joined-group',
|
||||
label: t('group:result.success.group_join_label', {
|
||||
label: t('group:message.success.group_join_label', {
|
||||
group_name: group?.groupName,
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
labelDone: t('group:result.success.group_join_label', {
|
||||
labelDone: t('group:message.success.group_join_label', {
|
||||
group_name: group?.groupName,
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
|
@@ -834,7 +834,7 @@ export const GroupMail = ({
|
||||
<LoadingSnackbar
|
||||
open={isLoading}
|
||||
info={{
|
||||
message: t('group:result.success.loading_threads', {
|
||||
message: t('group:message.success.loading_threads', {
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
}}
|
||||
|
@@ -189,13 +189,13 @@ export const NewThread = ({
|
||||
}
|
||||
|
||||
if (!name) {
|
||||
errorMsg = t('group:result.error.access_name', {
|
||||
errorMsg = t('group:message.error.access_name', {
|
||||
postProcess: 'capitalize',
|
||||
});
|
||||
}
|
||||
|
||||
if (!groupInfo) {
|
||||
errorMsg = t('group:result.error.group_info', {
|
||||
errorMsg = t('group:message.error.group_info', {
|
||||
postProcess: 'capitalize',
|
||||
});
|
||||
}
|
||||
|
@@ -2217,9 +2217,10 @@ export const Group = ({
|
||||
color: theme.palette.text.primary,
|
||||
}}
|
||||
>
|
||||
No group selected
|
||||
</Typography>{' '}
|
||||
// TODO translate
|
||||
{t('group:message.generic.no_selection', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
)}
|
||||
|
||||
@@ -2315,9 +2316,9 @@ export const Group = ({
|
||||
>
|
||||
{' '}
|
||||
<Typography>
|
||||
The group's first common encryption key is in the process
|
||||
of creation. Please wait a few minutes for it to be
|
||||
retrieved by the network. Checking every 2 minutes...
|
||||
{t('group:message.generic.encryption_key', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</Typography>
|
||||
</div>
|
||||
)}
|
||||
@@ -2341,18 +2342,23 @@ export const Group = ({
|
||||
>
|
||||
{' '}
|
||||
<Typography>
|
||||
You are not part of the encrypted group of members. Wait
|
||||
until an admin re-encrypts the keys.
|
||||
{t('group:message.generic.not_part_group', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</Typography>
|
||||
<Spacer height="25px" />
|
||||
<Typography>
|
||||
<strong>
|
||||
Only unencrypted messages will be displayed.
|
||||
{t('group:message.generic.only_encrypted', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</strong>
|
||||
</Typography>
|
||||
<Spacer height="25px" />
|
||||
<Typography>
|
||||
Try notifying an admin from the list of admins below:
|
||||
{t('group:message.generic.notify_admins', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</Typography>
|
||||
<Spacer height="25px" />
|
||||
{adminsWithNames.map((admin) => {
|
||||
@@ -2372,7 +2378,9 @@ export const Group = ({
|
||||
variant="contained"
|
||||
onClick={() => notifyAdmin(admin)}
|
||||
>
|
||||
Notify
|
||||
{t('core:action.notify', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
);
|
||||
@@ -2592,14 +2600,19 @@ export const Group = ({
|
||||
open={isLoadingGroup}
|
||||
info={{
|
||||
message:
|
||||
isLoadingGroupMessage || 'Setting up group... please wait.',
|
||||
isLoadingGroupMessage ||
|
||||
t('group:message.generic.setting_group', {
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
|
||||
<LoadingSnackbar
|
||||
open={isLoadingGroups}
|
||||
info={{
|
||||
message: 'Setting up groups... please wait.',
|
||||
message: t('group:message.generic.setting_group', {
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
<WalletsAppWrapper />
|
||||
|
@@ -169,7 +169,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
.catch((error) => {
|
||||
rej(
|
||||
error.message ||
|
||||
t('core:result.error.generic', { postProcess: 'capitalize' })
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' })
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -178,7 +178,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
setSettingsQdnLastUpdated(Date.now());
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('core:result.success.publish_qdn', {
|
||||
message: t('core:message.success.publish_qdn', {
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
});
|
||||
@@ -191,7 +191,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
type: 'error',
|
||||
message:
|
||||
error?.message ||
|
||||
t('core:result.error.save_qdn', {
|
||||
t('core:message.error.save_qdn', {
|
||||
postProcess: 'capitalize',
|
||||
}),
|
||||
});
|
||||
|
Reference in New Issue
Block a user