Skip to content

Commit 7f1e990

Browse files
Merge pull request #2341 from samumist/issue/2340
fix hard-coded text
2 parents 11ed71a + e196579 commit 7f1e990

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • frontend/src/modules/assetManagement

frontend/src/modules/assetManagement/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ define(function(require) {
5151
}
5252

5353
function loadNewAssetView() {
54-
Origin.trigger('location:title:update', { title: 'New Asset' });
54+
Origin.trigger('location:title:update', { title: Origin.l10n.t('app.newasset')});
5555
Origin.sidebar.addView(new AssetManagementNewAssetSidebarView().$el);
5656
Origin.contentPane.setView(AssetManagementNewAssetView, { model: new AssetModel });
5757
}
@@ -60,7 +60,7 @@ define(function(require) {
6060
// Fetch existing asset model
6161
(new AssetModel({ _id: location })).fetch({
6262
success: function(model) {
63-
Origin.trigger('location:title:update', { title: 'Edit Asset' });
63+
Origin.trigger('location:title:update', { title: Origin.l10n.t('app.editasset')});
6464
Origin.sidebar.addView(new AssetManagementNewAssetSidebarView().$el);
6565
Origin.contentPane.setView(AssetManagementNewAssetView, { model: model });
6666
}

0 commit comments

Comments
 (0)