Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
translate patient routes
Browse files Browse the repository at this point in the history
  • Loading branch information
billybonks committed Jun 3, 2016
1 parent 5df045a commit dac20e2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app/locales/en/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,10 @@ export default {
add_contact: 'Add Contact',
delete: 'Delete Patient',
new: 'New Patient',
edit: 'Edit Patient',
patient: 'Patient Report',
patient_listing: 'Patient Listing',
patient_report: 'Patient Report',
add_photo: 'Add Photo',
edit_photo: 'Edit Photo',
social_work: 'Expense',
Expand All @@ -672,6 +676,7 @@ export default {
}
buttons:{
back_to_patients: 'Back to Patient List'
new_patient: '+ new patient'
},
labels:{
admission_date: 'Admission Date',
Expand Down
6 changes: 4 additions & 2 deletions app/patients/edit/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import PatientId from 'hospitalrun/mixins/patient-id';
import PatientVisits from 'hospitalrun/mixins/patient-visits';
import PatientNotes from 'hospitalrun/mixins/patient-notes';
import PouchDbMixin from 'hospitalrun/mixins/pouchdb';
import { translationMacro as t } from "ember-i18n";

export default AbstractEditRoute.extend(PatientId, PatientVisits, PouchDbMixin, PatientNotes, {
editTitle: 'Edit Patient',
editTitle: t('patients.titles.edit'),
modelName: 'patient',
newTitle: 'New Patient',
newTitle: t('patients.titles.new'),
photos: null,

actions: {
Expand Down
4 changes: 3 additions & 1 deletion app/patients/index/route.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import AbstractIndexRoute from 'hospitalrun/routes/abstract-index-route';
import { translationMacro as t } from "ember-i18n";

export default AbstractIndexRoute.extend({
modelName: 'patient',
pageTitle: 'Patient Listing',
pageTitle: t( 'patients.title.patient_listing'),

_getStartKeyFromItem: function(item) {
var displayPatientId = item.get('displayPatientId');
Expand Down
4 changes: 3 additions & 1 deletion app/patients/reports/route.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import AbstractIndexRoute from 'hospitalrun/routes/abstract-index-route';
import Ember from 'ember';
import { translationMacro as t } from "ember-i18n";

export default AbstractIndexRoute.extend({
pageTitle: 'Patient Report',
pageTitle: t('patients.titles.patient_report'),

// No model for reports; data gets retrieved when report is run.
model: function() {
Expand Down
4 changes: 3 additions & 1 deletion app/patients/route.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import AbstractModuleRoute from 'hospitalrun/routes/abstract-module-route';
import Ember from 'ember';
import PatientId from 'hospitalrun/mixins/patient-id';
import { translationMacro as t } from "ember-i18n";

export default AbstractModuleRoute.extend(PatientId, {
addCapability: 'add_patient',
additionalModels: [{
Expand Down Expand Up @@ -53,6 +55,6 @@ export default AbstractModuleRoute.extend(PatientId, {
}.bind(this));
}
},
newButtonText: '+ new patient',
newButtonText: t('patients.buttons.new_patient'),
moduleName: 'patients'
});

0 comments on commit dac20e2

Please sign in to comment.