Localisation
This commit is contained in:
parent
41d803f851
commit
757c5ca2ea
23 changed files with 26 additions and 39 deletions
|
|
@ -22,10 +22,8 @@ namespace Yavsc.Models.Haircut
|
|||
// Bill description
|
||||
public override string GetDescription()
|
||||
{
|
||||
string type = ResourcesHelpers.DefaultResourceManager
|
||||
.GetString(this.GetType().Name);
|
||||
string gender = ResourcesHelpers.DefaultResourceManager
|
||||
.GetString(this.Prestation.Gender.ToString());
|
||||
string type = ResourcesHelpers.GlobalLocalizer[this.GetType().Name];
|
||||
string gender = ResourcesHelpers.GlobalLocalizer[this.Prestation.Gender.ToString()];
|
||||
|
||||
return $"{type} ({gender})";
|
||||
}
|
||||
|
|
@ -88,8 +86,7 @@ namespace Yavsc.Models.Haircut
|
|||
|
||||
Name = "Coupe",
|
||||
Description = $"Coupe "+
|
||||
ResourcesHelpers.DefaultResourceManager
|
||||
.GetString(Prestation.Gender.ToString())+ " "+
|
||||
ResourcesHelpers.GlobalLocalizer[Prestation.Gender.ToString()]+ " "+
|
||||
(Prestation.Gender == HairCutGenders.Women ?
|
||||
Prestation.Length == HairLength.Long ? longhairsuffix :
|
||||
Prestation.Length == HairLength.HalfLong ? halflonghairsuffix :
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@ namespace Yavsc.Models.Haircut
|
|||
|
||||
public string CreateBoby()
|
||||
{
|
||||
return string.Format(ResourcesHelpers.DefaultResourceManager
|
||||
.GetString("RdvToPerf"), Client.UserName,
|
||||
return string.Format(ResourcesHelpers.GlobalLocalizer["RdvToPerf"], Client.UserName,
|
||||
EventDate?.ToString("dddd dd/MM/yyyy à HH:mm"),
|
||||
Location.Address,
|
||||
ActivityCode);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ using Interfaces.Workflow;
|
|||
public string CreateBody()
|
||||
{
|
||||
return string.Format(
|
||||
ResourcesHelpers.DefaultResourceManager.GetString("RdvToPerf"),
|
||||
ResourcesHelpers.GlobalLocalizer["RdvToPerf"],
|
||||
Client.UserName,
|
||||
EventDate?.ToString("dddd dd/MM/yyyy à HH:mm"),
|
||||
Location.Address,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue