Page 1 of 1

StiAlias

Posted: Tue Jul 15, 2014 11:47 am
by Werlang
It is possible to use an alias like this

Code: Select all

[StiAlias("Column alias")]
public string Name { get; set; }
But we have to localize these aliases to user language.

Code: Select all

[StiAlias(I18N.Tr("ColumnAlias"))]
public string Name { get; set; }
And in I18N.TR(string aliasCode):

Code: Select all

Dictionary dict = user.GetUserLanguage();
string aliasName = dict[aliasCode];
This way, is it possible to register somethig to get column alias in the required language? And have a clean class:

Code: Select all

public string Id { get; set; }
public string Name { get; set; }
public string Number { get; set; }
The alias code would be ClassName.Id, ClassName.Name, ClassName.Number...

Thanks in advance

Re: StiAlias

Posted: Wed Jul 16, 2014 12:50 pm
by Alex K.
Hello,

Unfortunately, it is not possible.

Thank you.