Bug 493767 - Split the different meanings of the string "Fit" for translation
Summary: Split the different meanings of the string "Fit" for translation
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.11.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Stefan Gerlach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-28 05:49 UTC by Huanyu Liu
Modified: 2024-09-30 22:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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