- }
-
- /**
- * Utility to simplify some of the duplicated code around
- * params and settings.
- *
- * @param string $setting Name of the setting
- * @param string $title Title to use for the input
- * @param string $instructions Instructions for this field
- *
- * @return void
- */
-
- function input($setting, $title, $instructions)
- {
- $this->out->input($setting, $title, $this->value($setting), $instructions);
- }
-
- /**
- * Utility to simplify getting the posted-or-stored setting value
- *
- * @param string $setting Name of the setting
- *
- * @return string param value if posted, or current config value
- */
-
- function value($setting)
- {
- $value = $this->out->trimmed($setting);
- if (empty($value)) {
- $value = common_config('site', $setting);
- }
- return $value;
+ $this->unli();
+
+ $this->li();
+ $this->out->dropdown('language',
+ // TRANS: Dropdown label on site settings panel.
+ _('Default language'),
+ get_nice_language_list(),
+ // TRANS: Dropdown title on site settings panel.
+ _('Site language when autodetection from browser settings is not available'),
+ false, $this->value('language'));
+ $this->unli();
+
+ $this->out->elementEnd('ul');
+ $this->out->elementEnd('fieldset');
+
+ $this->out->elementStart('fieldset', array('id' => 'settings_admin_limits'));
+ // TRANS: Fieldset legend on site settings panel.
+ $this->out->element('legend', null, _m('LEGEND','Limits'));
+ $this->out->elementStart('ul', 'form_data');
+ $this->li();
+ $this->input('textlimit',
+ // TRANS: Field label on site settings panel.
+ _('Text limit'),
+ // TRANS: Field title on site settings panel.
+ _('Maximum number of characters for notices.'));
+ $this->unli();
+
+ $this->li();
+ $this->input('dupelimit',
+ // TRANS: Field label on site settings panel.
+ _('Dupe limit'),
+ // TRANS: Field title on site settings panel.
+ _('How long users must wait (in seconds) to post the same thing again.'));
+ $this->unli();
+ $this->out->elementEnd('ul');
+ $this->out->elementEnd('fieldset');