Bug 493767

Summary: Split the different meanings of the string "Fit" for translation
Product: [Applications] LabPlot2 Reporter: Huanyu Liu <1293660441>
Component: generalAssignee: Stefan Gerlach <stefan.gerlach>
Status: RESOLVED FIXED    
Severity: minor CC: stefan.gerlach
Priority: NOR    
Version First Reported In: 2.11.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Huanyu Liu 2024-09-28 05:49:55 UTC
SUMMARY
Currently, the string "Fit" is used with two different meanings in LabPlot. The first one is about zooming (Fit / No Fit / Fit to Height / ...), and the second one is a mathematical operation (curve fitting). Currently, they share the same string, but in some languages they have different translations (e.g. in Chinese, the former is translated as 适合 or 适应, while the latter is translated as 拟合). The former can be found at "Worksheet → Zoom → Fit", and the latter can be found at "Analysis → Fit" after right-clicking on an XY-curve.

STEPS TO REPRODUCE
Check the labplot.po file

OBSERVED RESULT
There is only one "Fit" string shared by the two functions

EXPECTED RESULT
The two different meanings of "Fit" should be split

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
(None)
Comment 1 Stefan Gerlach 2024-09-30 22:13:22 UTC
Git commit a4128ff396660925a625815baa3c08527204bad8 by Stefan Gerlach.
Committed on 30/09/2024 at 22:12.
Pushed by sgerlach into branch 'master'.

l10n: add context to strings containing "Fit"

M  +1    -1    src/backend/core/column/Column.cpp
M  +4    -4    src/backend/worksheet/plots/cartesian/CartesianPlot.cpp
M  +2    -2    src/backend/worksheet/plots/cartesian/XYFitCurve.cpp
M  +2    -2    src/commonfrontend/datapicker/DatapickerImageView.cpp
M  +2    -2    src/commonfrontend/spreadsheet/SpreadsheetView.cpp
M  +5    -5    src/commonfrontend/worksheet/WorksheetView.cpp
M  +1    -1    src/kdefrontend/dockwidgets/XYFitCurveDock.cpp
M  +2    -2    src/kdefrontend/spreadsheet/PlotDataDialog.cpp

https://invent.kde.org/education/labplot/-/commit/a4128ff396660925a625815baa3c08527204bad8