Hi Bharat

Levi is right: all the tokens ending with .l are translation tokens.
the .l represents a function to look for the phrase in the language
yml (not xml) file according to your locale settings in
application.yml. E.g. your locale is set to en-US look into lang/ui/en-
US.yml for all the text phrases represented by the translation tokens.
If you want to change the wording of certain tokens, take the
following road:
- mkdir <RAILS_ROOT>/lang/ui (create your own lang dir)
- cp vendor/plugin/community_engine/lang/ui/<your-lang>.yml
<RAILS_ROOT>/lang/ui/.
- make your changes in the copied file (because an update of
community_engine would overwrite your changes in default location)

If you want a new language you probably should go the same way and
send the result to either or create your own fork and make a pull
request. A good starting point for new languages should be the en-
US.yml, just copy this into your lang-name.yml and start translating.

Fritzek

On Nov 27, 6:45 am, "Levi Rosol" <[EMAIL PROTECTED]> wrote:
> yeah, that was new to me as well. basically what those are is placeholders
> for text in your site. If you look in the 'lang' folder, you will find a
> series of xml files for various languages. If you want to change the text,
> or add new labels in, find the marker in the language file you want to work
> with, and change it.
>
> what this does is allows a person to localize their site for one or more
> languages.
>
> also, regarding haml, check out the haml home page here to get a good
> understanding of how it works:http://haml.hamptoncatlin.com/
>
> if you're still having problems converting your normal erb syntax to haml,
> you can always use the 'html2haml' command that comes packaged along with
> haml. to use it, i created a html.in and haml.out file and then ran this
> command:
>
> html2haml -rx html.in haml.out
>
> that will take any html/erb you have in the html.in file, parse it into
> haml, and drop it in the haml.out file.
>
> Hope this helps!
>
> Levi Rosol
> Twitter: @LeviRosol
>
> On Wed, Nov 26, 2008 at 7:51 PM, Bharat <[EMAIL PROTECTED]> wrote:
>
> > In CommunityEngine code base the ".l" method seems to be all over the
> > place especially in the Haml view templates, e.g.,
>
> > link_to :cancel_and_go_back_to_my_photos.l
>
> > What is it?  and where is it defined?
>
> > Thanks.
>
> > Bharat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to