Skip to content

Commit

Permalink
Removing tW & renaming twl
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinpaul committed Aug 7, 2024
1 parent 5567d62 commit 4930891
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 50 deletions.
68 changes: 34 additions & 34 deletions renderer/src/components/EditorPage/Reference/TranslationHelps.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ const TranslationHelps = ({
fontSize={fontSize}
/>
);
case 'twlm':
return (
<TranslationHelpsCard
title={t('label-resource-twlm')}
verse={verse}
chapter={chapter}
projectId={bookId || 'mat'}
branch={branch}
viewMode="markdown"
languageId={languageId}
resourceId="twl"
owner={owner}
server="https://git.door43.org"
font={font}
fontSize={fontSize}
/>
);
// case 'twlm':
// return (
// <TranslationHelpsCard
// title={t('label-resource-twlm')}
// verse={verse}
// chapter={chapter}
// projectId={bookId || 'mat'}
// branch={branch}
// viewMode="markdown"
// languageId={languageId}
// resourceId="twl"
// owner={owner}
// server="https://git.door43.org"
// font={font}
// fontSize={fontSize}
/// >
// );
case 'tq':
return (
<TranslationHelpsCard
Expand All @@ -96,23 +96,23 @@ const TranslationHelps = ({
fontSize={fontSize}
/>
);
case 'tw':
return (
<TranslationHelpsCard
title={t('label-resource-twlm')}
chapter={chapter}
branch={branch}
projectId="bible"
languageId={languageId}
resourceId="tw"
owner={owner}
filePath={offlineResource?.twSelected?.folder}
server="https://git.door43.org"
offlineResource={offlineResource}
font={font}
fontSize={fontSize}
/>
);
// case 'tw':
// return (
// <TranslationHelpsCard
// title={t('label-resource-twlm')}
// chapter={chapter}
// branch={branch}
// projectId="bible"
// languageId={languageId}
// resourceId="tw"
// owner={owner}
// filePath={offlineResource?.twSelected?.folder}
// server="https://git.door43.org"
// offlineResource={offlineResource}
// font={font}
// fontSize={fontSize}
/// >
// );
case 'ta':
return (
<TranslationHelpsCard
Expand Down
10 changes: 5 additions & 5 deletions renderer/src/components/Resources/ListResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const ListResources = ({
const [translationNote, setTranslationNote] = useState([]);
const [juxtalinear, setJuxtalinear] = useState([]);
const [translationQuestion, setTranslationQuestion] = useState([]);
const [translationWord, settranslationWord] = useState([]);
// const [translationWord, settranslationWord] = useState([]);
const [translationAcademy, setTranslationAcademy] = useState([]);
const [obsTranslationNote, setObsTranslationNote] = useState([]);
const [obsTranslationQuestion, setObsTranslationQuestion] = useState([]);
Expand Down Expand Up @@ -103,9 +103,9 @@ export const ListResources = ({
case 'tn':
await fetchTranslationResource('TSV Translation Notes', setTranslationNote, selectResource, selectedPreProd, snackBarAction);
break;
case 'tw':
await fetchTranslationResource('Translation Words', settranslationWord, selectResource, selectedPreProd, snackBarAction);
break;
// case 'tw':
// await fetchTranslationResource('Translation Words', settranslationWord, selectResource, selectedPreProd, snackBarAction);
// break;
case 'twlm':
await fetchTranslationResource('TSV Translation Words Links', settranslationWordList, selectResource, selectedPreProd, snackBarAction);
break;
Expand Down Expand Up @@ -138,7 +138,7 @@ export const ListResources = ({
{ id: 'jxl', title: 'Juxtalinear', resource: juxtalinear },
{ id: 'tn', title: t('label-resource-tn'), resource: translationNote },
{ id: 'twlm', title: t('label-resource-twl'), resource: translationWordList },
{ id: 'tw', title: t('label-resource-twlm'), resource: translationWord },
// { id: 'tw', title: t('label-resource-twlm'), resource: translationWord },
{ id: 'tq', title: t('label-resource-tq'), resource: translationQuestion },
{ id: 'ta', title: t('label-resource-ta'), resource: translationAcademy },
{ id: 'obs-tn', title: t('label-resource-obs-tn'), resource: obsTranslationNote },
Expand Down
12 changes: 6 additions & 6 deletions renderer/src/components/Resources/ResourcesSideBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ export default function ResourcesSidebar({
resourceType: 'translationWordList',
Icon: ClipboardDocumentListIcon,
},
{
id: 'tw',
title: t('label-resource-twlm'),
resourceType: 'translationWord',
Icon: Square3Stack3DIcon,
},
// {
// id: 'tw',
// title: t('label-resource-twlm'),
// resourceType: 'translationWord',
// Icon: Square3Stack3DIcon,
// },
{
id: 'tq',
title: t('label-resource-tq'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function getCurrentOnlineOfflineHelpsResources(selectResource) {
{ id: 'jxl', title: 'Juxtalinear', resource: juxtalinear },
{ id: 'tn', title: t('label-resource-tn'), resource: translationNote },
{ id: 'twlm', title: t('label-resource-twl'), resource: translationWordList },
{ id: 'tw', title: t('label-resource-twlm'), resource: translationWord },
// { id: 'tw', title: t('label-resource-twlm'), resource: translationWord },
{ id: 'tq', title: t('label-resource-tq'), resource: translationQuestion },
{ id: 'ta', title: t('label-resource-ta'), resource: translationAcademy },
{ id: 'obs-tn', title: t('label-resource-obs-tn'), resource: obsTranslationNote },
Expand Down
4 changes: 2 additions & 2 deletions renderer/src/translations/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ export const En = {
'label-resource-obs': 'Open Bible Stories',
'label-resource-tn': 'Translation Notes',
'label-resource-twlm': 'Translation Words',
'label-resource-twl': 'Translation Words List',
'label-resource-twl': 'Translation Words Links',
'label-resource-tq': 'Translation Questions',
'label-resource-ta': 'Translation Academy',
'label-resource-name': 'resource name',
'label-footnotes': 'Foot Notes',
'label-location': 'location',
'label-audio-bible': 'Audio',
'label-resource-obs-twl': 'OBS Translation Words List',
'label-resource-obs-twl': 'OBS Translation Words Links',
'placeholder-resource-name': 'Enter resource name',
'placeholder-license-name': 'License Name',
'placeholder-search': 'Search…',
Expand Down
4 changes: 2 additions & 2 deletions renderer/src/translations/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ export const Id = {
'label-resource-obs': 'Open Bible Stories',
'label-resource-tn': 'Translation Notes',
'label-resource-twlm': 'Translation Words',
'label-resource-twl': 'Translation Words List',
'label-resource-twl': 'Translation Words Links',
'label-resource-tq': 'Translation Questions',
'label-resource-ta': 'Translation Academy',
'label-resource-name': 'nama sumber daya',
'label-footnotes': 'Catatan Kaki',
'label-location': 'lokasi',
'label-audio-bible': 'Audio',
'label-resource-obs-twl': 'OBS Translation Words List',
'label-resource-obs-twl': 'OBS Translation Words Links',
'placeholder-resource-name': 'Masukan nama sumber daya',
'placeholder-license-name': 'Nama Lisensi',
'placeholder-search': 'Cari…',
Expand Down

0 comments on commit 4930891

Please sign in to comment.