mirror of
https://github.com/FirestormViewer/phoenix-firestorm.git
synced 2026-08-14 00:48:30 +00:00
Prevent creating new FS AO set if the AO set name already exists
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
Bu adda animasiya dəsti artıq mövcuddur.
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
AO dəsti "[AO_SET_NAME]" siyahıdan silinsin?
|
||||
<usetemplate name="okcancelbuttons" notext="Ləğv et" yestext="Sil"/>
|
||||
|
||||
@@ -5218,6 +5218,10 @@ Der Name darf ausschließlich ASCII-Zeichen ausgenommen „:“ und „|“ enha
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification name="NewAONameCantExist">
|
||||
Ein Animationsset mit diesem Namen existiert bereits.
|
||||
</notification>
|
||||
|
||||
<notification name="RemoveAOSet">
|
||||
Animationsset „[AO_SET_NAME]“ aus Liste löschen?
|
||||
<usetemplate
|
||||
|
||||
@@ -11083,6 +11083,16 @@ The name may only contain ASCII characters, excluding ":" and "|".
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="NewAONameCantExist"
|
||||
type="alertmodal">
|
||||
An animation set with this name already exists.
|
||||
<usetemplate
|
||||
name="okbutton"
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="RemoveAOSet"
|
||||
|
||||
@@ -4654,16 +4654,19 @@ Por favor, copia a tu propio inventario y vuelve a intentarlo.
|
||||
<button name="Cancel" text="Cancelar"/>
|
||||
</form>
|
||||
</notification>
|
||||
<notification name="NewAOCantContainColon">
|
||||
<notification name="NewAOCantContainNonASCII">
|
||||
No se ha podido crear el nuevo AO "[AO_SET_NAME]".
|
||||
El nombre NO puede contener los caracteres ":" o "|".
|
||||
<usetemplate name="okbutton" yestext="Aceptar"/>
|
||||
</notification>
|
||||
<notification name="RenameAOCantContainColon">
|
||||
<notification name="RenameAOMustBeASCII">
|
||||
No se ha podido renombrar el nueov AO a "[AO_SET_NAME]".
|
||||
El nombre NO puede contener los caracteres ":" o "|".
|
||||
<usetemplate name="okbutton" yestext="Aceptar"/>
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
Ya existe una configuración de AO con ese nombre.
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
¿Eliminar la configuración de AO "[AO_SET_NAME]" de la lista?
|
||||
<usetemplate name="okcancelbuttons" notext="Cancelar" yestext="Eliminar"/>
|
||||
|
||||
@@ -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 "|".
|
||||
<usetemplate name="okbutton" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
Un ensemble d'animations portant ce nom existe déjà.
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
Retirer l'ensemble d'AO "[AO_SET_NAME]" de la liste ?
|
||||
<usetemplate name="okcancelbuttons" notext="Annuler" yestext="Supprimer"/>
|
||||
|
||||
@@ -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 | .
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
Esiste già un set AO con questo nome.
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
Rimuovere il set AO "[AO_SET_NAME]" dalla lista?
|
||||
<usetemplate name="okcancelbuttons" notext="Annulla" yestext="Rimuovi"/>
|
||||
|
||||
@@ -4205,6 +4205,9 @@ https://wiki.firestormviewer.org/fs_voice
|
||||
名前には、「:」または「|」を除く任意のアスキー文字を含めることができます。
|
||||
<usetemplate name="okbutton" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
この名前のアニメーションセットはすでに存在します。
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
リストからAOセット「[AO_SET_NAME]」を削除してもよろしいですか?
|
||||
<usetemplate name="okcancelbuttons" notext="キャンセル" yestext="削除する"/>
|
||||
|
||||
@@ -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 "|".
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
Zestaw animacji o tej nazwie już istnieje.
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
Usunąć zestaw AO "[AO_SET_NAME]" z listy?
|
||||
<usetemplate name="okcancelbuttons" notext="Anuluj" yestext="Usuń"/>
|
||||
|
||||
@@ -4206,6 +4206,9 @@ https://wiki.firestormviewer.org/fs_voice
|
||||
Невозможно переименовать набор АО "[AO_SET_NAME]".
|
||||
Имя может содержать любые ASCII символ, за исключением ":" или "|"
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
АО с данным именем уже существует.
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
Удалить набор АО "[AO_SET_NAME]" из списка?
|
||||
<usetemplate name="okcancelbuttons" notext="Отмена" yestext="Удалить"/>
|
||||
|
||||
@@ -4364,6 +4364,9 @@ https://wiki.firestormviewer.org/fs_voice
|
||||
名稱只能包含ASCII字元,不包括「:」和「|」。
|
||||
<usetemplate name="okbutton" yestext="確定"/>
|
||||
</notification>
|
||||
<notification name="NewAONameCantExist">
|
||||
已經存在同名的動畫集。
|
||||
</notification>
|
||||
<notification name="RemoveAOSet">
|
||||
刪除名為「[AO_SET_NAME]」的動畫覆蓋集?
|
||||
<usetemplate name="okcancelbuttons" notext="取消" yestext="刪除"/>
|
||||
@@ -5887,4 +5890,4 @@ https://wiki.firestormviewer.org/antivirus_whitelisting
|
||||
請前往偏好設定 > 隱私 > 記錄與聊天內容中啟用聊天內容儲存功能
|
||||
<usetemplate name="okbutton" yestext="確定"/>
|
||||
</notification>
|
||||
</notifications>
|
||||
</notifications>
|
||||
|
||||
Reference in New Issue
Block a user