Source lang is English, but it is marked as "proofreading". I don't think that's accurate.
Regards.
| MarcoAurelio | |
| Mar 15 2017, 11:16 AM |
| F29177962: image.png | |
| May 21 2019, 8:44 AM |
| F29177625: image.png | |
| May 21 2019, 8:44 AM |
| F29177551: image.png | |
| May 21 2019, 8:44 AM |
| F28312629: state-ddl-source-lang-1.png | |
| Mar 1 2019, 7:46 PM |
Source lang is English, but it is marked as "proofreading". I don't think that's accurate.
Regards.
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Remove display of the message group state for the source language | mediawiki/extensions/Translate | master | +13 -2 |
Not trivial one line change but I don't see why this would be very complicated.
Essentially one just needs if ( $language === $group->getSourceLanguage() ) { skip... } in the right place. I haven't yet checked what the right place would be.
I am a newbie. I am interested to solve this bug. Can I get some more information about this bug.
@Dheerajmalisetty: You have been asked several times to please ask specific questions in tasks. "Can I get more info?" questions are neither specific nor useful.
See the task description and previous comments in this task for more information. If that is not enough information then you need to be specific and clear why not.
@Nikerabbit - I've made the fix to not display proofread or any another message group state when displaying the Message group statistic and the Language statistic page ... but should we also handle,
After reviewing the requirements of the task and the code, I came up with the following list of things to do,
The commit implements #1 and #2 only as that's what is displayed to the user. Implementing #3 and #4, would require a larger change in the code and would increase the risk of things going wrong during the next plugin update (Since we'd have to write SQL queries to update the table for #4). We've decided that those two are not worth the extra effort and risk.
Noticed a small issue,
Steps to reproduce -
Expected behavior
The message group state dropdown should no longer be displayed.
Actual behavior
You'll continue to see the message group state dropdown.
See image below,
This task required certain configuration changes to be done to my DEV instance,
Test cases were run with the following value for $wgTranslateWorkflowStates,
$wgTranslateWorkflowStates = array( 'unset' => array( 'color' => 'FF0000' ), // red 'proofreading' => array( 'color' => 'd7f7f3' ), // light blue 'ready' => array( 'color' => '00FF00' ), // green 'inprogress' => array( 'color' => 'FFFF00', // yellow ), 'state conditions' => array( array( 'ready', array( 'PROOFREAD' => 'MAX' ) ), array( 'proofreading', array( 'TRANSLATED' => 'MAX' ) ), array( 'unset', array( 'UNTRANSLATED' => 'MAX', 'OUTDATED' => 'ZERO', 'TRANSLATED' => 'ZERO' ) ), array( 'inprogress', array( 'UNTRANSLATED' => 'NONZERO' ) ), ) );
Test cases below,
If you undo the changes from this commit, and refresh the page, you'll see the page with value proofreading.
Follow up from TC #1,
If you undo the changes from this commit, and refresh the page, you'll see the page with value proofreading.
Follow up from TC #1,
Patch for review: https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Translate/+/493745/
(Not sure why the Gerrit bot is not linking the patches, will check this)
Change 493745 had a related patch set uploaded (by Abijeet Patro; owner: Abijeet Patro):
[mediawiki/extensions/Translate@master] Remove display of the message group state for the source language
@Aklapper - Thanks. I was under the impression that the label doesn't matter. I will amend the commit messages.
Change 493745 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Remove display of the message group state for the source language
@abi_ - did you file a phab task about the issue?
Observations
Noticed a small issue,
- Message group state dropdown appears for source language
Steps to reproduce -
Create and mark a page for translation. Assuming that your preferred language and the page's source language are the same. View the page and click on Translate. You'll get a notice stating - The source language of this group is English. Please select another language to translate into. and you'll not >see the message group state dropdown which is the expected behavior. Change to another language to translate. You'll now see the message group state dropdown.Change back to the source language.
Expected behavior
The message group state dropdown should no longer be displayed.
Actual behavior
You'll continue to see the message group state dropdown.
@Etonkovidova - Yes, you can find it here - T217637: Message group state dropdown sometimes appears for source language
This is fixed. Please see changes on meta.wikimedia
Applies to pages where source language is English.