Urb 3487 move decisional delay vocabulary to config#549
Conversation
📝 WalkthroughWalkthroughThis change extracts the "decisional delay" vocabulary from hardcoded values in the RoadDecree class to a managed vocabulary system. It removes the legacy Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/Products/urban/locales/fr/LC_MESSAGES/urban.po`:
- Around line 5702-5703: The translated string for msgid
"decisionaldelay_folder_title" contains leading/trailing spaces in its msgstr;
remove the surrounding whitespace so msgstr is "Délai de décision du conseil"
(no leading or trailing spaces) to prevent extra spaces appearing in the UI.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 1107cc61-a0b1-4294-ab9c-0f35e2b79e68
📒 Files selected for processing (7)
news/URB-3487.featuresrc/Products/urban/content/licence/RoadDecree.pysrc/Products/urban/locales/fr/LC_MESSAGES/urban.posrc/Products/urban/migration/update_290.pysrc/Products/urban/migration/upgrades_290.zcmlsrc/Products/urban/profiles/default/metadata.xmlsrc/Products/urban/profiles/extra/config_default_values.py
| msgid "decisionaldelay_folder_title" | ||
| msgstr " Délai de décision du conseil " No newline at end of file |
There was a problem hiding this comment.
Remove surrounding whitespace from the translation value.
Line 5703 has leading/trailing spaces in msgstr, which can show up in UI labels.
💡 Proposed fix
msgid "decisionaldelay_folder_title"
-msgstr " Délai de décision du conseil "
+msgstr "Délai de décision du conseil"📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| msgid "decisionaldelay_folder_title" | |
| msgstr " Délai de décision du conseil " | |
| msgid "decisionaldelay_folder_title" | |
| msgstr "Délai de décision du conseil" |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@src/Products/urban/locales/fr/LC_MESSAGES/urban.po` around lines 5702 - 5703,
The translated string for msgid "decisionaldelay_folder_title" contains
leading/trailing spaces in its msgstr; remove the surrounding whitespace so
msgstr is "Délai de décision du conseil" (no leading or trailing spaces) to
prevent extra spaces appearing in the UI.
This PR extracts the decision delay vocabulary from the code.
Summary by CodeRabbit
New Features
Localization