Topic: Question about using a GetText .yml file? ref = Beast
I'm enjoying the pleasure of unraveling Beast line by line and came to an interesting part. In the main Forums.index.rhtml file they setup some common display information that coincides with a en.yml file that resides in the \project\lang directory, obviously using the GetText way of doing things.
In this line
<h1 style="margin-top:0;"><%= 'Forums'[:forums_title] %></h1>
it appears they're using a member of a hash to display information that ultimately shows "Forums" on the top of the INDEX view. I see that "forums_title" is sitting in the en.yml file. It looks to me that this value is being called as a member of a hash called "Forums"? It's odd though because why is this hash enclosed in single quotes and WHERE IS IT?
I've scoured the application and find no reference anywhere to a hash named 'Forums'?
I am grateful for any reply.