Skip to content

Commit

Permalink
translations update
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbanasick committed Jul 27, 2024
1 parent 5536db8 commit 03f5713
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,8 @@ const FactorSelectionForOutputButtons = () => {
updateOutputForDataViz2([]);
} else {
if (!includes(userSelectedFactors, factor)) {
console.log('clicked factor: ', factor);
userSelectedFactors.push(factor);
console.log(JSON.stringify(userSelectedFactors));
userSelectedFactors.sort();
console.log(JSON.stringify(userSelectedFactors));

if (factor === 'factor 1') {
updateHighlightFactor1(true);
}
Expand Down Expand Up @@ -183,15 +179,11 @@ const FactorSelectionForOutputButtons = () => {
if (factor === 'factor 8') {
updateHighlightFactor8(false);
}

console.log('un-Clicked factor: ', factor);
updateUserSelectedFactors(filteredArray);
}
}
};

console.log(JSON.stringify(userSelectedFactors));

if (showOutputFactorSelection) {
return (
<Transition visible={showOutputFactorSelection} animation="fade" duration={1000}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const pushFactorScoreComparisonRanksTableToOutput = function (
colSizes
) {
// getState
const synFactorArray1 = calcState.getState().synFactorArray1Holder;
const synFactorArray1 = cloneDeep(calcState.getState().synFactorArray1Holder);
const userSelectedFactors = cloneDeep(outputState.getState().userSelectedFactors);
let tempArray1;
let rankValue;
Expand Down Expand Up @@ -149,7 +149,7 @@ const pushFactorScoreComparisonRanksTableToOutput = function (
// tempArrayHeader2.push(userSelectedFactors[yy], userSelectedFactors[yy]);
const factorName = `${i18n.t('Factor')} ${factorNum}`;
tempArrayHeader2.push(factorName, factorName);
tempSubHeader.push(i18n.t('Z-score'), i18n.t('Rank'));
tempSubHeader.push(i18n.t('Z score'), i18n.t('Rank'));
}

factorScoreRanksArray.unshift(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const pushFactorsToOutputArray = (outputData, sheetNamesXlsx, colSizes) => {
// FOR EACH FACTOR LOOP
for (let j = 0; j < analysisOutput.length; j += 1) {
// FACTOR WEIGHTS TABLES STARTS FROM HERE
const factorWeightFactorArray = [[i18n.t('Nm'), i18n.t('Q-Sort'), i18n.t('Weight')]];
const factorWeightFactorArray = [[i18n.t('Nm'), i18n.t('Q sort'), i18n.t('Weight')]];
const factorWeightName = userSelectedFactors[j];
for (let w = 0; w < sortWeights.length; w += 1) {
const factorWeightTempArray = [];
Expand All @@ -240,7 +240,7 @@ const pushFactorsToOutputArray = (outputData, sheetNamesXlsx, colSizes) => {

// pull correlations from table
const miniCorrelationArray = [];
const miniCorrelationHeaderArray = [i18n.t('Q-Sort')];
const miniCorrelationHeaderArray = [i18n.t('Q sort')];
const miniCorrelationHeaderIndex = correlationTableArrayFormatted2[0];

// loop through all sig Sorts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const pushLoadingsTableToOutput = function (outputData, sheetNamesXlsx, colSizes

const formattedResults = [];

const headerRow = [i18n.t('Nm'), i18n.t('Q-sort'), i18n.t('Factor Group')];
const headerRow = [i18n.t('Nm'), i18n.t('Q sort'), i18n.t('Factor Group')];

const key1Array = [];
const key2Array = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const pushRotFactorsArrayToOutput = function (outputData, sheetNamesXlsx, colSiz
// create check array of userSelectedFactors
// add to header array

const headerRow = [i18n.t('Nm'), i18n.t('Q-sort')];
const headerRow = [i18n.t('Nm'), i18n.t('Q sort')];
const userSelectedFactorsArray = [...userSelectedFactors];
const newUserSelectedFactorsArray = [];
const userSelectedFactorsCheckArray = [];
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/src/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,5 +553,6 @@
"Check the spreadsheet type": "Überprüfen Sie den Tabellentyp",
"Participant data and Q sort data do not match": "Teilnehmerdaten und Q-Sort-Daten stimmen nicht überein",
"One or more participants have a different number of Q sorts values than the project design": "Ein oder mehrere Teilnehmer haben eine andere Anzahl von Q-Sort-Werten als das Projekt-Design",
"The 'version' tab is missing from the spreadsheet": "Das Tabellenblatt 'Version' fehlt in der Tabelle"
"The 'version' tab is missing from the spreadsheet": "Das Tabellenblatt 'Version' fehlt in der Tabelle",
"Sort Values": "Sortierwerte"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,5 +546,6 @@
"Check the spreadsheet type": "Check the spreadsheet type",
"Participant data and Q sort data do not match": "Participant data and Q sort data do not match",
"One or more participants have a different number of Q sorts values than the project design": "One or more participants have a different number of Q sorts values than the project design",
"The 'version' tab is missing from the spreadsheet": "The 'version' tab is missing from the spreadsheet"
"The 'version' tab is missing from the spreadsheet": "The 'version' tab is missing from the spreadsheet",
"Sort Values": "Sort Values"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -552,5 +552,6 @@
"Check the spreadsheet type": "Verifique el tipo de hoja de cálculo",
"Participant data and Q sort data do not match": "Los datos de los participantes y los datos del ordenamiento Q no coinciden",
"One or more participants have a different number of Q sorts values than the project design": "Uno o más participantes tienen un número diferente de valores de ordenamientos Q que el diseño del proyecto",
"The 'version' tab is missing from the spreadsheet": "La pestaña 'version' falta en la hoja de cálculo"
"The 'version' tab is missing from the spreadsheet": "La pestaña 'version' falta en la hoja de cálculo",
"Sort Values": "Valores de ordenamiento"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,5 +555,6 @@
"Check the spreadsheet type": "Vérifiez le type de feuille de calcul",
"Participant data and Q sort data do not match": "Les données des participants et les données de tri Q ne correspondent pas",
"One or more participants have a different number of Q sorts values than the project design": "Un ou plusieurs participants ont un nombre de valeurs de tri Q différent de la conception du projet",
"The 'version' tab is missing from the spreadsheet": "L'onglet 'version' est manquant dans la feuille de calcul"
"The 'version' tab is missing from the spreadsheet": "L'onglet 'version' est manquant dans la feuille de calcul",
"Sort Values": "Valeurs de tri"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/it/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,6 @@
"Check the spreadsheet type": "Controllare il tipo di foglio di calcolo",
"Participant data and Q sort data do not match": "I dati dei partecipanti e i dati di ordinamento Q non corrispondono",
"One or more participants have a different number of Q sorts values than the project design": "Uno o più partecipanti hanno un numero diverso di valori di ordinamento Q rispetto al progetto di progettazione",
"The 'version' tab is missing from the spreadsheet": "La scheda 'versione' manca dal foglio di calcolo"
"The 'version' tab is missing from the spreadsheet": "La scheda 'versione' manca dal foglio di calcolo",
"Sort Values": "Valori di ordinamento"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,5 +553,6 @@
"Check the spreadsheet type": "スプレッドシートタイプを確認してください",
"Participant data and Q sort data do not match": "参加者データとQ-sortデータが一致しません",
"One or more participants have a different number of Q sorts values than the project design": "1人以上の参加者が、プロジェクト設計と異なる数のQ-sort値を持っています",
"The 'version' tab is missing from the spreadsheet": "スプレッドシートに「バージョン」タブがありません"
"The 'version' tab is missing from the spreadsheet": "スプレッドシートに「バージョン」タブがありません",
"Sort Values": "ソート値"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/ko/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,5 +554,6 @@
"Check the spreadsheet type": "스프레드시트 유형을 확인하세요",
"Participant data and Q sort data do not match": "참가자 데이터와 Q-정렬 데이터가 일치하지 않습니다",
"One or more participants have a different number of Q sorts values than the project design": "하나 이상의 참가자가 프로젝트 디자인과 다른 수의 Q-정렬 값을 가지고 있습니다",
"The 'version' tab is missing from the spreadsheet": "스프레드시트에 '버전' 탭이 누락되었습니다"
"The 'version' tab is missing from the spreadsheet": "스프레드시트에 '버전' 탭이 누락되었습니다",
"Sort Values": "정렬 값"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/nb/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,5 +538,6 @@
"Cant find the Q sort pattern": "Finner ikke Q-sorteringsmønsteret",
"No Q sorts found": "Ingen Q-sorteringer funnet",
"Check the Q sort data": "Sjekk Q-sorteringsdataene",
"Check the Q sort pattern data": "Sjekk Q-sorteringsmønsterdataene"
"Check the Q sort pattern data": "Sjekk Q-sorteringsmønsterdataene",
"Sort Values": "Sorteringsverdier"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/nl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,6 @@
"Check the spreadsheet type": "Controleer het spreadsheettype",
"Participant data and Q sort data do not match": "Deelnemersgegevens en Q-sorteergegevens komen niet overeen",
"One or more participants have a different number of Q sorts values than the project design": "Een of meer deelnemers hebben een ander aantal Q-sorteerwaarden dan het projectontwerp",
"The 'version' tab is missing from the spreadsheet": "Het tabblad 'versie' ontbreekt in het spreadsheet"
"The 'version' tab is missing from the spreadsheet": "Het tabblad 'versie' ontbreekt in het spreadsheet",
"Sort Values": "Sorteerwaarden"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,6 @@
"Check the spreadsheet type": "Verificar o tipo de folha de cálculo",
"Participant data and Q sort data do not match": "Os dados do participante e os dados de ordenação Q não correspondem",
"One or more participants have a different number of Q sorts values than the project design": "Um ou mais participantes têm um número diferente de valores de ordenação Q do que o design do projeto",
"The 'version' tab is missing from the spreadsheet": "O separador 'versão' está em falta na folha de cálculo"
"The 'version' tab is missing from the spreadsheet": "O separador 'versão' está em falta na folha de cálculo",
"Sort Values": "Valores de ordenação"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/sv/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,6 @@
"Check the spreadsheet type": "Kontrollera kalkylbladstypen",
"Participant data and Q sort data do not match": "Deltagardata och Q-sorteringsdata matchar inte",
"One or more participants have a different number of Q sorts values than the project design": "En eller flera deltagare har ett annat antal Q-sorteringsvärden än projektets design",
"The 'version' tab is missing from the spreadsheet": "Fliken 'version' saknas i kalkylarket"
"The 'version' tab is missing from the spreadsheet": "Fliken 'version' saknas i kalkylarket",
"Sort Values": "Sorteringsvärden"
}
3 changes: 2 additions & 1 deletion src/renderer/src/locales/zh_CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -553,5 +553,6 @@
"Check the spreadsheet type": "检查电子表格类型",
"Participant data and Q sort data do not match": "参与者数据和Q排序数据不匹配",
"One or more participants have a different number of Q sorts values than the project design": "一个或多个参与者的Q排序值数量与项目设计不同",
"The 'version' tab is missing from the spreadsheet": "电子表格中缺少“版本”选项卡"
"The 'version' tab is missing from the spreadsheet": "电子表格中缺少“版本”选项卡",
"Sort Values": "排序值"
}

0 comments on commit 03f5713

Please sign in to comment.