Commit 3b87b696 by pupi1985

Added setting to control whether to compact numbers or not

parent 80ed964d
......@@ -2058,7 +2058,7 @@
if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }
$suffix = '';
if ($compact) {
if ($compact && qa_opt('show_compact_numbers')) {
if ($number != 0) {
$base = log($number) / log(1000);
$floorBase = floor($base);
......
......@@ -338,6 +338,7 @@
'show_a_c_links' => 1,
'show_a_form_immediate' => 'if_no_as',
'show_c_reply_buttons' => 1,
'show_compact_numbers' => 0,
'show_custom_welcome' => 0,
'show_post_update_meta' => 1,
'show_fewer_cs_count' => 5,
......
......@@ -227,6 +227,7 @@
'show_a_form_immediate' => 'Show answer form immediately:',
'show_always' => 'Always',
'show_c_reply_buttons' => 'Show reply button on comments:',
'show_compact_numbers' => 'Show compact numbers (e.g., 1.3k):',
'show_custom_answer' => 'Custom message on answer form - HTML allowed:',
'show_custom_ask' => 'Custom message on ask form - HTML allowed:',
'show_custom_comment' => 'Custom message on comment form - HTML allowed:',
......
......@@ -188,6 +188,7 @@
'q_urls_remove_accents' => 'checkbox',
'register_notify_admin' => 'checkbox',
'show_c_reply_buttons' => 'checkbox',
'show_compact_numbers' => 'checkbox',
'show_custom_answer' => 'checkbox',
'show_custom_ask' => 'checkbox',
'show_custom_comment' => 'checkbox',
......@@ -199,11 +200,11 @@
'show_custom_sidebar' => 'checkbox',
'show_custom_sidepanel' => 'checkbox',
'show_custom_welcome' => 'checkbox',
'show_post_update_meta' => 'checkbox',
'show_home_description' => 'checkbox',
'show_message_history' => 'checkbox',
'show_notice_visitor' => 'checkbox',
'show_notice_welcome' => 'checkbox',
'show_post_update_meta' => 'checkbox',
'show_register_terms' => 'checkbox',
'show_selected_first' => 'checkbox',
'show_url_links' => 'checkbox',
......@@ -390,7 +391,7 @@
break;
}
$showoptions[] = 'pages_prev_next';
array_push($showoptions, 'pages_prev_next', '', 'show_compact_numbers');
$formstyle = 'wide';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment