| 60 |
return; |
return; |
| 61 |
} |
} |
| 62 |
|
|
| 63 |
|
void GEDCOMParser::DateManagement::Date::setFrenchYearFormat(enumFrenchYearFormat format) |
| 64 |
|
{ |
| 65 |
|
_french_year_format = format; |
| 66 |
|
return; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
std::string const GEDCOMParser::DateManagement::Date::getDisplayValue(void) const |
std::string const GEDCOMParser::DateManagement::Date::getDisplayValue(void) const |
| 70 |
{ |
{ |
| 71 |
std::string res; |
std::string res; |
| 72 |
std::string month; |
std::string month; |
| 73 |
|
std::string year; |
| 74 |
std::string precision; |
std::string precision; |
| 75 |
|
|
| 76 |
|
year = _year; |
| 77 |
|
|
| 78 |
|
switch (_calendar) |
| 79 |
|
{ |
| 80 |
|
case e_French: |
| 81 |
|
{ |
| 82 |
|
if (_french_year_format == e_FrenchYearFormat_Roman) |
| 83 |
|
{ |
| 84 |
|
year = _("AN " ) + year; |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
break; |
| 88 |
|
default: |
| 89 |
|
break; |
| 90 |
|
}; |
| 91 |
switch(_month) |
switch(_month) |
| 92 |
{ |
{ |
| 93 |
case e_Jan: |
case e_Jan: |
| 230 |
{ |
{ |
| 231 |
day_month_separator = " "; |
day_month_separator = " "; |
| 232 |
} |
} |
| 233 |
if ((month != "") && (_year != "")) |
if ((month != "") && (year != "")) |
| 234 |
{ |
{ |
| 235 |
month_year_separator = " "; |
month_year_separator = " "; |
| 236 |
} |
} |
| 237 |
|
|
| 238 |
res = precision + _day + day_month_separator + month + month_year_separator + _year; |
res = precision + _day + day_month_separator + month + month_year_separator + year; |
| 239 |
return res; |
return res; |
| 240 |
} |
} |
| 241 |
|
|