Skip to content

Commit

Permalink
UGENE-7964 Fix "In silico PCR" tab russian translations (#1448)
Browse files Browse the repository at this point in the history
* UGENE-7964 Fix In silico PCR tab russian translations

* UGENE-7964 update
  • Loading branch information
DmitriiSukhomlinov authored Nov 8, 2023
1 parent 6f3e508 commit fa5fa80
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/corelibs/U2Core/src/datatype/primers/PrimerStatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ const QString PrimersPairStatistics::TmString = "Tm" + QString::fromLatin1(" (\x
namespace {
const QString GC_RANGE = QString("%1-%2").arg(PrimerStatisticsCalculator::GC_BOTTOM).arg(PrimerStatisticsCalculator::GC_TOP);
const QString TM_RANGE = QString("%1-%2").arg(PrimerStatisticsCalculator::TM_BOTTOM).arg(PrimerStatisticsCalculator::TM_TOP);
const QString CLAMP_RANGE = QString(">=%1 G or C at 3' end").arg(PrimerStatisticsCalculator::CLAMP_BOTTOM);
const QString RUNS_RANGE = QString("<=%1 base runs").arg(PrimerStatisticsCalculator::RUNS_TOP);
const QString DIMERS_RANGE = QString("ΔG >=%1 kcal/mol").arg(PrimerStatisticsCalculator::DIMERS_ENERGY_THRESHOLD);
} // namespace

Expand Down Expand Up @@ -316,10 +314,12 @@ QString PrimersPairStatistics::generateReport() const {
result += "</tr>";

QString e;
CREATE_ROW("% GC", GC_RANGE, toString(forward.getGC()), toString(reverse.getGC()), forward.isValidGC(e), reverse.isValidGC(e));
CREATE_ROW("GC (%)", GC_RANGE, toString(forward.getGC()), toString(reverse.getGC()), forward.isValidGC(e), reverse.isValidGC(e));
CREATE_ROW(TmString, TM_RANGE, toString(forward.getTm()), toString(reverse.getTm()), forward.isValidTm(e), reverse.isValidTm(e));
CREATE_ROW("GC Clamp", CLAMP_RANGE, QString::number(forward.getGCClamp()), QString::number(reverse.getGCClamp()), forward.isValidGCClamp(e), reverse.isValidGCClamp(e));
CREATE_ROW("Runs", RUNS_RANGE, QString::number(forward.getRuns()), QString::number(reverse.getRuns()), forward.isValidRuns(e), reverse.isValidRuns(e));
const QString clumpRange = PrimerStatistics::tr("&gt;=%1 G or C at 3' end").arg(PrimerStatisticsCalculator::CLAMP_BOTTOM);
CREATE_ROW(PrimerStatistics::tr("GC Clamp"), clumpRange, QString::number(forward.getGCClamp()), QString::number(reverse.getGCClamp()), forward.isValidGCClamp(e), reverse.isValidGCClamp(e));
const QString mononuclLength = PrimerStatistics::tr("&lt;=%1 mononucleotide repeat length").arg(PrimerStatisticsCalculator::RUNS_TOP);
CREATE_ROW(PrimerStatistics::tr("Poly-X"), mononuclLength, QString::number(forward.getRuns()), QString::number(reverse.getRuns()), forward.isValidRuns(e), reverse.isValidRuns(e));
result += "</table>";
addDimersToReport(result);
return result;
Expand All @@ -335,7 +335,7 @@ const DimerFinderResult& U2::PrimersPairStatistics::getDimersInfo() const {

void PrimersPairStatistics::addDimersToReport(QString& report) const {
if (forward.getDimersInfo().canBeFormed || reverse.getDimersInfo().canBeFormed) {
report += "<h4>Self-dimers: </h4>";
report += QString("<h4>%1: </h4>").arg(PrimerStatistics::tr("Self-dimers"));
if (forward.getDimersInfo().canBeFormed) {
report += "<p>" + forward.getDimersInfo().getFullReport() + "</p>";
}
Expand All @@ -344,7 +344,7 @@ void PrimersPairStatistics::addDimersToReport(QString& report) const {
}
}
if (dimersInfo.canBeFormed) {
report += "<h4>Hetero-dimers: </h4>";
report += QString("<h4>%1: </h4>").arg(PrimerStatistics::tr("Hetero-dimers"));
report += "<p>" + dimersInfo.getFullReport() + "</p>";
}
}
Expand Down
30 changes: 30 additions & 0 deletions src/corelibs/U2Core/transl/russian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,16 @@ The session database file is removed after closing of UGENE.</source>
<source>reverse primer has %1.</source>
<translation>обратный праймер имеет %1.</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerStatistics.cpp" line="259"/>
<source>&amp;gt;=%1 G or C at 3&apos; end</source>
<translation>&amp;gt;=%1 G или C на 3&apos; конце</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerStatistics.cpp" line="260"/>
<source>&amp;lt;=%1 mononucleotide repeat length</source>
<translation>&amp;lt;=%1 длина мононуклеотидного повтора</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerStatistics.cpp" line="312"/>
<source>Criteria</source>
Expand All @@ -2421,6 +2431,26 @@ The session database file is removed after closing of UGENE.</source>
<source>Reverse</source>
<translation>Обратный</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerStatistics.cpp" line="321"/>
<source>GC Clamp</source>
<translation>Зажим GC</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerStatistics.cpp" line="322"/>
<source>Poly-X</source>
<translation>Poly-X</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerStatistics.cpp" line="338"/>
<source>Self-dimers</source>
<translation>Гомодимер</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerStatistics.cpp" line="347"/>
<source>Hetero-dimers</source>
<translation>Гетеродимер</translation>
</message>
<message>
<location filename="../src/datatype/primers/PrimerDimersFinder.cpp" line="39"/>
<source>&lt;b&gt;Delta&lt;/b&gt; G: %1 kcal/mole &lt;b&gt;Base Pairs:&lt;/b&gt; %2</source>
Expand Down
12 changes: 6 additions & 6 deletions src/plugins/pcr/transl/russian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<message>
<location filename="../src/InSilicoPcrOptionPanelWidget.ui" line="124"/>
<source>3&apos; perfect match</source>
<translation>3&apos; идеальное совпадение</translation>
<translation>Совпадение на 3&apos; конце</translation>
</message>
<message>
<location filename="../src/InSilicoPcrOptionPanelWidget.ui" line="117"/>
Expand Down Expand Up @@ -420,7 +420,7 @@
<message>
<location filename="../src/InSilicoPcrOptionPanelWidget.cpp" line="77"/>
<source>Inner</source>
<translation>Внутренний</translation>
<translation>Внутренние</translation>
</message>
<message>
<location filename="../src/InSilicoPcrOptionPanelWidget.cpp" line="78"/>
Expand All @@ -430,7 +430,7 @@
<message>
<location filename="../src/InSilicoPcrOptionPanelWidget.cpp" line="79"/>
<source>None</source>
<translation>Ни один</translation>
<translation>Не извлекать</translation>
</message>
<message>
<location filename="../src/InSilicoPcrOptionPanelWidget.cpp" line="99"/>
Expand Down Expand Up @@ -749,7 +749,7 @@
<message>
<location filename="../src/InSilicoPcrWorker.cpp" line="143"/>
<source>Inner</source>
<translation>Внутренний</translation>
<translation>Внутренние</translation>
</message>
<message>
<location filename="../src/InSilicoPcrWorker.cpp" line="144"/>
Expand All @@ -759,7 +759,7 @@
<message>
<location filename="../src/InSilicoPcrWorker.cpp" line="145"/>
<source>None</source>
<translation>Ни один</translation>
<translation>Не извлекать</translation>
</message>
<message>
<location filename="../src/InSilicoPcrWorker.cpp" line="153"/>
Expand Down Expand Up @@ -819,7 +819,7 @@
<message>
<location filename="../src/InSilicoPcrWorker.cpp" line="378"/>
<source>Failed to find TM algorithm with id &apos;%1&apos;.</source>
<translation>Не удалось найти алгоритм TM с идентификатором &apos;%1&apos;.</translation>
<translation>Не удалось найти алгоритм расчета температуры плавления с ID %1.</translation>
</message>
<message>
<location filename="../src/InSilicoPcrWorker.cpp" line="385"/>
Expand Down

0 comments on commit fa5fa80

Please sign in to comment.