Web: Client: change title of pages, added new translations
This commit is contained in:
parent
259cb20de3
commit
f3731820cb
@ -78,8 +78,8 @@ const Body = () => {
|
||||
|
||||
useEffect(() => {
|
||||
changeLanguage(i18n);
|
||||
document.title = "About – People";
|
||||
}, []);
|
||||
document.title = `${t("AboutTitle")} – ${t("People")}`;
|
||||
}, [t]);
|
||||
|
||||
const gitHub = "GitHub";
|
||||
const license = "AGPL-3.0";
|
||||
@ -192,5 +192,4 @@ const About = ({ language }) => (
|
||||
<PageLayout sectionBodyContent={<Body language={language} />} />
|
||||
);
|
||||
|
||||
|
||||
export default About;
|
||||
|
@ -7,7 +7,8 @@
|
||||
"AboutCompanyTelTitle": "tel.",
|
||||
"LicensedUnder": "This software is licensed under: <1>{{license}}</1>",
|
||||
"AllRightsReservedCustomMode": "<0>Ascensio System SIA.</0> <1>All rights reserved.</1>",
|
||||
|
||||
"People": "People",
|
||||
"AboutTitle": "About",
|
||||
|
||||
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
"AboutCompanyTelTitle": "тел.",
|
||||
"LicensedUnder": "Программа распространяется под лицензией: {{license}}",
|
||||
"AllRightsReservedCustomMode": "<0>Ascensio System SIA.</0> <1>All rights reserved.</1>",
|
||||
"People": "Люди",
|
||||
"AboutTitle": "О программе",
|
||||
|
||||
|
||||
"SourceCode": "Исходный код программы доступен по cсылке"
|
||||
|
@ -72,6 +72,8 @@ const Body = ({ modules, match, isLoaded }) => {
|
||||
const { t } = useTranslation('translation', { i18n });
|
||||
const { error } = match.params;
|
||||
|
||||
document.title = `${t("OrganizationName")}`;
|
||||
|
||||
useEffect(() => error && toastr.error(error), [error]);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"NoOneModulesAvailable": "No one modules available"
|
||||
"NoOneModulesAvailable": "No one modules available",
|
||||
"OrganizationName": "ONLYOFFICE"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"NoOneModulesAvailable": "Ни один модуль не доступен"
|
||||
"NoOneModulesAvailable": "Ни один модуль не доступен",
|
||||
"OrganizationName": "ONLYOFFICE"
|
||||
}
|
@ -57,6 +57,8 @@ class Customization extends React.Component {
|
||||
const languages = mapCulturesToArray(rawCultures, t);
|
||||
const timezones = mapTimezonesToArray(rawTimezones);
|
||||
|
||||
document.title = `${t("Customization")} – ${t("OrganizationName")}`;
|
||||
|
||||
this.state = {
|
||||
isLoadedData: false,
|
||||
isLoading: false,
|
||||
|
@ -8,7 +8,6 @@ const CustomizationSettings = lazy(() => import("./customization"));
|
||||
|
||||
const Common = ({ match }) => {
|
||||
const basePath = '/settings/common';
|
||||
document.title = "Customization – ONLYOFFICE";
|
||||
|
||||
return (
|
||||
<Suspense fallback={<Loader className="pageLoader" type="rombs" size='40px' />}>
|
||||
|
@ -4,7 +4,7 @@ import i18n from "../../i18n";
|
||||
import { I18nextProvider, withTranslation } from "react-i18next";
|
||||
import styled from "styled-components";
|
||||
import { TabContainer } from "asc-web-components";
|
||||
import { utils } from 'asc-web-common';
|
||||
import { utils } from "asc-web-common";
|
||||
|
||||
import OwnerSettings from "./sub-components/owner";
|
||||
import AdminsSettings from "./sub-components/admins";
|
||||
@ -26,9 +26,9 @@ class PureAccessRights extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
document.title = "Security – ONLYOFFICE";
|
||||
|
||||
//console.log("props", props);
|
||||
document.title = `${props.t(
|
||||
"ManagementCategorySecurity"
|
||||
)} – ${props.t("OrganizationName")}`;
|
||||
|
||||
const url = props.history.location.pathname;
|
||||
const newUrl = url.split("/");
|
||||
@ -92,14 +92,14 @@ class PureAccessRights extends Component {
|
||||
{[
|
||||
{
|
||||
key: "0",
|
||||
title: t('OwnerSettings'),
|
||||
title: t("OwnerSettings"),
|
||||
content: <OwnerSettings />
|
||||
},
|
||||
{
|
||||
key: "1",
|
||||
title: t('AdminsSettings'),
|
||||
title: t("AdminsSettings"),
|
||||
content: <AdminsSettings />
|
||||
},
|
||||
}
|
||||
// {
|
||||
// key: "2",
|
||||
// title: "Portals settings",
|
||||
@ -115,7 +115,6 @@ class PureAccessRights extends Component {
|
||||
const AccessRightsContainer = withTranslation()(PureAccessRights);
|
||||
|
||||
const AccessRights = props => {
|
||||
|
||||
changeLanguage(i18n);
|
||||
|
||||
return (
|
||||
|
@ -95,5 +95,6 @@
|
||||
"PeopleAdmin": "People module admin",
|
||||
"DirectionAscLabel":"A-Z",
|
||||
"DirectionDescLabel":"Z-A",
|
||||
"MeLabel": "Me"
|
||||
"MeLabel": "Me",
|
||||
"OrganizationName": "ONLYOFFICE"
|
||||
}
|
@ -95,5 +95,6 @@
|
||||
"PeopleAdmin": "Администратор модуля Люди",
|
||||
"DirectionAscLabel":"А-Я",
|
||||
"DirectionDescLabel":"Я-А",
|
||||
"MeLabel": "Я"
|
||||
"MeLabel": "Я",
|
||||
"OrganizationName": "ONLYOFFICE"
|
||||
}
|
@ -8,7 +8,8 @@
|
||||
"AboutCompanyAddressTitle",
|
||||
"AboutCompanyEmailTitle",
|
||||
"AboutCompanyTelTitle",
|
||||
"AllRightsReservedCustomMode"
|
||||
"AllRightsReservedCustomMode",
|
||||
"AboutTitle"
|
||||
],
|
||||
"UserControlsCommonResource": [
|
||||
"LicensedUnder"
|
||||
|
Loading…
Reference in New Issue
Block a user