Feature proposal #5255
open
Implement CBTxt conditions
Added by krileon over 9 years ago.
Updated 3 months ago.
Description
It'd be extremely helpful to be able to handle simple switch conditions in CBTxt strings to allow for gender support in language files. Without this you end up with say 4x the strings because each case needs to be an individual string. Example as follows.
Current:
New [type]
Valid:
New Photo
New Video
New Music
New File
Proposed:
New @[type]{photo:Photo|video:Video|music:Music|file:File|Item}
The [type] would be a replacement pulled from the CBTxt arguments array and conditioned against. I believe the below could work with our existing index usage updated to support strings.
{photo} New Photo|{video} New Video|{music} New Music|{file} New File|New Item
- Target version changed from CB 2.0.8 to CB 2.0.9
- Target version changed from CB 2.0.9 to CB 2.0.10
- Target version changed from CB 2.0.10 to CB 2.0.11
- Target version changed from CB 2.0.11 to CB 2.0.12
- Target version changed from CB 2.0.12 to CB 2.0.13
- Target version changed from CB 2.0.13 to CB 2.0.14
- Target version changed from CB 2.0.14 to CB 2.0.15
- Target version changed from CB 2.0.15 to CB 2.1
- Target version changed from CB 2.1 to CB 2.2
- Target version changed from CB 2.2 to CB 2.8
- Target version changed from CB 2.8 to CB 2.8.1
- Target version changed from CB 2.8.1 to CB 2.8.2
- Target version changed from CB 2.8.2 to CB 2.9.0
- Target version changed from CB 2.9.0 to CB 2.9.2
- Target version changed from CB 2.9.2 to CB 2.9.3
- Target version changed from CB 2.9.3 to CB 2.9.4
Also available in: Atom
PDF