Ecere SDK/eC Forums
http://ec-lang.org/community/
Print view

$ before string literals
http://ec-lang.org/community/viewtopic.php?f=1&t=220
Page 1 of 1
Author:  samsam598 [ Tue Mar 06, 2012 4:39 am ]
Post subject:  $ before string literals

Greetings!

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

Thanks.

Regards,
Sam
Author:  jerome [ Tue Mar 06, 2012 5:00 am ]
Post subject:  Re: $ before string literals

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
All times are UTC-05:00 Page 1 of 1