Skip to content

Commit

Permalink
Added nickname in communication generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Nov 24, 2023
1 parent a4612e3 commit b760a6a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1925,22 +1925,24 @@ public JsonElement serialize(GregorianCalendar src, Type typeOfSrc,
}
}

private String getAppellativoBySesso(String sex, String applettativo) {
private String getAppellativoBySesso(String sex, String appellativo) {
switch (sex) {
case "M" : {
switch (applettativo) {
switch (appellativo) {
case "C" : return "Al Sig. ";
case "D" : return "Al Dott. ";
case "P" : return "Al Prof. ";
case "PD" : return "Al Prof./Dott. ";
default: return "Al Sig. ";
}
}
case "F" : {
switch (applettativo) {
switch (appellativo) {
case "C" : return "Alla Sig.ra ";
case "D" : return "Alla Dott.ssa ";
case "P" : return "Alla Prof.ssa ";
case "PD" : return "Al Prof.ssa/Dott.ssa ";
case "PD" : return "Alla Prof.ssa/Dott.ssa ";
default: return "Alla Sig.ra ";
}
}
}
Expand Down

0 comments on commit b760a6a

Please sign in to comment.