Gettext/Django for german translations: formal/informal salutations -
i maintain pluggable django app contains translations. strings in python , html code written in english. when translating strings german, i'm fighting problem german differentiates between formal , informal speech (see t–v distinction). because app used on different sites, ranging social network banking website, can't support either formal or informal version. , since translations can differ quite bit, there's no way can parameterize it. e.g. sentence "do want log out?" have these 2 translations:
- wollen sie sich abmelden? (formal)
- willst du dich abmelden? (informal)
is there in gettext me this?
you can use contextual markers give translations additional context.
logout = pgettext('casual', 'do want log out?')
...
logout = pgettext('formal', 'do want log out?')
Comments
Post a Comment