Skip to content

Commit

Permalink
translation
Browse files Browse the repository at this point in the history
* add french
* refresh .ts file
* add CAD currency
  • Loading branch information
Acktarius committed Feb 11, 2025
1 parent c6d70f3 commit 841ed5a
Show file tree
Hide file tree
Showing 21 changed files with 9,290 additions and 3,469 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
lrelease src/languages/cn.ts
lrelease src/languages/ru.ts
lrelease src/languages/tr.ts
lrelease src/languages/fr.ts
New-Item "$build_folder\$release_folder" -ItemType Directory
cd "$build_folder"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
lrelease src/languages/cn.ts
lrelease src/languages/ru.ts
lrelease src/languages/tr.ts
lrelease src/languages/fr.ts
New-Item "$build_folder\$release_folder" -ItemType Directory
cd "$build_folder"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ui_*.h
*.jsc
Makefile*
*build-*
*.qm
#*.qm
*.prl

# Qt unit tests
Expand Down
3 changes: 2 additions & 1 deletion conceal-desktop.pro
Original file line number Diff line number Diff line change
Expand Up @@ -708,4 +708,5 @@ RESOURCES += src/resources.qrc
TRANSLATIONS += src/languages/cn.ts \
src/languages/en.ts \
src/languages/ru.ts \
src/languages/tr.ts
src/languages/tr.ts \
src/languages/fr.ts
15 changes: 12 additions & 3 deletions src/gui/OverviewFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ namespace WalletGui
m_ui->m_language->addItem("TRY");
m_ui->m_language->addItem("CNY");
m_ui->m_language->addItem("AUD");
m_ui->m_language->addItem("CAD");
m_ui->m_language->addItem("NZD");
m_ui->m_language->addItem("SGD");
m_ui->m_language->addItem("LKR");
Expand Down Expand Up @@ -348,6 +349,10 @@ namespace WalletGui
{
m_ui->m_chinese->setChecked(true);
}
else if (language.compare("fr") == 0)
{
m_ui->m_french->setChecked(true);
}
else
{
m_ui->m_english->setChecked(true);
Expand Down Expand Up @@ -486,11 +491,11 @@ namespace WalletGui
numUnlockedOutputs = WalletAdapter::instance().getNumUnlockedOutputs();
if (numUnlockedOutputs >= 100)
{
m_ui->m_optimizationMessage->setText("Recommended [" + QString::number(numUnlockedOutputs) + "]");
m_ui->m_optimizationMessage->setText(tr("Recommended") + " [" + QString::number(numUnlockedOutputs) + "]");
}
else
{
m_ui->m_optimizationMessage->setText("Not required [" + QString::number(numUnlockedOutputs) + "]");
m_ui->m_optimizationMessage->setText(tr("Not required") + " [" + QString::number(numUnlockedOutputs) + "]");
}

if (!Settings::instance().isEncrypted())
Expand Down Expand Up @@ -525,7 +530,7 @@ namespace WalletGui
}
else
{
m_ui->b2_encryptWalletButton->setText("CHANGE PASSWORD");
m_ui->b2_encryptWalletButton->setText(tr("CHANGE PASSWORD"));
}

/* Don't show the LOCK button if the wallet is not encrypted */
Expand Down Expand Up @@ -1814,6 +1819,10 @@ namespace WalletGui
{
language = "cn";
}
else if (m_ui->m_french->isChecked())
{
language = "fr";
}
else
{
language = "en";
Expand Down
61 changes: 53 additions & 8 deletions src/gui/ui/overviewframe.ui
Original file line number Diff line number Diff line change
Expand Up @@ -8434,13 +8434,13 @@ padding-left: 5px;
</property>
<property name="minimumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
Expand Down Expand Up @@ -8479,13 +8479,13 @@ padding-left: 5px;
</property>
<property name="minimumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
Expand Down Expand Up @@ -8524,13 +8524,13 @@ padding-left: 5px;
</property>
<property name="minimumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
Expand Down Expand Up @@ -8569,13 +8569,13 @@ padding-left: 5px;
</property>
<property name="minimumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<width>130</width>
<height>20</height>
</size>
</property>
Expand Down Expand Up @@ -8604,6 +8604,51 @@ padding-left: 5px;
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="m_french">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>130</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>130</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<family>Poppins</family>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: #fff;

border: 0px;</string>
</property>
<property name="text">
<string>French</string>
</property>
<property name="icon">
<iconset resource="../../resources.qrc">
<normaloff>:/images/flags/fr</normaloff>:/images/flags/fr</iconset>
</property>
<property name="checked">
<bool>false</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">buttonGroup</string>
</attribute>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_11">
<property name="orientation">
Expand Down
Binary file added src/images/fr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/languages/cn.qm
Binary file not shown.
Loading

0 comments on commit 841ed5a

Please sign in to comment.