https://bugzilla.wikimedia.org/show_bug.cgi?id=62046

            Bug ID: 62046
           Summary: HTMLForm section name lookup keys are prefixed with
                    the form/action name
           Product: MediaWiki
           Version: 1.22.2
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Unprioritized
         Component: HTMLForm
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: d...@earlsoft.co.uk
       Web browser: ---
   Mobile Platform: ---

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]

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to