Layout and new language - bug?

Permalink 1 user found helpful
Hi,
I think, is something wrong with layout function.
When I add a new translate to the site, and change site.php, text on the page disappears, but only there, where is column layout.
How can I fix this?
This is a big service and manual patch directly on the every site are difficult.

cssninja
 
cssninja replied on at Permalink Best Answer Reply
cssninja
I know where is a problem.
In a file models/layout.php is line number 53 with code
public function getLayoutNameTxt(){ return t('Layout'); }

When I change language, the word Layout is translate too. Than the class "ccm-layout-name-Layout" is different and text on site disappears.
I think it's a bug.
I changed this line on:
public function getLayoutNameTxt(){ return ('Layout'); }
and now is ok.