https://www.mediawiki.org/wiki/MediaWiki:Flow-edit-header-submit says "Save description". It might be better to say "Publish description" on publish wikis, similar to what was done at T131132: Re-label the "Save" button to be "Publish", to better indicate to users the outcomes of their action.
Description
Details
Related Objects
Event Timeline
@Jdforrester-WMF do you think we should make this change, and do you think we should change similar buttons as well?
Change 423344 had a related patch set uploaded (by Mooeypoo; owner: Mooeypoo):
[mediawiki/extensions/Flow@master] Change language for 'save' to 'publish'
As specified in the conversation, I changed all of the "save" language to "publish" -- I went over the qqq.json for each and didn't see a need to change the descriptions of the strings, so only the language in the strings themselves was changed.
Was this supposed to be for all wikis or only for wikis using the word "publish" instead of "save"? Does this distinction still exist?
I just noticed the existence of this:
https://gerrit.wikimedia.org/r/#/c/306303/6/wmf-config/InitialiseSettings.php,unified
Does that mean we're going to have double messages everywhere with the conditional wg variable? I couldn't find where this variable and message usage was actually implemented, rather than the implementation and adjustment of the wg variable itself.
Just to delve deeper on how to approach this; if we are going to have each of these messages (multiple messages with "save" that should say "publish") then the fix is getting a little more elaborate.
We have those messages both in JS (where we could use mw.config.get( 'wgEditSubmitButtonLabelPublish' )) but we also have those messages in the handlebars templates, where the check is a bit more annoying to implement.
It's possible, of course, and not completely terrible to do, but it is a lot more involved than "simply" changing the text of the sentences.
Before I delve into sending that variable to the handlebars templates and then setting quite a number of conditional statements in handlebars and the js code, I'd like to see if that's actually what we want to do in this ticket?
The request in the ticket is to update language "for "publish" wikis", which would mean doubling up all your messages. I think this is the only solution that makes sense.
You may want to create the patch that adds the new messages and merge that first to give translators time to create the new messages.
Yeah I wasn't familiar with the fact that there are "publish" wikis as opposed to non-"publish" wikis.
I'll work on separating the messages. <sigh> Yay handlebars.
Change 423344 merged by jenkins-bot:
[mediawiki/extensions/Flow@master] Change language for 'save' to 'publish' for public wikis
The following changes were checked
"flow-post-action-edit-post-submit-publish": "Publish changes",
"flow-post-action-edit-post-submit-anonymously-publish": "Publish changes anonymously" -- could not find a wiki in betalabs that allows to edit another user post anonymously, but it's good to have it.
"flow-edit-header-submit-publish": "Publish description",
"flow-edit-header-submit-anonymously-publish": "Publish description anonymously"
The new message looks ok in German too (it was checked for the length):
Change #1054604 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Flow@master] Fix dead code supposed to show "Publish" instead of "Save"