Layout names in locales
Permalink
I found a pretty strange thing going on when using different locales. I was wondering why some of the blocks inside "layouted" areas disappeared after activating different locale. After hours of struggling I found out that the reason for this was because I had translated the word "Layout" in the locale file.
Before changing the locale, Concrete was saving layouted Areas referring to ArHandle 'Content 1: Layout 1 : Cell 1'. If the locale was set up later and the word "Layout" was translated to "Foo", Concrete was looking for blocks from area/layout called: Content 1: Foo 1 : Cell 1 and did not find anything.
Could it be that the cause is in layout.php on row 53 as it seems to use the t()-function?
The word "Cell" seems not to be translated, though.
Is there any way this could be fixed other than just leaving the word "Layout" untranslated? The problem won't occur with sites that have only one locale which is set right at the beginning of development but could become bigger with sites that may get other locales added later.
Before changing the locale, Concrete was saving layouted Areas referring to ArHandle 'Content 1: Layout 1 : Cell 1'. If the locale was set up later and the word "Layout" was translated to "Foo", Concrete was looking for blocks from area/layout called: Content 1: Foo 1 : Cell 1 and did not find anything.
Could it be that the cause is in layout.php on row 53 as it seems to use the t()-function?
public function getLayoutNameTxt(){ return t('Layout'); }
The word "Cell" seems not to be translated, though.
Is there any way this could be fixed other than just leaving the word "Layout" untranslated? The problem won't occur with sites that have only one locale which is set right at the beginning of development but could become bigger with sites that may get other locales added later.