Hi,
For the constants, i would do the localization on the client as well. Lets assume you have consts for status like 'NotStarted', 'InProgress' etc.
Add localization with key 'Const_Status_InProgress', and add a function to localize in helper.js like
app.localizeStatus = function (status) {
return app.localize('Const_Status_' + status);
};
use app.localizeStatus in the client.
I hope this works for you.
Hi,
Exposing enums to client is in the roadmap of ABP but it doesn't have a determined release date yet.
For now, you can define your enums on the client like this. (This code is taken from <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/pull/378">https://github.com/aspnetboilerplate/as ... e/pull/378</a>, thakns to jefftindall :))
abp.constant.status = {
notStarted: 0,
inProgress: 10,
draft: 20,
cancelled: 90,
completed: 100,
values: [
{ name: 'NotStarted', value: 0, localizedName: 'Enum_Status_NotStarted' },
{ name: 'InProgress', value: 10, localizedName: 'Enum_Status_InProgress' },
{ name: 'Draft', value: 20, localizedName: 'Enum_Status_Draft' },
{ name: 'Cancelled', value: 90, localizedName: 'Enum_Status_Cancelled' },
{ name: 'Completed', value: 100, localizedName: 'Enum_Status_Completed' }]
};
Then in the angular grid, you can find localized name using underscore like this,
var localizedStatusName = _.where(abp.constant.status.values, { value:0 }).localizedName;
I hope this helps.
Hi,
Yes you can. You can download metronic theme here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases/download/v1.8.0.0/metronic-v4.5.4.zip">https://github.com/aspnetzero/aspnet-ze ... v4.5.4.zip</a>
Hi,
Just add "page-footer-fixed" class to body element.
Hi,
You need to write a custom directive for that. Please see this plunkr <a class="postlink" href="http://plnkr.co/edit/cu1TVKCY8ucYcT2AScJb?p=preview">http://plnkr.co/edit/cu1TVKCY8ucYcT2AScJb?p=preview</a>
I hope it helps.
Hi,
Can you share the error. Output script seems good.
Hi,
Please check this forum topic. #629@43961a3a-467c-4526-952c-e706e12a9249
Hi,
You can check CreateTenant method of TenantAppService in ASP.NET Zero source code.
Hi,
For the HangFire, it might be related to log4net. Which version of log4net do you use on your project ?
Can you also share signature of your "SaveLocalizedValue" method ?