support [index] for hash entries

RESOLVED INCOMPLETE

Status

L20n
General
RESOLVED INCOMPLETE
5 years ago
2 years ago

People

(Reporter: Pike, Unassigned)

Tracking

unspecified
Next
x86
Mac OS X

Details

(Reporter)

Description

5 years ago
It'd be nice if we could add an index to

hashItem 	: 	'*'? identifier index? WS? ':' WS? value ;

That way, once could put an index on just one hash entry, and close to where it is used.

So instead of

<relative_days_long[relative_days($day),
                    plural($day<=0 ? -$day : $day)] {
  today: "Сегодня",
  tomorrow: "Завтра",
  two_days_after: "Послезавтра",
  yesterday: "Вчера",
  two_days_before: "Позавчера",
  until: {
   *other: "через {{ $day}} дней",
    few: "через {{ $day }} дня"
  },
  ago: {
   *other: "{{ -$day }} дней назад",
    few: "{{ -$day }} дня назад"
  }
}>

you'd do

<relative_days_long[relative_days($day) {
  today: "Сегодня",
  tomorrow: "Завтра",
  two_days_after: "Послезавтра",
  yesterday: "Вчера",
  two_days_before: "Позавчера",
  until[plural($day<=0 ? -$day : $day)]: {
   *other: "через {{ $day}} дней",
    few: "через {{ $day }} дня"
  },
  ago[plural($day<=0 ? -$day : $day)]: {
   *other: "{{ -$day }} дней назад",
    few: "{{ -$day }} дня назад"
  }
}>
Target Milestone: --- → Next
This bug is about the old L20n syntax which was replaced by the FTL syntax in spring 2016.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.