Update translations for Create Workset For Linked Element#3119
Update translations for Create Workset For Linked Element#3119jmcouffin merged 9 commits intopyrevitlabs:developfrom
Conversation
Denver-22
commented
Feb 20, 2026
- Translation is implemented as a dictionary instead of a JSON file (faster, more reliable) and is stored in the translations.py module.
- The get_translations() function has been removed and replaced with a dictionary read.
- Translation is implemented as a dictionary instead of a JSON file (faster, more reliable) and is stored in the translations.py module. - The get_translations() function has been removed and replaced with a dictionary read.
- Translation is implemented as a dictionary instead of a JSON file (faster, more reliable) and is stored in the translations.py module. - The get_translations() function has been removed and replaced with a dictionary read.
…ools.stack/Links.pulldown/Create Workset For Linked Element.pushbutton/translations.json
…ools.stack/Links.pulldown/Create Workset For Linked Element.pushbutton/translations.py Instead of translations.json.
…ools.stack/Links.pulldown/Create Workset For Linked Element.pushbutton/ws4links_translations.py Instead of translations.json.
…ools.stack/Links.pulldown/Create Workset For Linked Element.pushbutton/translations.py
|
Unable to trigger custom agent "Code Reviewer". You have run out of credits 😔 |
- Fixed indentations - Added Portuguese (Brazilian) translation
There was a problem hiding this comment.
Pull request overview
This pull request updates the translation system for the "Create Workset For Linked Element" tool. The changes migrate translations from a JSON file format to Python dictionaries stored directly in a translations.py module, which provides better performance and reliability.
Changes:
- Translations converted from JSON format to Python dictionaries in
ws4links_translations.py - Removed
get_translations()function in favor of direct dictionary access using.get()method - Implemented standard pyRevit translation pattern with user locale fallback to English
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| ws4links_translations.py | Contains translation dictionaries for multiple languages (en_us, fr_fr, ru, chinese_s, es_es, de_de, pt_br) for both script and config |
| ws4links_script.py | Uses translation dictionary with user locale lookup pattern |
| ws4links_config.py | Uses translation dictionary with user locale lookup pattern |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26052+1330-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26054+1628-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26054+1644-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26055+2040-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26055+2054-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26055+2111-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26055+2115-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26055+2121-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26055+2123-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26057+1645-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26057+2022-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26058+1619-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26061+1027-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26061+1139-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26061+1233-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26061+1244-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26061+1357-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26061+1403-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26069+2130-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26071+0706-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26073+1714-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26073+2220-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26074+1648-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26076+0001-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26077+2319-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26079+2333-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26080+1314-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26083+2031-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26083+2042-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26083+2045-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26083+2048-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26083+2106-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26083+2130-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26086+2004-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26088+1318-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26089+1231-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+0549-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1533-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1536-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1540-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1540-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1556-wip |
|
📦 New public release are available for 6.2.0.26090+1754 |