#1810 - Improved language grammar

Identifier #1810
Issue type Feature request or suggestion
Title Improved language grammar
Status Closed (duplicate)
Handling member Chris Graham
Addon core
Description Language strings like the following are problematic:

AWARD_ON=Award given on {1}

As it can evaluate like "Award given on Today"

i.e. there is a context-sensitivity that our language strings cannot capture.

Trying to split out strings would create a huge mess. Besides, different languages have different composition issues.


To solve this we should allow language strings to identify themselves for post-processing, and allow languages to add custom code to do it.

AWARD_ON=Award given {{on {1}}}

"{{...}}" would indicate the need for processing, and our code would see the issue and strip the word "on".
Steps to reproduce

Related to

#1994 - De-generalise "missing resource" errors, possibly other messages

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated