Closed Bug 898471 Opened 11 years ago Closed 8 years ago

support [index] for hash entries

Categories

(L20n :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: Pike, Unassigned)

Details

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
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.