Luis Majano Forums Notification: Post to Internationalization

Title: RE: Internationalization
Thread: Internationalization
Forum: Enhancements
Conference: ColdBox
User: xionic

Hello,

Let's say we have a property file that is looking like this :

[code]
email_confirm=Hello %1%\n\
\n\
You are receiving this email, because someone
created an account with email pointing to %2%.\n\
The account creation was done
from IP: %3%\n\
\n\
Your registration data : \n\
login: %4%\n\
password: %5%\n\
\n\
The account is inactive and until you confirm your will to activate it this
will be the only email from us. \n\
To finish the registration pleas click the
following link : \n\
%6%\n\
\n\
Regards\n\
Xionic[/code]

What i would like to
have is to use the getResource method in following way :
#getResource(email_confirm,"Bart;email@somedomain;10.0.0.1;your_login;your_
password;http://somelink",";")#

the result of course would be :
[code]
Hello Bart\n\
\n\
You are receiving this email, because someone created
an account with email pointing to email@somedomain.\n\
The account creation was
done from IP: 10.0.0.0\n\
\n\
Your registration data : \n\
login: your_login\n\
password: your_password\n\
\n\
The account is inactive and until you confirm
your will to activate it this will be the only email from us. \n\
To finish the
registration please click the following link : \n\
http://somelink\n\
\n\
Regards\n\
Xionic
[/code]

So far i was thinking about 3 parameters :
#getResource(resource_name,data_list,separator)#
but of course we could use
#getResource(resource_name,data_struct)#
#getResource(resource_name,data_array)#

I know that i could get the data from
resource and then parse it by myself via some function, but i think this
feature would be really nice to have in core.

Regards
X

http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=453B4E6C-CBFB-0E56-6A64421090DC350E