Project

General

Profile

Actions

Bug #4785

closed

angular-gettext's gettext function only works for extraction, need to also handle replacements

Added by Walden Raines about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

See https://github.com/rubenv/angular-gettext/issues/29

We have various gettext() calls in our Bastion javascript files that will only return the untranslated string. We need to figure out a way to handle replacement.

A couple of ideas:
  1. Wrap the angular-gettext function with our own version that does replacements
  2. Use what's outlined here: https://github.com/rubenv/angular-gettext/issues/29#issuecomment-37196935
Actions

Also available in: Atom PDF