Project

General

Profile

Actions

Feature proposal #5255

open

Implement CBTxt conditions

Feature proposal #5255: Implement CBTxt conditions

Added by krileon almost 11 years ago. Updated 3 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

Updated by beat almost 11 years ago Actions #1

  • Target version changed from CB 2.0.8 to CB 2.0.9

Updated by beat over 10 years ago Actions #2

  • Target version changed from CB 2.0.9 to CB 2.0.10

Updated by beat over 10 years ago Actions #3

  • Target version changed from CB 2.0.10 to CB 2.0.11

Updated by beat over 10 years ago Actions #4

  • Target version changed from CB 2.0.11 to CB 2.0.12

Updated by beat over 10 years ago Actions #5

  • Target version changed from CB 2.0.12 to CB 2.0.13

Updated by beat about 10 years ago Actions #6

  • Target version changed from CB 2.0.13 to CB 2.0.14

Updated by beat almost 10 years ago Actions #7

  • Target version changed from CB 2.0.14 to CB 2.0.15

Updated by beat over 9 years ago Actions #8

  • Target version changed from CB 2.0.15 to CB 2.1

Updated by krileon about 9 years ago Actions #9

  • Target version changed from CB 2.1 to CB 2.2

Updated by krileon over 7 years ago Actions #10

  • Target version changed from CB 2.2 to CB 2.8

Updated by beat about 3 years ago Actions #11

  • Target version changed from CB 2.8 to CB 2.8.1

Updated by beat over 2 years ago Actions #12

  • Target version changed from CB 2.8.1 to CB 2.8.2

Updated by beat over 2 years ago Actions #13

  • Target version changed from CB 2.8.2 to CB 2.9.0

Updated by beat about 2 years ago Actions #14

  • Target version changed from CB 2.9.0 to CB 2.9.2

Updated by beat over 1 year ago Actions #15

  • Target version changed from CB 2.9.2 to CB 2.9.3

Updated by beat over 1 year ago Actions #16

  • Target version changed from CB 2.9.3 to CB 2.10.0

Updated by beat 12 months ago Actions #17

  • Target version changed from CB 2.10.0 to CB 2.11.0

Updated by beat 3 months ago Actions #18

  • Target version changed from CB 2.11.0 to CB 2.11.1
Actions

Also available in: PDF Atom