Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

get_translated_activity_type()

Parameters

ColumnTypeDefaultDescription
$activity_type

Location

include/reporting_functions.php lines 491 to 504

Definition

 
function get_translated_activity_type($activity_type)
    {
    
# Activity types are stored in plain text english in daily_stat. This function will use language strings to resolve a translated value where one is set.
    
global $lang;
    
$key="stat-" strtolower(str_replace(" ","",$activity_type));
    if (!isset(
$lang[$key]))
        {
        return 
$activity_type;
        }
    else
        {
        return 
$lang[$key];
        }
    }

This article was last updated 30th November 2020 14:35 Europe/London time based on the source file dated 26th November 2020 08:30 Europe/London time.