Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
feat(help): add localize to the help form
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Jan 16, 2022
1 parent 76b92e7 commit 748d27d
Show file tree
Hide file tree
Showing 8 changed files with 227 additions and 183 deletions.
59 changes: 31 additions & 28 deletions src/components/helpContent/HelpBrowserSupport.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
import { useTranslation } from 'react-i18next';
import { styled } from '@mui/styles';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemText from '@mui/material/ListItemText';
import Typography from "@mui/material/Typography";
import Typography from '@mui/material/Typography';

const ListItemCustom = styled(ListItem)(() => ({
paddingTop: '0px',
paddingBottom: '0px',
paddingTop: '0px',
paddingBottom: '0px',
}));

const HelpBrowserSupport = () => {
return (
<div>
<Typography>Afaka manokatra ny LMM-OA ny ankamaroan’ireo programa fijerena internet nivoaka farany, ohatra hoe:</Typography>
<List>
<ListItemCustom>
<ListItemText primary="Chrome 53+" />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary="Edge 17+" />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary="Firefox 49+" />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary="Samsung Internet (Android)" />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary="Safari 10+" />
</ListItemCustom>
</List>
</div>
);
}

export default HelpBrowserSupport;
const { t } = useTranslation();

return (
<div>
<Typography>{t('help.aDeviceSupported')}</Typography>
<List>
<ListItemCustom>
<ListItemText primary='Chrome 53+' />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary='Edge 17+' />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary='Firefox 49+' />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary='Samsung Internet (Android)' />
</ListItemCustom>
<ListItemCustom>
<ListItemText primary='Safari 10+' />
</ListItemCustom>
</List>
</div>
);
};

export default HelpBrowserSupport;
31 changes: 17 additions & 14 deletions src/components/helpContent/HelpInstallPwa.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import Typography from "@mui/material/Typography";
import installBanner from "../../img/installBanner.png";
import { useTranslation } from 'react-i18next';
import Typography from '@mui/material/Typography';
import installBanner from '../../img/installBanner.png';

const HelpInstallPwa = () => {
return (
<div>
<Typography gutterBottom>Azonao atao <em>install</em> ao amin’ny fitaovana ampiasainao ny LMM-OA, ka tsy voatery manokatra ny programa fijerenao internet ianao avy eo rehefa hampiasa azy ity.</Typography>
<Typography>Eo amin’ny farany ambony indrindra, amin’ny sisiny ankavanana no misy ny fanaovana <em>install</em> ny LMM-OA</Typography>
<img src={installBanner} alt="Install Banner" className="imgHelp" />
<Typography gutterBottom>Araho avy eo ny toromarika miseho manaraka mandra-pahavitan’ny fampidirana ny programa LMM-OA ao amin’ny fitaovana ampiasainao.</Typography>
<Typography>Raha tsy miseho io sary io amin’ny fitaovana ampiasainao, dia azonao karohina ao amin’ny internet ny fanaovana <em>install</em> ny programa PWA amin’ny fitaovana sy programa fijerena internet ampiasainao</Typography>
</div>
);
}

export default HelpInstallPwa;
const { t } = useTranslation();

return (
<div>
<Typography gutterBottom>{t('help.aAlwaysBrowser1')}</Typography>
<Typography>{t('help.aAlwaysBrowser2')}</Typography>
<img src={installBanner} alt='Install Banner' className='imgHelp' />
<Typography gutterBottom>{t('help.aAlwaysBrowser3')}</Typography>
<Typography>{t('help.aAlwaysBrowser4')}</Typography>
</div>
);
};

export default HelpInstallPwa;
27 changes: 17 additions & 10 deletions src/components/helpContent/HelpLiveClass.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import Typography from "@mui/material/Typography";
import { useTranslation } from 'react-i18next';
import parse from 'html-react-parser';
import Typography from '@mui/material/Typography';

const HelpLiveClass = () => {
return (
<div>
<Typography variant="body1" gutterBottom>Mandritra ny valan’aretina COVID-19, dia mety misy mpianatra sasany tsy afaka manatrika ny fivoriana alamina amin’ny Zoom, na KHConf, na programa fanaovana fivoriana miaraka hafa.</Typography>
<Typography variant="body1" gutterBottom>Misy safidy hoe <strong>Mpianatra afaka mandray anjara mivantana ihany</strong> ao amin’ny Fanamboarana. Raha asiana marika io, dia ireo mpianatra afaka manao anjara amin’ny fivoriana miaraka ihany no miseho rehefa hanao fanendrena ianao. Ao amin’ny mombamomba ny mpianatra dia misy safidy hoe <strong>Afaka manao anjara mivantana</strong>. Raha asiana marika io ho an’ny mpianatra iray, dia amin’izay ihany izy vao afaka tendrena hanao anjara.</Typography>
</div>
);
}

export default HelpLiveClass;
const { t } = useTranslation();
return (
<div>
<Typography variant='body1' gutterBottom>
{t('help.aCovidSchedule1')}
</Typography>
<Typography variant='body1' gutterBottom>
{parse(t('help.aCovidSchedule2'))}
</Typography>
</div>
);
};

export default HelpLiveClass;
27 changes: 16 additions & 11 deletions src/components/helpContent/HelpNoInternet.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import Typography from "@mui/material/Typography";
import appNoInternet from "../../img/appNoInternet.png";
import { useTranslation } from 'react-i18next';
import Typography from '@mui/material/Typography';
import appNoInternet from '../../img/appNoInternet.png';

const HelpNoInternet = () => {
return (
<div>
<Typography variant="body1" gutterBottom>Tsy mila fahana internet ianao rehefa mampiasa ny LMM-OA. Rehefa manokatra azy voalohany ihany ianao no mila manana fahana. Maka ny rakitra rehetra ilaina mba hampandeha ny LMM-OA rehefa tsy misy internet ny fitaovana ampiasainao aloha. Hisy filazana hiseho eo amin’ny efijery rehefa vita izany.</Typography>
<img src={appNoInternet} alt="No internet banner" className="imgHelp" />
</div>
);
}

export default HelpNoInternet;
const { t } = useTranslation();

return (
<div>
<Typography variant='body1' gutterBottom>
{t('help.aAlwaysInternet')}
</Typography>
<img src={appNoInternet} alt='No internet banner' className='imgHelp' />
</div>
);
};

export default HelpNoInternet;
25 changes: 15 additions & 10 deletions src/components/helpContent/HelpUpdateSource.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import Typography from "@mui/material/Typography";
import { useTranslation } from 'react-i18next';
import parse from 'html-react-parser';
import Typography from '@mui/material/Typography';

const HelpUpdateSource = () => {
return (
<div>
<Typography variant="body1" gutterBottom>Ho fanajana ny fifanekena amin’ny fampiasana ny JW.ORG, dia tsy manavao ny loharanon-kevitra amin’ny alalan’ny internet ny LMM-OA.</Typography>
<Typography variant="body1">Afaka mampiditra herinandro vaovao ianao, eo amin’ilay hoe <strong>Herinandro vaovao</strong>. Azo ampidirina amin’ny alalan’ny EPUB nalaina mialoha avy tao amin’ny JW.ORG koa anefa izy io. Tsindrio ilay hoe <strong>Haka EPUB</strong>, ary safidio ilay rakitra EPUB ao amin’ny fitaovana ampiasainao.</Typography>
</div>
);
}

export default HelpUpdateSource;
const { t } = useTranslation();

return (
<div>
<Typography variant='body1'>
{parse(t('help.aAddSourceMaterial'))}
</Typography>
</div>
);
};

export default HelpUpdateSource;
22 changes: 22 additions & 0 deletions src/locales/e.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,27 @@
"scheduleTemplate.studentsAssignment": "Students Assigments",
"scheduleTemplate.studentAssistant": "Student/Assistant:",

"help.headDesc": "LMM-OA is an application to assist the Life and Ministry Meeting Overseer, to schedule the students assignment for the midweek meeting. Please find below some of the frequently asked questions about this application.",
"help.aboutApps": "ABOUT THIS APPLICATION",
"help.student": "STUDENTS",
"help.scheduling": "SCHEDULING",
"help.sourceMaterial": "SOURCE MATERIAL",
"help.qDeviceSupported": "What browsers support LMM-OA web application?",
"help.aDeviceSupported": "You may open and use LMM-OA with a modern and up to date browsers, such as:",
"help.qAlwaysBrowser": "Do I always need to use a browser to open LMM-OA?",
"help.aAlwaysBrowser1": "You may install LMM-OA to your device, so that you are no longer required to open the browser to use the application.",
"help.aAlwaysBrowser2": "The install button is on the top right of the screen",
"help.aAlwaysBrowser3": "Then follow the on-screen prompt to complete your installation",
"help.aAlwaysBrowser4": "If you do not find that icon in your browser, search on the internet on how to install a PWA apps into your specific device",
"help.qAlwaysInternet": "Do I always need to be connected to use LMM-OA?",
"help.aAlwaysInternet": "You do not need to have an internet connection to use LMM-OA. Internet is required only during its first load. LMM-OA downloads all the needed files to run the application when you are offline. A notification will appear on the screen when this first load is completed.",
"help.qStudentViewSchedule": "How students can view their assignments parts that are published online?",
"help.qCovidSchedule": "How to schedule the student parts during this COVID-19 pandemic?",
"help.aCovidSchedule1": "During this COVID-19 pandemic, it could be that there are some students which are temporarily available for assignments in live meeting using Zoom or KHConf or another applications.",
"help.aCovidSchedule2": "In the Settings page, there is an option called <strong>Students for live meeting only</strong>. If this setting is enabled, only students that meet this requirement only will be available for assignment. In the Student Details form, there is an option called <strong>Available for live meeting</strong>. If this option is enabled, only then the student will be available for assignment.",
"help.qAddSourceMaterial": "How to add source materials?",
"help.aAddSourceMaterial": "Click the <strong>Add new week</strong>, to add new week into the source material. But you may add weeks too using an EPUB file downloaded from JW.ORG. Click the <strong>Import EPUB</strong>, and browse to the location where you have downloaded the EPUB file.",


"about.description": "LMM-OA (Life and Ministry Meeting Overseer Assistant) is an application to coordinate and manage students assignment schedule for Midweek Meeting."
}
22 changes: 22 additions & 0 deletions src/locales/mg.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,27 @@
"scheduleTemplate.studentsAssignment": "Anjaran’ny Mpianatra",
"scheduleTemplate.studentAssistant": "Mpianatra/Mpanampy:",

"help.headDesc": "Programa natao hanampiana ny Mpiandraikitra ny Fivoriana Momba ny Fiainantsika sy ny Fanompoana ny LMM-OA, mba handaminana ny anjaran’ny mpianatra amin’ny fivoriana andavanandro. Hitanao eto ambany ny valin’ny fanontaniana samihafa rehefa mampiasa ity programa ity.",
"help.aboutApps": "MOMBAMOMBA ILAY PROGRAMA",
"help.student": "MPIANATRA",
"help.scheduling": "FANDAMINANA ANJARA",
"help.sourceMaterial": "LOHARANON-KEVITRA",
"help.qDeviceSupported": "Inona avy ny fitaovana fijerena internet azo ampiasana ny LMM-OA?",
"help.aDeviceSupported": "Afaka manokatra ny LMM-OA ny ankamaroan’ireo programa fijerena internet nivoaka farany, ohatra hoe:",
"help.qAlwaysBrowser": "Tsy maintsy manokatra programa fijerena internet ve vao afaka mampiasa ny LMM-OA?",
"help.aAlwaysBrowser1": "Azonao atao ampidirina ao amin’ny fitaovana ampiasainao ny LMM-OA, ka tsy voatery manokatra ny programa fijerenao internet ianao avy eo rehefa hampiasa azy ity.",
"help.aAlwaysBrowser2": "Eo amin’ny farany ambony indrindra, amin’ny sisiny ankavanana no misy ny fampidirana ny LMM-OA",
"help.aAlwaysBrowser3": "Araho avy eo ny toromarika miseho manaraka mandra-pahavitan’ny fampidirana ny programa LMM-OA ao amin’ny fitaovana ampiasainao.",
"help.aAlwaysBrowser4": "Raha tsy miseho io sary io amin’ny fitaovana ampiasainao, dia azonao karohina ao amin’ny internet ny fanaovana install ny programa PWA amin’ny fitaovana sy programa fijerena internet ampiasainao",
"help.qAlwaysInternet": "Tsy maintsy misy fahana internet ve vao afaka mampiasa ny LMM-OA?",
"help.aAlwaysInternet": "Tsy mila fahana internet ianao rehefa mampiasa ny LMM-OA. Rehefa manokatra azy voalohany ihany ianao no mila manana fahana. Maka ny rakitra rehetra ilaina mba hampandeha ny LMM-OA rehefa tsy misy internet ny fitaovana ampiasainao aloha. Hisy filazana hiseho eo amin’ny efijery rehefa vita izany.",
"help.qStudentViewSchedule": "Ahoana no hahafahan’ny mpianatra mijery fandaharana avy amin’ny internet?",
"help.aStudentViewSchedule1": "Ahoana no hahafahan’ny mpianatra mijery fandaharana avy amin’ny internet?",
"help.qCovidSchedule": "Ahoana no fomba handaminana anjara mandritra izao COVID-19 izao?",
"help.aCovidSchedule1": "Mandritra ny valan’aretina COVID-19, dia mety misy mpianatra sasany tsy afaka manatrika ny fivoriana alamina amin’ny Zoom, na KHConf, na programa fanaovana fivoriana miaraka hafa.",
"help.aCovidSchedule2": "Misy safidy hoe <strong>Mpianatra afaka mandray anjara mivantana ihany</strong> ao amin’ny Fanamboarana. Raha asiana marika io, dia ireo mpianatra afaka manao anjara amin’ny fivoriana miaraka ihany no miseho rehefa hanao fanendrena ianao. Ao amin’ny mombamomba ny mpianatra dia misy safidy hoe <strong>Afaka manao anjara mivantana</strong>. Raha asiana marika io ho an’ny mpianatra iray, dia amin’izay ihany izy vao afaka tendrena hanao anjara.",
"help.qAddSourceMaterial": "Ahoana ny fomba fampidirina ireo loharanon-kevitra?",
"help.aAddSourceMaterial": "Afaka mampiditra herinandro vaovao ianao, eo amin’ilay hoe <strong>Herinandro vaovao</strong>. Azo ampidirina amin’ny alalan’ny EPUB nalaina mialoha avy tao amin’ny JW.ORG koa anefa izy io. Tsindrio ilay hoe <strong>Haka EPUB</strong>, ary safidio ilay rakitra EPUB ao amin’ny fitaovana ampiasainao.",

"about.description": "Programa fandaminana anjaran’ny mpianatra amin’ny fivoriana andavanandro ny LMM-OA (Life and Ministry Meeting Overseer Assistant)."
}
Loading

0 comments on commit 748d27d

Please sign in to comment.