Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -330,6 +330,7 @@ |
331 | 331 | $template_name = trim( $tag_components[1] ); |
332 | 332 | $tif->template_name = $template_name; |
333 | 333 | $query_template_name = str_replace( ' ', '_', $template_name ); |
| 334 | + $add_button_text = wfMsg( 'sf_formedit_addanother' ); |
334 | 335 | // also replace periods with underlines, since that's what |
335 | 336 | // POST does to strings anyway |
336 | 337 | $query_template_name = str_replace( '.', '_', $query_template_name ); |
— | — | @@ -342,6 +343,8 @@ |
343 | 344 | if ( count( $sub_components ) == 2 ) { |
344 | 345 | if ( $sub_components[0] == 'label' ) { |
345 | 346 | $template_label = $sub_components[1]; |
| 347 | + } elseif ( $sub_components[0] == 'add button text' ) { |
| 348 | + $add_button_text = $sub_components[1]; |
346 | 349 | } |
347 | 350 | } |
348 | 351 | } |
— | — | @@ -1159,11 +1162,10 @@ |
1160 | 1163 | <div id="main_$query_template_name"></div> |
1161 | 1164 | |
1162 | 1165 | END; |
1163 | | - $add_another = wfMsg( 'sf_formedit_addanother' ); |
1164 | 1166 | $adderID = "adder_$sfgFieldNum"; |
1165 | 1167 | $form_text .= <<<END |
1166 | 1168 | <p style="margin-left:10px;"> |
1167 | | - <p><input type="button" id="$adderID" value="$add_another" tabindex="$sfgTabIndex" class="addAnother" /></p> |
| 1169 | + <p><input type="button" id="$adderID" value="$add_button_text" tabindex="$sfgTabIndex" class="addAnother" /></p> |
1168 | 1170 | |
1169 | 1171 | END; |
1170 | 1172 | $sfgAdderButtons[] = "$adderID,$query_template_name,$sfgFieldNum"; |