Actions
Feature proposal #5255
openImplement CBTxt conditions
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
Updated by beat over 9 years ago
- Target version changed from CB 2.0.8 to CB 2.0.9
Updated by beat over 9 years ago
- Target version changed from CB 2.0.9 to CB 2.0.10
Updated by beat over 9 years ago
- Target version changed from CB 2.0.10 to CB 2.0.11
Updated by beat about 9 years ago
- Target version changed from CB 2.0.11 to CB 2.0.12
Updated by beat about 9 years ago
- Target version changed from CB 2.0.12 to CB 2.0.13
Updated by beat almost 9 years ago
- Target version changed from CB 2.0.13 to CB 2.0.14
Updated by beat over 8 years ago
- Target version changed from CB 2.0.14 to CB 2.0.15
Updated by beat about 8 years ago
- Target version changed from CB 2.0.15 to CB 2.1
Updated by krileon almost 8 years ago
- Target version changed from CB 2.1 to CB 2.2
Updated by krileon over 6 years ago
- Target version changed from CB 2.2 to CB 2.8
Updated by beat almost 2 years ago
- Target version changed from CB 2.8 to CB 2.8.1
Updated by beat about 1 year ago
- Target version changed from CB 2.8.1 to CB 2.8.2
Updated by beat about 1 year ago
- Target version changed from CB 2.8.2 to CB 2.9.0
Updated by beat about 1 year ago
- Target version changed from CB 2.9.0 to CB 2.9.2
Actions