Add more fallbacks to NameProperty
ClosedPublic

Authored by jbbgameich on Jul 22 2019, 8:55 PM.

Diff Detail

Repository
R732 KPeople VCard Support
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jbbgameich requested review of this revision.Jul 22 2019, 8:55 PM
jbbgameich created this revision.
apol accepted this revision.Jul 22 2019, 10:20 PM
apol added inline comments.
src/kpeoplevcard.cpp
54

why + "" +?

How about return i18nc("given-name family-name", "%1 %2, m_addressee.givenName(), m_addressee.familyName());

This revision is now accepted and ready to land.Jul 22 2019, 10:20 PM
jbbgameich added inline comments.Jul 22 2019, 10:41 PM
src/kpeoplevcard.cpp
54

Sounds a lot better. I just forgot a space between the " " though initially.

jbbgameich added inline comments.Jul 22 2019, 10:59 PM
src/kpeoplevcard.cpp
54

kpeoplevcard previously didn't depend on i18n, is adding a new dependency fine?

use i18nc as requested in the comments

apol accepted this revision.Jul 23 2019, 9:19 AM

Good stuff :)

This revision was automatically updated to reflect the committed changes.