Skip to content

fix: correct punctuation and grammar in UI warning/tip strings#10813

Open
BenJule wants to merge 6 commits into
bambulab:masterfrom
BenJule:fix/punctuation-spacing-ui-strings
Open

fix: correct punctuation and grammar in UI warning/tip strings#10813
BenJule wants to merge 6 commits into
bambulab:masterfrom
BenJule:fix/punctuation-spacing-ui-strings

Conversation

@BenJule
Copy link
Copy Markdown

@BenJule BenJule commented May 20, 2026

Summary

Fixes missing spaces after Warning:, Error:, and Tip: prefixes, missing spaces after sentence-ending periods and commas, and several grammar errors in UI strings that appear to originate from machine translation.

Files changed

File Issues fixed
GLGizmoText.cpp Warning:XWarning: X; create text failText creation failed; text normal is errorText normal has an error; reedit it will okreedit it to fix the issue; dragging textdrag the text; missing comma spaces
GLGizmoMeasure.cpp Warning:XWarning: X; two different meshtwo different meshes
GLGizmoSVG.cpp Tip:If...Tip: If...; missing comma; svg fileSVG file
PlaterWorker.hpp error occurederror occurred
DeviceManager.cpp filament(PLA...)filament (PLA...); missing spaces after . and ,
BindDialog.cpp device.Beforedevice. Before; termsandterms and; Use(collectively)Use (collectively)
ConfigManipulation.cpp Missing spaces after , and . in chamber temperature warning
AMSSetting.cpp 1 minute.The1 minute. The
Preferences.cpp tab.If change valuetab. If you change this value

All corresponding msgid entries in BambuStudio.pot and all 18 language .po files have been updated.

Test plan

  • Open the Text gizmo and trigger the various warning states (mirror in matrix, font warning, creation failure, etc.) — confirm correct spacing and wording
  • Open the Measure/Assembly gizmo and trigger the feature-selection warnings — confirm correct wording
  • Open the SVG gizmo without selecting a part first — confirm Tip: message has correct spacing
  • Trigger a liveview error in LAN mode — confirm occurred spelling
  • Set chamber temperature above material's safe temperature — confirm spacing in warning dialog
  • Open AMS start-up settings — confirm spacing in tip text
  • Check Preferences → Always show shells in preview tooltip — confirm corrected wording

Closes #10853.

BenJule added 6 commits May 21, 2026 10:52
The upstream build_all.yml only listed 'main' as a push trigger.
BenJule/BambuStudio uses 'master' as its default branch, so CI never
fired on fork-local pushes. Adding 'master' alongside 'main' makes
the full multi-platform build run when master is updated.
… locale files

The fila_manager web page was hardcoded in Chinese (lang="zh") with no
internationalization support. This commit adds a lightweight i18n system:

- Add locales/en.json and locales/zh_CN.json with all UI strings
- Add t(key) / tf(key, n) translation helpers loaded at startup
- Apply translations via data-i18n / data-i18n-placeholder attributes in HTML
- Replace all hardcoded Chinese strings in index.js with t() calls
- Language is resolved from the ?lang= URL parameter passed by C++
… strings

Two printer status strings shown during calibration used the misspelling
"percision" instead of "precision". Also fix lang="zh-CN" in
NozzleListTable.html (the table content is set by C++ at runtime).

All .po and .pot msgid entries updated to match the corrected source strings.
- 'Problem occured' → 'Problem occurred' (MediaPlayCtrl.cpp)
- 'When enable spiral vase mode' → 'When enabling ...' (SelectMachine.cpp, SyncAmsInfoDialog.cpp)
- 'connectors is out of object' → 'connectors are out of object' (GLGizmoAdvancedCut.cpp)
- 'Error:Detecting ...' → 'Error: Detecting ...' with spacing fixes (GLGizmoText.cpp)

Update all corresponding msgid entries in BambuStudio.pot and all 18 .po locale files.
Fix missing spaces after 'Warning:', 'Error:', and 'Tip:' prefixes,
missing spaces after sentence-ending periods and commas, and several
grammar issues in strings that appear to originate from machine
translation:

- GLGizmoText.cpp: fix 9 Warning: strings (space + grammar)
  - 'Warning:create text fail.' → 'Warning: Text creation failed.'
  - 'Warning:text normal is error.' → 'Warning: Text normal has an error.'
  - 'Warning:Due to font upgrades,previous...' → proper spacing
  - 'reedit it will ok' → 'reedit it to fix the issue'
  - 'dragging text' → 'drag the text' (imperative form)
- GLGizmoMeasure.cpp: fix 3 Warning: strings + 'two different mesh' → 'meshes'
- GLGizmoSVG.cpp: fix 'Tip:If...' + missing comma + 'svg file' → 'SVG file'
- PlaterWorker.hpp: 'error occured' → 'error occurred'
- DeviceManager.cpp: missing spaces after period/comma + '(PLA...)' spacing
- BindDialog.cpp: 'device.Before', 'termsand', 'Use(collectively)' spacing
- ConfigManipulation.cpp: missing spaces after comma and period
- AMSSetting.cpp: missing space after '1 minute.'
- Preferences.cpp: 'tab.If change value' → 'tab. If you change this value'

Update all msgid entries in BambuStudio.pot and all 18 .po locale files.
@BenJule BenJule force-pushed the fix/punctuation-spacing-ui-strings branch from 1b2215e to 952926e Compare May 21, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing spaces after 'Warning:'/'Error:'/'Tip:' prefixes and grammar errors in UI strings

1 participant