Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_translated_activity_type()

Parameters

ColumnTypeDefaultDescription
$activity_type

Location

include/reporting_functions.php lines 599 to 612

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 19th March 2024 09:35 Europe/London time based on the source file dated 8th March 2024 15:10 Europe/London time.