Skip to content

[6.1] Enhance translation handling in Workflow component#47299

Merged
tecpromotion merged 2 commits intojoomla:6.1-devfrom
Dileepadari:lang-str-issues
Mar 9, 2026
Merged

[6.1] Enhance translation handling in Workflow component#47299
tecpromotion merged 2 commits intojoomla:6.1-devfrom
Dileepadari:lang-str-issues

Conversation

@Dileepadari
Copy link
Copy Markdown
Contributor

Pull Request resolves #47231.

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Enhance translation handling in Workflow component

  • Updated WorkflowCanvas.vue to provide a fallback translation for edge source titles.
  • Fixed argument spreading in sprintf method of Translate plugin.
  • Added missing translation strings 'JNO' and 'JYES' in default_texts.php.

Testing Instructions

This requires either npm ci or testing with a prebuilt package

Enable language debug
Enable Workflows
Open the workflow graph
There should be no undefined tags in the flow. The yes and no buttons in confirmation when clicked on remove stage or transition should be a language string like yes or no

Actual result BEFORE applying this Pull Request

Transition: Write Article,Idea,Copywriting from stage undefined to undefined. Status of transition Write Article: Enabled.
image

Expected result AFTER applying this Pull Request

Transition: Write Article from stage Idea to Copywriting. Status of transition Write Article: Enabled.
image

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@tecpromotion tecpromotion changed the title Enhance translation handling in Workflow component [6.1] Enhance translation handling in Workflow component Mar 4, 2026
@brianteeman
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 8e654a3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47299.

@bembelimen bembelimen linked an issue Mar 5, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@adarshdubey03 adarshdubey03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully on Joomla 6.1-dev.

Steps tested

  • Enabled Workflows
  • Enabled Language Debug
  • Opened the workflow graph
  • Created stages and transitions
  • Tested removing stages/transitions

Results
The workflow graph renders correctly and no "undefined" values appear in the transition labels.

The confirmation dialog shows translated "Yes" and "No" buttons when language debug is enabled.

Additionally verified via console:
Joomla.Text._('JYES') → Yes

No regressions observed. Patch works as expected.

@adarshdubey03
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 8e654a3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47299.

@richard67
Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47299.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 6, 2026
@tecpromotion tecpromotion added this to the Joomla! 6.1.0 milestone Mar 9, 2026
@tecpromotion tecpromotion enabled auto-merge (squash) March 9, 2026 15:59
@tecpromotion tecpromotion merged commit 4f90049 into joomla:6.1-dev Mar 9, 2026
52 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 9, 2026
@tecpromotion
Copy link
Copy Markdown
Contributor

Thanks @Dileepadari @brianteeman and @adarshdubey03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.1] workflow graph language issues

6 participants