Skip to content

Commit

Permalink
Fix strings that do not need translations
Browse files Browse the repository at this point in the history
  • Loading branch information
subinasr authored and AdityaKhatri committed Oct 18, 2024
1 parent 65ec9bb commit fd54657
Show file tree
Hide file tree
Showing 8 changed files with 355 additions and 396 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-grapes-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"go-web-app": patch
---

Add Terms and Conditions page
2 changes: 1 addition & 1 deletion app/src/App/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ const termsAndConditions = customWrapRoute({
},
context: {
title: 'Terms And Conditions',
visibility: 'is-authenticated',
visibility: 'anything',
},
});
type DefaultAccountMyFormsChild = 'field-report';
Expand Down
3 changes: 1 addition & 2 deletions app/src/components/GlobalFooter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ function GlobalFooter(props: Props) {
{strings.cookiePolicy}
</Link>
<Link
// FIXME: Add termsAndConditions link after the page is created
to="cookiePolicy"
to="termsAndConditions"
>
{strings.termsAndConditions}
</Link>
Expand Down
6 changes: 3 additions & 3 deletions app/src/views/TermsAndConditions/ConditionsModal/i18n.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"namespace": "ConditionsModal",
"namespace": "conditionsModal",
"strings": {
"hereConditionTitle": "Title",
"srcDbCodeDescriptionOne": "EMDAT",
Expand All @@ -11,7 +11,7 @@
"srcDbLabDescriptionTwo": "Disaster Inventory System (Desinventar)",
"srcOrgCodeDescriptionTwo": "UNDRR",
"srcOrgLabDescriptionTwo": "United Nations Disaster Risk Reduction (UNDRR)",
"srcOrgtypeCodeDescriptionTwo": "orgtypegov",
"srcOrgtypeCodeDescriptionTwo": "orgtypegov",
"srcDbCodeDescriptionThree": "UNO_damass",
"srcDbLabDescriptionThree": "UNOSAT Satellite Image-based Damage Assessment Data",
"srcOrgCodeDescriptionThree": "UNOSAT",
Expand Down Expand Up @@ -73,7 +73,7 @@
"srcOrgLabDescriptionFourteen": "European Commission - Joint Research Center",
"srcOrgtypeCodeDescriptionFourteen": "orgtyperio",
"srcDbCodeDescriptionFifteen": "GLIDE",
"srcDbLabDescriptionFifteen": "GLobal Identifier numbers (GLIDE)",
"srcDbLabDescriptionFifteen": "Global Identifier numbers (GLIDE)",
"srcOrgCodeDescriptionFifteen": "ADRC",
"srcOrgLabDescriptionFifteen": "Asian Disaster Reduction Center (ADRC)",
"srcOrgtypeCodeDescriptionFifteen": "orgtyperio",
Expand Down
42 changes: 12 additions & 30 deletions app/src/views/TermsAndConditions/ConditionsModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ import {
Modal,
Table,
} from '@ifrc-go/ui';
import { SortContext } from '@ifrc-go/ui/contexts';
import { useTranslation } from '@ifrc-go/ui/hooks';
import { createStringColumn } from '@ifrc-go/ui/utils';
import { isDefined } from '@togglecorp/fujs';

import useFilterState from '#hooks/useFilterState';

import i18n from './i18n.json';

interface Props {
onCancel: () => void;
onClose: () => void;
}

interface TableData {
Expand All @@ -28,22 +25,8 @@ const keySelector = (d: TableData) => d.id;

function ConditionalModal(props: Props) {
const strings = useTranslation(i18n);
const {
onCancel,
} = props;

const {
filtered,
sortState,
} = useFilterState<{
srcDbCode?: string,
srcDbLab?: string,
srcOrgCode?: string
srcOrgLab?: string
srcOrgtypeCode?: string
}>({
filter: {},
});
const { onClose } = props;

const tableData: TableData[] = useMemo(() => [
{
Expand Down Expand Up @@ -247,18 +230,17 @@ function ConditionalModal(props: Props) {
return (
<Modal
heading={strings.hereConditionTitle}
onClose={onCancel}
size="xl"
onClose={onClose}
size="full"
withOverflowInContent
>
<SortContext.Provider value={sortState}>
<Table
filtered={filtered}
columns={columns}
keySelector={keySelector}
data={tableData}
pending={false}
/>
</SortContext.Provider>
<Table
filtered={false}
columns={columns}
keySelector={keySelector}
data={tableData}
pending={false}
/>
</Modal>
);
}
Expand Down
46 changes: 23 additions & 23 deletions app/src/views/TermsAndConditions/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"namespace": "termsAndConditions",
"strings": {
"termsAndConditionTitle": "Terms and Conditions",
"termsAndConditionsDescription1": "The IFRC GO is a Red Cross Crescent platform that amis to connect information on emergency needs with the the right response. This goal is achieved by making sure that the information – or data – we use is both accurate and accessible. Better data enables the Movement to respond more effectively to the needs of disaster-affected people.",
"termsAndConditionsDescription2": "At present some data on the GO platform is visible to everyone. Access to certain National Society data requires registration and is restricted to the IFRC, ICRC, and the National Societies and is managed by IFRC.",
"termsAndConditionsDescription1": "The IFRC GO is a Red Cross Crescent platform that to connect information on emergency needs with the the right response. This goal is achieved by making sure that the information – or data – we use is both accurate and accessible. Better data enables the Movement to respond more effectively to the needs of disaster-affected people.",
"termsAndConditionsDescription2": "At present some data on the GO platform is visible to everyone. Access to certain National Society data requires registration and is restricted to the IFRC, ICRC, and the National Societies and is managed by IFRC.",
"termsAndConditionsDescription3": "The Montandon is a public good with applications beyond IFRC. It contains information about natural hazards, their impacts, and what actions were taken when, where, by whom, and to what effect.",
"dataProvenanceHeading": "DATA PROVENANCE",
"dataProvenanceDescription": "GO and Montandon are composed of data collected and owned by IFRC and its network of National Societies. It also includes data from databases developed and maintained by our partners, such as the Global Internal Displacement Database, EM-DAT, and DesInventar, International Best Track Archive for Climate Stewardship, ShakeMap, and GDACS. GO and Montandon will always identify the data source.",
"userRegistrationHeading": "USER REGISTRATION",
"userRegistrationDescription": "Registration to this platform is open to staff, members and volunteers of the Red Cross Red Crescent Movement (National Societies, the IFRC and the ICRC) as well as to other responders, IFRC partners and authorised members of the public who agree to use the data and services for non-commercial purposes, such as research.",
"userRegistrationDescriptionToLink": "To request access and register, please use {termsLink}.",
"userRegistrationDescriptionLink": "this link",
"userRegistrationAuthorizedUser": "Authorized Uses ",
"userRegistrationAuthorizedUser": "Authorized Uses",
"userRegistrationDescriptionByRegistering": "By registering as a user to this platform, you will be able to:",
"userRegistrationDescriptionList": "Information management -International Federation of Red Cross Crescent(IFRC).2024.Montandon - Global Crisis Data Bank:Revision 1.",
"userRegistrationDescriptionList": "Information management - International Federation of Red Cross Crescent(IFRC).2024.Montandon - Global Crisis Data Bank:Revision 1. ",
"userRegistrationByLink": "{termsLink}. Accessed DAY MONTH YEAR.",
"userRegistrationDescriptionList1": "Have free access to the database",
"userRegistrationDescriptionList2": "Freely use of all published papers and technical reports from IFRC related to Montandon, provided the proper citation of Montandon and data obtained through it, which shall read as follow:",
Expand All @@ -22,42 +22,42 @@
"userRegistrationDescription5": "Any use of the data outside of Montandon shall duly identify the data bank and the database owner.",
"unAuthorisedUsesHeading": "UNAUTHORISED USES",
"unAuthorisedUsesDescription": "By registering as a user, you commit to not",
"unAuthorisedUsesDescriptionList1": "Reproduce,copy,communicate,lend or otherwise distribute the data bank or a substantial part of data bank.",
"unAuthorisedUsesDescriptionList1": "Reproduce, copy, communicate, lend or otherwise distribute the data bank or a substantial part of data bank.",
"unAuthorisedUsesDescriptionList2": "Reverse assemble, decompile, decompose, or disassemble Montandon.",
"unAuthorisedUsesDescriptionList3": "Create Substitute or derivative databases of Montandon.",
"unAuthorisedUsesDescriptionList4": "Attempt to unlock or bypass any initialization or security system used by Montandon.",
"unAuthorisedUsesDescriptionList5": "Share, use or transmit any portion of Montandon via the Internet to unauthorised users,",
"unAuthorisedUsesDescriptionList6": "Divulge the password or share access tokens to unauthorised users.",
"unAuthorisedUsesDescriptionList4": "Attempt to unlock or bypass any initialization or security system used by Montandon.",
"unAuthorisedUsesDescriptionList5": "Share, use or transmit any portion of Montandon via the Internet to unauthorised users.",
"unAuthorisedUsesDescriptionList6": "Divulge the password or share access tokens to unauthorised users.",
"unAuthorisedUsesDescriptionList7": "Remove, alter or obscure any proprietary legend, copyright, trademark, or other intellectual property right notice, logo, and image in or on Montandon.",
"unAuthorisedUsesDescriptionList8": "Perform acts that conflict with the normal exploitation of Montandon or unreasonable prejudice the interests of IFRC and/or data owner.",
"unAuthorisedUsesDescriptionList8": "Perform acts that conflict with the normal exploitation of Montandon or unreasonable prejudice the interests of IFRC and/or data owner.",
"unAuthorisedUsesDescriptionList9": "Use the platform and contents in any way that may cause unjustified damage to the legitimate interests of IFRC and/or public image of IFRC or its database partners.",
"unAuthorisedUsesDescriptionList10": "Use the platform with the aim of creating a tool in competition with Montandon.",
"unAuthorisedUsesDescription2": "In any case, as a user to this platform,you commit to not use the data available for any commercial use, unless entered into a separate agreement with the data owner.",
"unAuthorisedUsesDescription3": "Any reproduction or representation, whether in full or in part,for unauthorised purposes in prohibited.Failure to comply with this provision will constitute a breach of these terms and may incur the infringer's liability.",
"unAuthorisedUsesDescriptionList10": "Use the platform with the aim of creating a tool in competition with Montandon.",
"unAuthorisedUsesDescription2": "In any case, as a user to this platform, you commit to not use the data available for any commercial use, unless entered into a separate agreement with the data owner.",
"unAuthorisedUsesDescription3": "Any reproduction or representation, whether in full or in part, for unauthorised purposes in prohibited.Failure to comply with this provision will constitute a breach of these terms and may incur the infringer's liability.",
"complianceDateOwnerHeading": "COMPLIANCE WITH ANY APPLICABLE CONDITIONS FROM DATA OWNER",
"complianceDateOwnerDescription1": "When reusing any data available in the Montandon database, it is user's responsibility to comply with any applicable terms of use or other conditions established by the data owner",
"complianceDateOwnerDescription2": "To facilitate when the data owner is not IFRC,IFRC makes the applicable terms of use from data source available {termsLink} and will, to the extent possible, keep it updated.",
"complianceDateOwnerDescription1": "When reusing any data available in the Montandon database, it is user's responsibility to comply with any applicable terms of use or other conditions established by the data owner",
"complianceDateOwnerDescription2": "To facilitate when the data owner is not IFRC, IFRC makes the applicable terms of use from data source available {termsLink} and will, to the extent possible, keep it updated.",
"complianceDateOwnerDescription2Link": "here",
"complianceDateOwnerDescription3": "If unsure of rge applicable terms, you may contact IFRC at {termsLink} and IFRC can help liaise with the data owner.",
"complianceDateOwnerDescription4": "Nonetheless,the obligation is still on the user to ensure compliance with the most recent and applicable terms of use required from the data source.",
"complianceDateOwnerDescription3": "If unsure of the applicable terms, you may contact IFRC at {termsLink} and IFRC can help liaise with the data owner.",
"complianceDateOwnerDescription4": "Nonetheless, the obligation is still on the user to ensure compliance with the most recent and applicable terms of use required from the data source.",
"complianceDateOwnerDescription5": "Please not that, if you are not an academic, humanitarian or non-profit organization, different conditions may be applicable to your reuse of a dataset, as determined by the data owner.",
"liabilityOfIFRCHeading": "LIABILITY OF IFRC",
"liabilityOfIFRCDescription": "To the extent reasonably possible ,IFRC tries to ensure the data displayed (insert the criteria of relevance and quality used for the data contained in the database and any measures token ti insure ):",
"liabilityOfIFRCDescription": "To the extent reasonably possible, IFRC tries to ensure the data displayed (insert the criteria of relevance and quality used for the data contained in the database and any measures taken to ensure):",
"liabilityOfIFRCDescriptionList1": "Does not contain any personal or non-personal sensitive data",
"liabilityOfIFRCDescriptionList2": "Is accurate and most updated",
"liabilityOfIFRCDescriptionList3": "Is open and complies with the",
"liabilityOfIFRCDescription3Link": "FAIR Principles",
"liabilityOfIFRCDescriptionList4": "Includes link to original data sources and metadata, as well as links to explanations for how the data has been treated,transformed,analysed and visualised",
"liabilityOfIFRCDescriptionList5": "Conforms to internationally recognized standards with regard to rhe names and definitions of indicators, hazard definitions and hazard intensities",
"liabilityOfIFRCDescriptionList4": "Includes link to original data sources and metadata, as well as links to explanations for how the data has been treated, transformed, analysed and visualised",
"liabilityOfIFRCDescriptionList5": "Conforms to internationally recognized standards with regard to the names and definitions of indicators, hazard definitions and hazard intensities",
"liabilityOfIFRCDescription2": "Despite IFRC's best efforts, IFRC makes no representation or warranty that (i) and the data available will meet your needs,(ii) the service will be uninterrupted,punctual,secure or error-free,(iii) the data available and results obtained by using the platform will be accurate or reliable, or that (iv) any error of content will be corrected.",
"liabilityOfIFRCDescription3": "Any part of the content may be obsolete at any time without the IFRC being in any way bound to update this content.",
"liabilityOfIFRCDescription4": "IFRC is not liable for any direct, consequential, incidental, particular or resulting damage,nor any punitive damages resulting from the use of the platform or the impossibility of using it or any other issue relating to the platform.",
"liabilityOfIFRCDescription4": "IFRC is not liable for any direct, consequential, incidental, particular or resulting damage,nor any punitive damages resulting from the use of the platform or the impossibility of using it or any other issue relating to the platform.",
"liabilityOfIFRCDescription5": "The IFRC reserves the right to alter or shut down the platform(ir any part of it) temporarily or for good, with or without notice.IFRC shall not be answerable to you or to any third part for any alteration to or suspension or cessation of the platform.",
"protectionUsersPersonalDataHeading": "PROTECTION OF USER'S PERSONAL DATA",
"protectionUsersPersonalDataDescription": "The personal data required for registration will be used by IFRC only for the purposes of ",
"protectionUsersPersonalDataDescription": "The personal data required for registration will be used by IFRC only for the purposes of ",
"protectionUsersPersonalDataDescriptionList1": "Validating your registration",
"protectionUsersPersonalDataDescriptionList2": "Providing access to the platform",
"protectionUsersPersonalDataDescriptionList3": "Providing information or any necessary communication regarding the platform(e.g.,a survey to assess how to improve the platform and better serve user's needs and provide a better experience for users)",
"protectionUsersPersonalDataDescriptionList3": "Providing information or any necessary communication regarding the platform (e.g.,a survey to assess how to improve the platform and better serve user's needs and provide a better experience for users)",
"protectionUsersPersonalDataDescriptionList4": "Providing aggregated metrics to partners so that they know how many people have viewed,accessed or downloaded their data via GO/Montandon",
"protectionUsersPersonalDataDescription2": "IFRC will not share your personal data. Any usage statistics reports shared with partners will not contain any personal data of users. If you no longer wish to be a user, you may request at any time that we delete your account by e-mail us at {termsLink}.",
"protectionUsersPersonalDataDescription3": "IFRC will process and protect your personal data in accordance with its {termsLink}",
Expand All @@ -69,7 +69,7 @@
"finalProvisionsHeading": "FINAL PROVISIONS",
"finalProvisionsDescription1": "The IFRC reserves the right to amend or change these Terms at any time, at its sole discretion. You should consult them regularly to keep yourself informed of any changes.",
"finalProvisionsDescription2": "Any violation of these Terms may result in a temporary ban from the platform, and, where necessary, additional actions may be taken to address violations of these Terms.",
"finalProvisionsDescription3":"For more information on the database, its uses, data sources, limitations and peculiarities for data analaysis ot other related matters, please contact IFRC at {termsLink}",
"finalProvisionsDescription3":"For more information on the database, its uses, data sources, limitations and peculiarities for data analysis ot other related matters, please contact IFRC at {termsLink}",
"finalProvisionsDescription4": "You are not obligated to register to this platform; but, by doing so, you understand and agree to the terms of use."
}
}
Loading

0 comments on commit fd54657

Please sign in to comment.