diff --git a/client/modules/User/components/Collection.jsx b/client/modules/User/components/Collection.jsx index 101ec7df7f..939b2b851f 100644 --- a/client/modules/User/components/Collection.jsx +++ b/client/modules/User/components/Collection.jsx @@ -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'); } @@ -138,6 +141,10 @@ class Collection extends React.Component { : this.props.user.username; } + getCollectionName() { + return this.props.collection.name; + } + isOwner() { let isOwner = false; diff --git a/translations/locales/de/translations.json b/translations/locales/de/translations.json index 9a5209a829..a6a9b1cb0b 100644 --- a/translations/locales/de/translations.json +++ b/translations/locales/de/translations.json @@ -216,6 +216,7 @@ "Delete": "Löschen" }, "Common": { + "SiteName": "p5.js Web Editor", "Error": "Fehler", "ErrorARIA": "Fehler", "Save": "Speichern", diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index 35a7bfbb26..e6877b0f58 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -225,6 +225,7 @@ "Delete": "Delete" }, "Common": { + "SiteName": "p5.js Web Editor", "Error": "Error", "ErrorARIA": "Error", "Save": "Save", diff --git a/translations/locales/es-419/translations.json b/translations/locales/es-419/translations.json index 2a6153b26a..2964d83a18 100644 --- a/translations/locales/es-419/translations.json +++ b/translations/locales/es-419/translations.json @@ -216,6 +216,7 @@ "Delete": "Borrar" }, "Common": { + "SiteName": "Editor Web p5.js", "Error": "Error", "ErrorARIA": "Error", "Save": "Guardar", diff --git a/translations/locales/fr-CA/translations.json b/translations/locales/fr-CA/translations.json index faf4391db2..36a6558c0b 100644 --- a/translations/locales/fr-CA/translations.json +++ b/translations/locales/fr-CA/translations.json @@ -219,6 +219,7 @@ "Delete": "Supprimer" }, "Common": { + "SiteName": "Éditeur web p5.js", "Error": "Erreur", "ErrorARIA": "Erreur", "Save": "Sauvegarder", diff --git a/translations/locales/hi/translations.json b/translations/locales/hi/translations.json index b11f233bb5..493005abc6 100644 --- a/translations/locales/hi/translations.json +++ b/translations/locales/hi/translations.json @@ -216,6 +216,7 @@ "Delete": "मिटाना" }, "Common": { + "SiteName": "p5.js वेब एडिटर", "Error": "एरर", "ErrorARIA": "एरर", "Save": "सेव", diff --git a/translations/locales/it/translations.json b/translations/locales/it/translations.json index 3388841501..91345c5a18 100644 --- a/translations/locales/it/translations.json +++ b/translations/locales/it/translations.json @@ -222,6 +222,7 @@ "Delete": "Cancella" }, "Common": { + "SiteName": "p5.js Web Editor", "Error": "Errore", "ErrorARIA": "Errore", "Save": "Salva", diff --git a/translations/locales/ja/translations.json b/translations/locales/ja/translations.json index 1f6d203ab4..b711bf6535 100644 --- a/translations/locales/ja/translations.json +++ b/translations/locales/ja/translations.json @@ -216,6 +216,7 @@ "Delete": "削除" }, "Common": { + "SiteName": "p5.js Web Editor", "Error": "エラー", "ErrorARIA": "エラー", "Save": "保存", diff --git a/translations/locales/ko/translations.json b/translations/locales/ko/translations.json index a9775f2411..4c9416f371 100644 --- a/translations/locales/ko/translations.json +++ b/translations/locales/ko/translations.json @@ -204,6 +204,7 @@ "Delete": "Delete" }, "Common": { + "SiteName": "p5.js 웹에디터", "Error": "에러", "ErrorARIA": "에러", "Save": "저장", diff --git a/translations/locales/pt-BR/translations.json b/translations/locales/pt-BR/translations.json index 48ead168c2..4f109049f0 100644 --- a/translations/locales/pt-BR/translations.json +++ b/translations/locales/pt-BR/translations.json @@ -216,6 +216,7 @@ "Delete": "Apagar" }, "Common": { + "SiteName": "Editor de Web p5.js", "Error": "Erro", "ErrorARIA": "Erro", "Save": "Salvar", diff --git a/translations/locales/sv/translations.json b/translations/locales/sv/translations.json index 175dd1a478..1af93ce34d 100644 --- a/translations/locales/sv/translations.json +++ b/translations/locales/sv/translations.json @@ -219,6 +219,7 @@ "Delete": "Radera" }, "Common": { + "SiteName": "p5.js Webb editor", "Error": "Error", "ErrorARIA": "Error", "Save": "Spara", diff --git a/translations/locales/tr/translations.json b/translations/locales/tr/translations.json index c56bca3f06..ab85670cbf 100644 --- a/translations/locales/tr/translations.json +++ b/translations/locales/tr/translations.json @@ -222,6 +222,7 @@ "Delete": "Sil" }, "Common": { + "SiteName": "p5.js Web Editör", "Error": "Hata", "ErrorARIA": "Hata", "Save": "Kaydet", diff --git a/translations/locales/uk-UA/translations.json b/translations/locales/uk-UA/translations.json index 32d1f5176d..953367a856 100644 --- a/translations/locales/uk-UA/translations.json +++ b/translations/locales/uk-UA/translations.json @@ -218,6 +218,7 @@ "Delete": "Видалити" }, "Common": { + "SiteName": "p5.js Web Editor", "Error": "Помилка", "ErrorARIA": "Помилка", "Save": "Зберегти", diff --git a/translations/locales/zh-CN/translations.json b/translations/locales/zh-CN/translations.json index 509b1ff630..b78fceb99b 100644 --- a/translations/locales/zh-CN/translations.json +++ b/translations/locales/zh-CN/translations.json @@ -219,6 +219,7 @@ "Delete": "删除" }, "Common": { + "SiteName": "p5.js 在线编辑器", "Error": "错误", "ErrorARIA": "错误", "Save": "保存", diff --git a/translations/locales/zh-TW/translations.json b/translations/locales/zh-TW/translations.json index a2681534d8..dd3765b29c 100644 --- a/translations/locales/zh-TW/translations.json +++ b/translations/locales/zh-TW/translations.json @@ -219,6 +219,7 @@ "Delete": "刪除" }, "Common": { + "SiteName": "p5.js Web Editor", "Error": "錯誤", "ErrorARIA": "錯誤", "Save": "儲存",