Download & Extend

Substitute "for the following role:" with placeholder

Project:Apply for role
Version:6.x-1.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Text concatenations ending with "...for the following roles:" are ugly to read and translate. For example, "Your application was received for the following role:" should be "Your application for the role %role was received".

Comments

#1

Status:active» postponed (maintainer needs more info)

Please explain why it should be "Your application for the role %role was received". Thanks!

#2

Because in the german translation (and probably others), the name of the role (or the names of the roles for the plural phrase) need to appear in the middle of the sentence.

#3

+1 for the feature.
The string passed to t() should take in consideration the different position the words could have in a different language; in this cases, a placeholder (for that part of the sentence that must not be translated) makes more sense.

#4

Status:postponed (maintainer needs more info)» active

#5

Title:substitute "...for the following role:" with variable substitution» Substitute "for the following role:" with placeholder
Version:6.x-1.8»

#6

Todo

#7

Category:feature request» task

#8

Version:» 6.x-1.x-dev

Committed to 7 -dev. To be backported to 6 -dev.