Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
add I18nc to wdg_tool_transform percent values
Ross Rosales3ef74c07b728
diff --git a/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp b/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cppindex 914eb5ca20..f7801e1d11 100644--- a/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp+++ b/plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp@@ -17,6 +17,7 @@#include "kis_transform_utils.h"#include "kis_config_notifier.h"#include <kstandardguiitem.h>+#include <KisSpinBoxI18nHelper.h>template<typename T> inline T sign(T x) {@@ -140,6 +141,8 @@ KisToolTransformConfigWidget::KisToolTransformConfigWidget(TransformTransactionPscaleYBox->setRange(-10000, 10000);scaleXBox->setValue(100.0);scaleYBox->setValue(100.0);+ KisSpinBoxI18nHelper::setText(scaleXBox, i18nc("{n} is the number value, % is the percent sign", "{n}%"));+ KisSpinBoxI18nHelper::setText(scaleYBox, i18nc("{n} is the number value, % is the percent sign", "{n}%"));m_scaleRatio = 1.0;