Project

General

Profile

Actions

Feature proposal #5255

open

Implement CBTxt conditions

Added by krileon almost 9 years ago. Updated 5 months ago.

Status:
Feedback
Priority:
Urgent
Assignee:
Target version:
Start date:
27 April 2015
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by beat almost 9 years ago

  • Target version changed from CB 2.0.8 to CB 2.0.9
Actions #2

Updated by beat almost 9 years ago

  • Target version changed from CB 2.0.9 to CB 2.0.10
Actions #3

Updated by beat almost 9 years ago

  • Target version changed from CB 2.0.10 to CB 2.0.11
Actions #4

Updated by beat over 8 years ago

  • Target version changed from CB 2.0.11 to CB 2.0.12
Actions #5

Updated by beat over 8 years ago

  • Target version changed from CB 2.0.12 to CB 2.0.13
Actions #6

Updated by beat about 8 years ago

  • Target version changed from CB 2.0.13 to CB 2.0.14
Actions #7

Updated by beat about 8 years ago

  • Target version changed from CB 2.0.14 to CB 2.0.15
Actions #8

Updated by beat over 7 years ago

  • Target version changed from CB 2.0.15 to CB 2.1
Actions #9

Updated by krileon over 7 years ago

  • Target version changed from CB 2.1 to CB 2.2
Actions #10

Updated by krileon almost 6 years ago

  • Target version changed from CB 2.2 to CB 2.8
Actions #11

Updated by beat about 1 year ago

  • Target version changed from CB 2.8 to CB 2.8.1
Actions #12

Updated by beat 8 months ago

  • Target version changed from CB 2.8.1 to CB 2.8.2
Actions #13

Updated by beat 7 months ago

  • Target version changed from CB 2.8.2 to CB 2.9.0
Actions #14

Updated by beat 5 months ago

  • Target version changed from CB 2.9.0 to CB 2.9.2
Actions

Also available in: Atom PDF