Project

General

Profile

Actions

Bug #6641

open

translation :: get not static

Added by Anonymous over 10 years ago. Updated over 10 years ago.

Status:
Needs more info
Priority:
Normal
Assignee:
-
Start date:
27/08/2013
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal

Description

why is Translation :: get not defined as a static method?
file chamilo-dev/common/libraries/php/shared/translation/translation.class.php line 122

Actions #1

Updated by Anonymous over 10 years ago

There are more non-static methods in the translation class. I suppose all of them should be static, as the Translation class is a singleton

Actions #2

Updated by Anonymous over 10 years ago

in issue #6529, I mentioned a non-functioning call to translation :: set_application, maybe the reason why it doesn't work is because it should be static while it is not.

Actions #3

Updated by Anonymous over 10 years ago

Klaas Moerman wrote:

There are more non-static methods in the translation class. I suppose all of them should be static, as the Translation class is a singleton

except maybe the translate function, which then should be private

Actions

Also available in: Atom PDF