From b98b4b6b1a91f17a572c9c9e66c57918535e874b Mon Sep 17 00:00:00 2001 From: Hecklezz Date: Thu, 5 Feb 2026 18:31:41 +1000 Subject: [PATCH] Prevent creating new FS AO set if the AO set name already exists --- indra/newview/ao.cpp | 6 ++++++ indra/newview/skins/default/xui/az/notifications.xml | 3 +++ indra/newview/skins/default/xui/de/notifications.xml | 4 ++++ indra/newview/skins/default/xui/en/notifications.xml | 10 ++++++++++ indra/newview/skins/default/xui/es/notifications.xml | 7 +++++-- indra/newview/skins/default/xui/fr/notifications.xml | 3 +++ indra/newview/skins/default/xui/it/notifications.xml | 3 +++ indra/newview/skins/default/xui/ja/notifications.xml | 3 +++ indra/newview/skins/default/xui/pl/notifications.xml | 3 +++ indra/newview/skins/default/xui/ru/notifications.xml | 3 +++ indra/newview/skins/default/xui/zh/notifications.xml | 5 ++++- 11 files changed, 47 insertions(+), 3 deletions(-) diff --git a/indra/newview/ao.cpp b/indra/newview/ao.cpp index 14ee05dea5..23bf453c8f 100644 --- a/indra/newview/ao.cpp +++ b/indra/newview/ao.cpp @@ -539,6 +539,12 @@ bool FloaterAO::newSetCallback(const LLSD& notification, const LLSD& response) return false; } + if (AOEngine::instance().getSetByName(newSetName)) + { + LLNotificationsUtil::add("NewAONameCantExist"); + return false; + } + if (option == 0) { AOEngine::instance().addSet(newSetName, [this](const LLUUID& new_cat_id) diff --git a/indra/newview/skins/default/xui/az/notifications.xml b/indra/newview/skins/default/xui/az/notifications.xml index f3a953045c..165bc1ae09 100644 --- a/indra/newview/skins/default/xui/az/notifications.xml +++ b/indra/newview/skins/default/xui/az/notifications.xml @@ -4002,6 +4002,9 @@ Davam edilsin? "[AO_SET_NAME]" AO dəstinin adını dəyişmək mümkün deyil. (Ad ":" və ya "|" istisna olmaqla istənilən ASCII simvolunu ehtiva edə bilər) + + Bu adda animasiya dəsti artıq mövcuddur. + AO dəsti "[AO_SET_NAME]" siyahıdan silinsin? diff --git a/indra/newview/skins/default/xui/de/notifications.xml b/indra/newview/skins/default/xui/de/notifications.xml index 802a70d7a8..9b20b85426 100644 --- a/indra/newview/skins/default/xui/de/notifications.xml +++ b/indra/newview/skins/default/xui/de/notifications.xml @@ -5218,6 +5218,10 @@ Der Name darf ausschließlich ASCII-Zeichen ausgenommen „:“ und „|“ enha yestext="OK"/> + +Ein Animationsset mit diesem Namen existiert bereits. + + Animationsset „[AO_SET_NAME]“ aus Liste löschen? + +An animation set with this name already exists. + + + - + No se ha podido crear el nuevo AO "[AO_SET_NAME]". El nombre NO puede contener los caracteres ":" o "|". - + No se ha podido renombrar el nueov AO a "[AO_SET_NAME]". El nombre NO puede contener los caracteres ":" o "|". + + Ya existe una configuración de AO con ese nombre. + ¿Eliminar la configuración de AO "[AO_SET_NAME]" de la lista? diff --git a/indra/newview/skins/default/xui/fr/notifications.xml b/indra/newview/skins/default/xui/fr/notifications.xml index c5a9609f04..aaee1e8509 100644 --- a/indra/newview/skins/default/xui/fr/notifications.xml +++ b/indra/newview/skins/default/xui/fr/notifications.xml @@ -4265,6 +4265,9 @@ Le nom ne peut contenir que des caractères ASCII, sauf ":" et "|". Le nom ne peut contenir que des caractères ASCII, sauf ":" et "|". + + Un ensemble d'animations portant ce nom existe déjà. + Retirer l'ensemble d'AO "[AO_SET_NAME]" de la liste ? diff --git a/indra/newview/skins/default/xui/it/notifications.xml b/indra/newview/skins/default/xui/it/notifications.xml index 7c4b487277..cc50a2a1d6 100644 --- a/indra/newview/skins/default/xui/it/notifications.xml +++ b/indra/newview/skins/default/xui/it/notifications.xml @@ -3999,6 +3999,9 @@ Il nome può contenere solo caratteri ASCII esclusi : e | . Impossibile rinominare il set AO "[AO_SET_NAME]". Il nome può contenere solo caratteri ASCII esclusi : e | . + + Esiste già un set AO con questo nome. + Rimuovere il set AO "[AO_SET_NAME]" dalla lista? diff --git a/indra/newview/skins/default/xui/ja/notifications.xml b/indra/newview/skins/default/xui/ja/notifications.xml index 4b356a5c60..2b8dedd424 100644 --- a/indra/newview/skins/default/xui/ja/notifications.xml +++ b/indra/newview/skins/default/xui/ja/notifications.xml @@ -4205,6 +4205,9 @@ https://wiki.firestormviewer.org/fs_voice 名前には、「:」または「|」を除く任意のアスキー文字を含めることができます。 + + この名前のアニメーションセットはすでに存在します。 + リストからAOセット「[AO_SET_NAME]」を削除してもよろしいですか? diff --git a/indra/newview/skins/default/xui/pl/notifications.xml b/indra/newview/skins/default/xui/pl/notifications.xml index db102de074..7d0f187b93 100644 --- a/indra/newview/skins/default/xui/pl/notifications.xml +++ b/indra/newview/skins/default/xui/pl/notifications.xml @@ -4128,6 +4128,9 @@ Nazwa może zawierać tylko znaki ASCII, za wyjątkiem ":" oraz "|". Nie można zmienić nazwy zestawu AO "[AO_SET_NAME]". Nazwa może zawierać tylko znaki ASCII, za wyjątkiem ":" oraz "|". + + Zestaw animacji o tej nazwie już istnieje. + Usunąć zestaw AO "[AO_SET_NAME]" z listy? diff --git a/indra/newview/skins/default/xui/ru/notifications.xml b/indra/newview/skins/default/xui/ru/notifications.xml index b2c7fbab5b..986270f7e8 100644 --- a/indra/newview/skins/default/xui/ru/notifications.xml +++ b/indra/newview/skins/default/xui/ru/notifications.xml @@ -4206,6 +4206,9 @@ https://wiki.firestormviewer.org/fs_voice Невозможно переименовать набор АО "[AO_SET_NAME]". Имя может содержать любые ASCII символ, за исключением ":" или "|" + + АО с данным именем уже существует. + Удалить набор АО "[AO_SET_NAME]" из списка? diff --git a/indra/newview/skins/default/xui/zh/notifications.xml b/indra/newview/skins/default/xui/zh/notifications.xml index 330ad09e02..0e09bac32d 100644 --- a/indra/newview/skins/default/xui/zh/notifications.xml +++ b/indra/newview/skins/default/xui/zh/notifications.xml @@ -4364,6 +4364,9 @@ https://wiki.firestormviewer.org/fs_voice 名稱只能包含ASCII字元,不包括「:」和「|」。 + + 已經存在同名的動畫集。 + 刪除名為「[AO_SET_NAME]」的動畫覆蓋集? @@ -5887,4 +5890,4 @@ https://wiki.firestormviewer.org/antivirus_whitelisting 請前往偏好設定 > 隱私 > 記錄與聊天內容中啟用聊天內容儲存功能 - \ No newline at end of file +