Tweak to CannotCopyWarning notification. Updated french notifications.xml a tiny bit.
This commit is contained in:
@@ -219,11 +219,15 @@ bool LLGiveInventory::doGiveInventoryItem(const LLUUID& to_agent,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// ask if the agent is sure.
|
// ask if the agent is sure.
|
||||||
|
LLSD substitutions;
|
||||||
|
substitutions["ITEMS"] = item->getName();
|
||||||
LLSD payload;
|
LLSD payload;
|
||||||
payload["agent_id"] = to_agent;
|
payload["agent_id"] = to_agent;
|
||||||
payload["item_id"] = item->getUUID();
|
LLSD items = LLSD::emptyArray();
|
||||||
LLNotificationsUtil::add("CannotCopyWarning", LLSD(), payload,
|
items.append(item->getUUID());
|
||||||
&LLGiveInventory::handleCopyProtectedItem);
|
payload["items"] = items;
|
||||||
|
LLNotificationsUtil::add("CannotCopyWarning", substitutions, payload,
|
||||||
|
&LLGiveInventory::handleCopyProtectedItem);
|
||||||
res = false;
|
res = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,9 +306,10 @@ void LLGiveInventory::doGiveInventoryCategory(const LLUUID& to_agent,
|
|||||||
void LLGiveInventory::logInventoryOffer(const LLUUID& to_agent, const LLUUID &im_session_id)
|
void LLGiveInventory::logInventoryOffer(const LLUUID& to_agent, const LLUUID &im_session_id)
|
||||||
{
|
{
|
||||||
// If this item was given by drag-and-drop into an IM panel, log this action in the IM panel chat.
|
// If this item was given by drag-and-drop into an IM panel, log this action in the IM panel chat.
|
||||||
|
LLSD args;
|
||||||
|
args["user_id"] = to_agent;
|
||||||
if (im_session_id.notNull())
|
if (im_session_id.notNull())
|
||||||
{
|
{
|
||||||
LLSD args;
|
|
||||||
gIMMgr->addSystemMessage(im_session_id, "inventory_item_offered", args);
|
gIMMgr->addSystemMessage(im_session_id, "inventory_item_offered", args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -312,24 +317,28 @@ void LLGiveInventory::logInventoryOffer(const LLUUID& to_agent, const LLUUID &im
|
|||||||
// static
|
// static
|
||||||
bool LLGiveInventory::handleCopyProtectedItem(const LLSD& notification, const LLSD& response)
|
bool LLGiveInventory::handleCopyProtectedItem(const LLSD& notification, const LLSD& response)
|
||||||
{
|
{
|
||||||
S32 option = LLNotification::getSelectedOption(notification, response);
|
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||||
|
LLSD itmes = notification["payload"]["items"];
|
||||||
LLInventoryItem* item = NULL;
|
LLInventoryItem* item = NULL;
|
||||||
switch(option)
|
switch(option)
|
||||||
{
|
{
|
||||||
case 0: // "Yes"
|
case 0: // "Yes"
|
||||||
item = gInventory.getItem(notification["payload"]["item_id"].asUUID());
|
for (LLSD::array_iterator it = itmes.beginArray(); it != itmes.endArray(); it++)
|
||||||
if(item)
|
|
||||||
{
|
{
|
||||||
LLGiveInventory::commitGiveInventoryItem(notification["payload"]["agent_id"].asUUID(),
|
item = gInventory.getItem((*it).asUUID());
|
||||||
item);
|
if (item)
|
||||||
// delete it for now - it will be deleted on the server
|
{
|
||||||
// quickly enough.
|
LLGiveInventory::commitGiveInventoryItem(notification["payload"]["agent_id"].asUUID(),
|
||||||
gInventory.deleteObject(notification["payload"]["item_id"].asUUID());
|
item);
|
||||||
gInventory.notifyObservers();
|
// delete it for now - it will be deleted on the server
|
||||||
}
|
// quickly enough.
|
||||||
else
|
gInventory.deleteObject(item->getUUID());
|
||||||
{
|
gInventory.notifyObservers();
|
||||||
LLNotificationsUtil::add("CannotGiveItem");
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LLNotificationsUtil::add("CannotGiveItem");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -1266,7 +1266,9 @@ The region [REGION] does not allow terraforming.
|
|||||||
icon="alertmodal.tga"
|
icon="alertmodal.tga"
|
||||||
name="CannotCopyWarning"
|
name="CannotCopyWarning"
|
||||||
type="alertmodal">
|
type="alertmodal">
|
||||||
You do not have permission to copy this item and will lose it from your inventory if you give it away. Do you really want to offer this item?
|
You do not have permission to copy the following items:
|
||||||
|
[ITEMS]
|
||||||
|
and will lose it from your inventory if you give it away. Do you really want to offer these items?
|
||||||
<usetemplate
|
<usetemplate
|
||||||
name="okcancelbuttons"
|
name="okcancelbuttons"
|
||||||
notext="No"
|
notext="No"
|
||||||
|
|||||||
@@ -70,10 +70,10 @@
|
|||||||
text="$canceltext"/>
|
text="$canceltext"/>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
<notification functor="GenericAcknowledge" label="Message d'alerte inconnu" name="MissingAlert">
|
<notification functor="GenericAcknowledge" label="Message de notification inconnu" name="MissingAlert">
|
||||||
Votre version de Second Life ne peut afficher ce message d'erreur.
|
Votre version de [APP_NAME] ne peut afficher ce message de notification. Veuillez vous assurer que vous avez bien la toute dernière version du client.
|
||||||
|
|
||||||
Détails de l'erreur : L'alerte, appelée '[_NAME]' est introuvable dans notifications.xml.
|
Détails de l'erreur : La notification, appelée '[_NAME]', est introuvable dans notifications.xml.
|
||||||
<usetemplate name="okbutton" yestext="OK"/>
|
<usetemplate name="okbutton" yestext="OK"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="FloaterNotFound">
|
<notification name="FloaterNotFound">
|
||||||
@@ -94,11 +94,11 @@ Détails de l'erreur : L'alerte, appelée '[_NAME]' est int
|
|||||||
<usetemplate name="okcancelbuttons" notext="Annuler" yestext="Oui"/>
|
<usetemplate name="okcancelbuttons" notext="Annuler" yestext="Oui"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="BadInstallation">
|
<notification name="BadInstallation">
|
||||||
Une erreur est survenue lors de la mise à jour de Second Life. Veuillez télécharger la dernière version depuis PheonixViewer.com.
|
Une erreur est survenue lors de la mise à jour de [APP_NAME]. Veuillez télécharger la dernière version depuis SingularityViewer.org.
|
||||||
<usetemplate name="okbutton" yestext="OK"/>
|
<usetemplate name="okbutton" yestext="OK"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="LoginFailedNoNetwork">
|
<notification name="LoginFailedNoNetwork">
|
||||||
Erreur réseau : impossible d'établir une connexion.
|
Erreur réseau : impossible d'établir une connexion à [SECOND_LIFE_GRID].
|
||||||
'[DIAGNOSTIC]'
|
'[DIAGNOSTIC]'
|
||||||
Veuillez vérifier votre connexion.
|
Veuillez vérifier votre connexion.
|
||||||
<usetemplate name="okbutton" yestext="OK"/>
|
<usetemplate name="okbutton" yestext="OK"/>
|
||||||
@@ -502,7 +502,9 @@ La qualité des graphiques peut être augmentée à la section Préférences >
|
|||||||
Le terraformage est interdit dans la région [REGION].
|
Le terraformage est interdit dans la région [REGION].
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="CannotCopyWarning">
|
<notification name="CannotCopyWarning">
|
||||||
Vous n'êtes pas autorisé à copier cet objet et il disparaîtra de votre inventaire si vous le donnez. Souhaitez-vous vraiment offrir cet objet ?
|
Vous n'êtes pas autorisé à copier les articles suivants :
|
||||||
|
[ITEMS].
|
||||||
|
Ceux-ci disparaîtront donc de votre inventaire si vous les donnez. Voulez-vous vraiment offrir ces articles ?
|
||||||
<usetemplate name="okcancelbuttons" notext="Non" yestext="Oui"/>
|
<usetemplate name="okcancelbuttons" notext="Non" yestext="Oui"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="CannotGiveItem">
|
<notification name="CannotGiveItem">
|
||||||
@@ -613,6 +615,10 @@ Assurez-vous que le fichier a l'extension correcte.
|
|||||||
</notification>
|
</notification>
|
||||||
<notification name="SoundFileInvalidHeader">
|
<notification name="SoundFileInvalidHeader">
|
||||||
Impossible de trouver les données dans l'en-tête WAV :
|
Impossible de trouver les données dans l'en-tête WAV :
|
||||||
|
[FILE]
|
||||||
|
</notification>
|
||||||
|
<notification name="SoundFileInvalidChunkSize">
|
||||||
|
Taille de fragment incorrecte dans le fichier WAV :
|
||||||
[FILE]
|
[FILE]
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="SoundFileInvalidTooLong">
|
<notification name="SoundFileInvalidTooLong">
|
||||||
@@ -643,7 +649,7 @@ Assurez-vous que le fichier a l'extension correcte.
|
|||||||
Impossible de créer le fichier de sortie : [FILE]
|
Impossible de créer le fichier de sortie : [FILE]
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DoNotSupportBulkAnimationUpload">
|
<notification name="DoNotSupportBulkAnimationUpload">
|
||||||
Actuellement, nous ne prenons pas en charge le chargement de lots de fichiers d'animation.
|
Actuellement, [APP_NAME] ne prend pas en charge le chargement de lots de fichiers d'animation.
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="CannotUploadReason">
|
<notification name="CannotUploadReason">
|
||||||
Impossible de charger [FILE] suite au problème suivant : [REASON]
|
Impossible de charger [FILE] suite au problème suivant : [REASON]
|
||||||
@@ -1217,45 +1223,45 @@ Veuillez choisir un objet à vendre et réessayer.
|
|||||||
[DOWNLOAD_PATH].
|
[DOWNLOAD_PATH].
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DownloadWindowsMandatory">
|
<notification name="DownloadWindowsMandatory">
|
||||||
Une nouvelle version de [SECOND_LIFE] est disponible.
|
Une nouvelle version de [APP_NAME] est disponible.
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
Pour utiliser [SECOND_LIFE] vous devez télécharger cette mise à jour.
|
Pour utiliser [APP_NAME], vous devez télécharger cette mise à jour.
|
||||||
<usetemplate name="okcancelbuttons" notext="Quitter" yestext="Télécharger"/>
|
<usetemplate name="okcancelbuttons" notext="Quitter" yestext="Télécharger"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DownloadWindows">
|
<notification name="DownloadWindows">
|
||||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
Une mise à jour de [APP_NAME] est disponible.
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
||||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DownloadWindowsReleaseForDownload">
|
<notification name="DownloadWindowsReleaseForDownload">
|
||||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
Une mise à jour de [APP_NAME] est disponible.
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
||||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DownloadMacMandatory">
|
<notification name="DownloadMacMandatory">
|
||||||
Une nouvelle version de [SECOND_LIFE] est disponible.
|
Une nouvelle version de [APP_NAME] est disponible.
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
Pour utiliser [SECOND_LIFE] vous devez télécharger cette mise à jour.
|
Pour utiliser [APP_NAME], vous devez télécharger cette mise à jour.
|
||||||
|
|
||||||
Télécharger vers le dossier Applications ?
|
Télécharger vers le dossier Applications ?
|
||||||
<usetemplate name="okcancelbuttons" notext="Quitter" yestext="Télécharger"/>
|
<usetemplate name="okcancelbuttons" notext="Quitter" yestext="Télécharger"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DownloadMac">
|
<notification name="DownloadMac">
|
||||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
Une mise à jour de [APP_NAME] est disponible.
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
||||||
|
|
||||||
Télécharger vers le dossier Applications ?
|
Télécharger vers le dossier Applications ?
|
||||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DownloadMacReleaseForDownload">
|
<notification name="DownloadMacReleaseForDownload">
|
||||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
Une mise à jour de [APP_NAME] est disponible.
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
Cette mise à jour n'est pas requise mais si vous voulez une meilleure performance et plus de stabilité, nous vous recommandons de l'installer.
|
||||||
|
|
||||||
Télécharger vers le dossier Applications ?
|
Télécharger vers le dossier Applications ?
|
||||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||||
</notification>
|
</notification>
|
||||||
<notification name="DeedObjectToGroup">
|
<notification name="DeedObjectToGroup">
|
||||||
|
|||||||
Reference in New Issue
Block a user