@@ -1,12 +1,13 @@
+import { translationMacro as t } from 'ember-i18n';
 import AbstractEditRoute from 'hospitalrun/routes/abstract-edit-route';
 import Ember from 'ember';
 import FulfillRequest from 'hospitalrun/mixins/fulfill-request';
 import InventoryLocations from 'hospitalrun/mixins/inventory-locations'; // inventory-locations mixin is needed for fulfill-request mixin!
 import PatientListRoute from 'hospitalrun/mixins/patient-list-route';
 export default AbstractEditRoute.extend(FulfillRequest, InventoryLocations, PatientListRoute, {
-  editTitle: 'Edit Medication Request',
+  editTitle: t('medication.titles.edit_medication_request'),
   modelName: 'medication',
-  newTitle: 'New Medication Request',
+  newTitle: t('medication.titles.new_medication_request'),
   database: Ember.inject.service(),
   getNewData: function(params) {
     var idParam = this.get('idParam'),
import AbstractEditRoute from 'hospitalrun/routes/abstract-edit-route';
import Ember from 'ember';
import FulfillRequest from 'hospitalrun/mixins/fulfill-request';
import InventoryLocations from 'hospitalrun/mixins/inventory-locations'; // inventory-locations mixin is needed for fulfill-request mixin!
import PatientListRoute from 'hospitalrun/mixins/patient-list-route';
export default AbstractEditRoute.extend(FulfillRequest, InventoryLocations, PatientListRoute, {
  editTitle: 'Edit Medication Request',
  modelName: 'medication',
  newTitle: 'New Medication Request',
  database: Ember.inject.service(),
  getNewData: function(params) {
    var idParam = this.get('idParam'),
      newData = {
        selectPatient: true,
        prescriptionDate: moment().startOf('day').toDate()
      };
    if (params[idParam] === 'dispense') {
      newData.shouldFulfillRequest = true;
      newData.hideFulfillRequest = true;
    }
    newData.id = PouchDB.utils.uuid();
    return Ember.RSVP.resolve(newData);
  },

  model: function(params) {
    var idParam = this.get('idParam');
    if (!Ember.isEmpty(idParam) && params[idParam] === 'new' || params[idParam] === 'dispense') {
      return this._createNewRecord(params);
    } else {
      return this._super(params);
    }
  },

  setupController: function(controller, model) {
    this._super(controller, model);
    var inventoryQuery = {
      key: 'Medication',
      include_docs: true
    };
    var inventoryItemId = model.get('inventoryItem.id'),
      patient = model.get('patient');
    if (Ember.isEmpty(inventoryItemId)) {
      this.get('database').queryMainDB(inventoryQuery, 'inventory_by_type')
        .then(function(result) {
          var medicationList = result.rows.map(function(medication) {
            return medication.doc;
          });
          controller.set('medicationList', medicationList);
        });
    }
    if (Ember.isEmpty(patient)) {
      this._fetchPatientList(controller);
    }
  }
});

This should be `t('medication.titles.new_medication_request'),`