Add LanguageSwitch system object for real-time i18n refresh of all SQLText nodes - #198
Draft
clauspruefer with Copilot wants to merge 3 commits into
Draft
Add LanguageSwitch system object for real-time i18n refresh of all SQLText nodes#198clauspruefer with Copilot wants to merge 3 commits into
clauspruefer with Copilot wants to merge 3 commits into
Conversation
Copilot created this pull request from a session on behalf of
clauspruefer
July 30, 2026 11:21
View session
clauspruefer
requested changes
Jul 31, 2026
clauspruefer
left a comment
Member
There was a problem hiding this comment.
@copilot sysFactory.js does not need the this.SQLTextObjects Array. All SQLTextObjects can be retrieved by sysBaseObject.getObjectsByType(ObjectType);
Contributor
Author
Done in 3200eae. I removed the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change implements a runtime language switch control (pulldown + apply button) and wires it to refresh all
sysObjSQLTextinstances immediately. Selecting a language and applying it now updates on-screen multilingual text without reload.New runtime object:
LanguageSwitchsysObjLanguageSwitch(www/sysObjLanguageSwitch.js).FormfieldPulldownfor language selection and a callback button to apply.sysFactory.ObjText.Languagesand optional config overrides for pulldown/button attributes.Global SQLText refresh path
sysFactorywith:SQLTextObjectsregistryregisterSQLTextObject(SQLTextObject)updateAllSQLTextObjects()updateAllSQLTextObjects()callsupdate()+setDOMElementValue()on every registered SQLText object.SQLText auto-registration
sysObjSQLText.init()to register each instance with the factory registry so global refresh reaches all instances, including nested/runtime-created ones.Object wiring / bootstrap
"LanguageSwitch": sysObjLanguageSwitchinsysFactory.SetupClasses./sysObjLanguageSwitch.jsscript include inpython/Index.py.Documentation
sysObjLanguageSwitchclass entry todoc/dev-oop-classes.rst.