Closed kaktusus closed 9 months ago
CC @wandererfan
I won't get this in for v0.21, but I'll put my notes here for posterity:
// I think this can go anywhere, but QGIView.cpp would be the best place.
#if 0// needed for Qt's lupdate utility
qApp->translate("DrawView", "View");
qApp->translate("DrawViewPart", "View");
qApp->translate("DrawViewSection", "Section");
qApp->translate("DrawComplexSection", "ComplexSection");
qApp->translate("DrawViewDetail", "Detail");
qApp->translate("DrawActiveView", "ActiveView");
qApp->translate("DrawViewAnnotation", "Annotation");
qApp->translate("DrawViewImage", "Image");
qApp->translate("DrawViewSymbol", "Symbol");
qApp->translate("DrawViewArch", "Arch");
qApp->translate("DrawViewDraft", "Draft");
#endif
// in QGIView.cpp drawBorder
QString qClassName = QString::fromUtf8("DrawView");
QString qTypeName = QString::fromUtf8(getViewObject()->getTypeId().getName());
QRegularExpression rxClassName(QString::fromUtf8("^.+::(.+)"));
QRegularExpressionMatch match;
int pos = qTypeName.indexOf(rxFontSize, pos, &match));
if ( qTypeName.indexOf(rxFontSize, pos, &match)) != -1) {
qClassName = match.captured(0);
}
QString labelStr = qApp->translate(qClassName, getViewObject()->Label.getValue());
m_label->setPlainText(labelStr);
@WandererFan Ready to add this now that we're post-release ?
Can anybody provide guidance on how I would test this after making the code changes?
I'm only familiar with the mad rush process at release time.
I can provide help and guidance if you have a translation test in mind.
This should be fixed by #10202. It will probably need a Crowdin cycle before the results are apparent as I was testing with a local translation file.
great
thank you for implementing this feature
Some time ago (#71) it was made possible to translate object names for the
Insert Projection Group
tool.It is welcome to proceed consistently and translate these names for the other tools in the view group.
View
Active view
Detail
Section
Section
for complex section