Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions client/modules/User/components/Collection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ class Collection extends React.Component {
}

getTitle() {
if (this.hasCollection()) {
return `${this.props.t('Common.SiteName')} | ${this.getCollectionName()}`;
}
if (this.props.username === this.props.user.username) {
return this.props.t('Collection.Title');
}
Expand All @@ -138,6 +141,10 @@ class Collection extends React.Component {
: this.props.user.username;
}

getCollectionName() {
return this.props.collection.name;
}

isOwner() {
let isOwner = false;

Expand Down
1 change: 1 addition & 0 deletions translations/locales/de/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"Delete": "Löschen"
},
"Common": {
"SiteName": "p5.js Web Editor",
"Error": "Fehler",
"ErrorARIA": "Fehler",
"Save": "Speichern",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/en-US/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
"Delete": "Delete"
},
"Common": {
"SiteName": "p5.js Web Editor",
"Error": "Error",
"ErrorARIA": "Error",
"Save": "Save",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/es-419/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"Delete": "Borrar"
},
"Common": {
"SiteName": "Editor Web p5.js",
"Error": "Error",
"ErrorARIA": "Error",
"Save": "Guardar",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/fr-CA/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"Delete": "Supprimer"
},
"Common": {
"SiteName": "Éditeur web p5.js",
"Error": "Erreur",
"ErrorARIA": "Erreur",
"Save": "Sauvegarder",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/hi/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"Delete": "मिटाना"
},
"Common": {
"SiteName": "p5.js वेब एडिटर",
"Error": "एरर",
"ErrorARIA": "एरर",
"Save": "सेव",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/it/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
"Delete": "Cancella"
},
"Common": {
"SiteName": "p5.js Web Editor",
"Error": "Errore",
"ErrorARIA": "Errore",
"Save": "Salva",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/ja/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"Delete": "削除"
},
"Common": {
"SiteName": "p5.js Web Editor",
"Error": "エラー",
"ErrorARIA": "エラー",
"Save": "保存",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/ko/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
"Delete": "Delete"
},
"Common": {
"SiteName": "p5.js 웹에디터",
"Error": "에러",
"ErrorARIA": "에러",
"Save": "저장",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/pt-BR/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"Delete": "Apagar"
},
"Common": {
"SiteName": "Editor de Web p5.js",
"Error": "Erro",
"ErrorARIA": "Erro",
"Save": "Salvar",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/sv/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"Delete": "Radera"
},
"Common": {
"SiteName": "p5.js Webb editor",
"Error": "Error",
"ErrorARIA": "Error",
"Save": "Spara",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/tr/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
"Delete": "Sil"
},
"Common": {
"SiteName": "p5.js Web Editör",
"Error": "Hata",
"ErrorARIA": "Hata",
"Save": "Kaydet",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/uk-UA/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
"Delete": "Видалити"
},
"Common": {
"SiteName": "p5.js Web Editor",
"Error": "Помилка",
"ErrorARIA": "Помилка",
"Save": "Зберегти",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/zh-CN/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"Delete": "删除"
},
"Common": {
"SiteName": "p5.js 在线编辑器",
"Error": "错误",
"ErrorARIA": "错误",
"Save": "保存",
Expand Down
1 change: 1 addition & 0 deletions translations/locales/zh-TW/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"Delete": "刪除"
},
"Common": {
"SiteName": "p5.js Web Editor",
"Error": "錯誤",
"ErrorARIA": "錯誤",
"Save": "儲存",
Expand Down