Ecere SDK/eC Forums • View topic - $ before string literals




Ecere SDK/eC Forums

Ecere Developers Community

$ before string literals

General help with the eC language.

$ before string literals

Postby samsam598 » Tue Mar 06, 2012 4:39 am

Greetings!

Just noticed from ide/src/design/codeEditor.ec that,and was wondering what's the advantage using $ before string literals?

Thanks.

Regards,
Sam
samsam598
 
Posts: 208
Joined: Thu Apr 14, 2011 9:44 pm

Re: $ before string literals

Postby jerome » Tue Mar 06, 2012 5:00 am

Hi Sam,

This is for internationalization purposes.

Strings that are meant to be internationalized have $ before them, and they will show up in the translation templates (the .pot files).
It is also possible to specify a context this way: $"context"."English string"

I thought I emailed you about the translations before? :)

Check out the translation system @ https://translations.launchpad.net/ecere/trunk

Cheers! :D

Jerome
jerome
Site Admin
 
Posts: 622
Joined: Sat Jan 16, 2010 11:16 pm


Return to eC Language

Who is online

Users browsing this forum: No registered users and 1 guest

cron