Last modified: 2014-02-28 16:50:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64046, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62046 - HTMLForm section name lookup keys are prefixed with the form/action name
HTMLForm section name lookup keys are prefixed with the form/action name
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
HTMLForm (Other open bugs)
1.22.2
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-28 11:46 UTC by Deanna Earley
Modified: 2014-02-28 16:50 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Deanna Earley 2014-02-28 11:46:46 UTC
When using HTMLForm (via FormAction), the section name keys are prefixed with the action/form name.
This on its own is fine, but no other keys are prefixed in this way.

        protected function getFormFields() {
                // Return the fields
                return array(
                        'fieldname' => array(
                                'type' => 'text',
                                'section' => 'sectionname',
                                'label-message' => 'labelname',
                                'default' => '1234',
                        ),
                );
        }

This renders as -- <actionname-sectionname> --

As it stands, this means my i18n file needs to contain:
  "actionname-sectionname" => "Section name",
  "labelname" => "Label caption",

[http://www.mediawiki.org/w/index.php?title=HTMLForm/tutorial2&diff=580345&oldid=580344 this change] sugests that it has been corrected at some point, or that it's regressed.

This was seen with 1.21.5 and 1.22.2.

Looking at [http://www.mediawiki.org/wiki/HTMLForm/tutorial2#Adding_sections this page]
Comment 1 Deanna Earley 2014-02-28 11:48:18 UTC
Erm, ignore the last line and sorry about the wiki link.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links