Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
/**
* Wrapper for the PHP function number_format.
*
* Note thousands separator and decimal point are language dependent.
*
* @access public
* @param float The number.
* @param integer Number of decimals.
* @return string The formatted number.
*/
function phpbb_number_format($number, $decimals = 0)
{
global $lang;
return number_format($number, $decimals, $lang['Number_decimal_point'], $lang['Number_thousands_sep']);
}
markus_petrux wrote:
It could probably be defined in the language files, if its country dependency can be assumed from the language, otherwise it could be added to the user profile so they can choose it like they do with date format, time zone, etc.
Quoted for agreement. Language file would be the only sensible way.
Point taken and when it comes to numbers displayed in phpBB features I see no reason to differ in opinion. However, I kind of had the impression that the topic starter implied formatting all numbers in posts, and this is (IMHO) totally useless and could cause confusion.
Procrastination is my hobby, but I keep on postponing it.
markus_petrux wrote:
It could probably be defined in the language files, if its country dependency can be assumed from the language, otherwise it could be added to the user profile so they can choose it like they do with date format, time zone, etc.
Quoted for agreement. Language file would be the only sensible way.
Point taken and when it comes to numbers displayed in phpBB features I see no reason to differ in opinion. However, I kind of had the impression that the topic starter implied formatting all numbers in posts, and this is (IMHO) totally useless and could cause confusion.
No, I think he was referring to the formatting of statistics like number of topics in a forum.
I agree with using the language file - using a space would work, but there may be situations where a board is oriented heavily toward a specific locale. For example in the UK, commas are used.
the topics and post on the index and viewforum, and the members posts in viewtopic.
I hope thats what you meant. Thats all i have at the moment but i'm hopefully gonna have full formatting by the weekend on things such as total posts and total members but i have to add 1000+ test members to my test development server.