$ before string literals

General help with the eC language.
Post Reply
samsam598
Posts: 208
Joined: Thu Apr 14, 2011 9:44 pm

$ before string literals

Post by samsam598 »

Greetings!

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

Thanks.

Regards,
Sam
jerome
Site Admin
Posts: 603
Joined: Sat Jan 16, 2010 11:16 pm

Re: $ before string literals

Post by jerome »

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
Post Reply