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
|
||||
{
|
||||
// ask if the agent is sure.
|
||||
LLSD substitutions;
|
||||
substitutions["ITEMS"] = item->getName();
|
||||
LLSD payload;
|
||||
payload["agent_id"] = to_agent;
|
||||
payload["item_id"] = item->getUUID();
|
||||
LLNotificationsUtil::add("CannotCopyWarning", LLSD(), payload,
|
||||
&LLGiveInventory::handleCopyProtectedItem);
|
||||
LLSD items = LLSD::emptyArray();
|
||||
items.append(item->getUUID());
|
||||
payload["items"] = items;
|
||||
LLNotificationsUtil::add("CannotCopyWarning", substitutions, payload,
|
||||
&LLGiveInventory::handleCopyProtectedItem);
|
||||
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)
|
||||
{
|
||||
// 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())
|
||||
{
|
||||
LLSD 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
|
||||
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;
|
||||
switch(option)
|
||||
{
|
||||
case 0: // "Yes"
|
||||
item = gInventory.getItem(notification["payload"]["item_id"].asUUID());
|
||||
if(item)
|
||||
for (LLSD::array_iterator it = itmes.beginArray(); it != itmes.endArray(); it++)
|
||||
{
|
||||
LLGiveInventory::commitGiveInventoryItem(notification["payload"]["agent_id"].asUUID(),
|
||||
item);
|
||||
// delete it for now - it will be deleted on the server
|
||||
// quickly enough.
|
||||
gInventory.deleteObject(notification["payload"]["item_id"].asUUID());
|
||||
gInventory.notifyObservers();
|
||||
}
|
||||
else
|
||||
{
|
||||
LLNotificationsUtil::add("CannotGiveItem");
|
||||
item = gInventory.getItem((*it).asUUID());
|
||||
if (item)
|
||||
{
|
||||
LLGiveInventory::commitGiveInventoryItem(notification["payload"]["agent_id"].asUUID(),
|
||||
item);
|
||||
// delete it for now - it will be deleted on the server
|
||||
// quickly enough.
|
||||
gInventory.deleteObject(item->getUUID());
|
||||
gInventory.notifyObservers();
|
||||
}
|
||||
else
|
||||
{
|
||||
LLNotificationsUtil::add("CannotGiveItem");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -1266,7 +1266,9 @@ The region [REGION] does not allow terraforming.
|
||||
icon="alertmodal.tga"
|
||||
name="CannotCopyWarning"
|
||||
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
|
||||
name="okcancelbuttons"
|
||||
notext="No"
|
||||
|
||||
@@ -70,10 +70,10 @@
|
||||
text="$canceltext"/>
|
||||
</form>
|
||||
</template>
|
||||
<notification functor="GenericAcknowledge" label="Message d'alerte inconnu" name="MissingAlert">
|
||||
Votre version de Second Life ne peut afficher ce message d'erreur.
|
||||
<notification functor="GenericAcknowledge" label="Message de notification inconnu" name="MissingAlert">
|
||||
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"/>
|
||||
</notification>
|
||||
<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"/>
|
||||
</notification>
|
||||
<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"/>
|
||||
</notification>
|
||||
<notification name="LoginFailedNoNetwork">
|
||||
Erreur réseau : impossible d'établir une connexion.
|
||||
Erreur réseau : impossible d'établir une connexion à [SECOND_LIFE_GRID].
|
||||
'[DIAGNOSTIC]'
|
||||
Veuillez vérifier votre connexion.
|
||||
<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].
|
||||
</notification>
|
||||
<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"/>
|
||||
</notification>
|
||||
<notification name="CannotGiveItem">
|
||||
@@ -613,6 +615,10 @@ Assurez-vous que le fichier a l'extension correcte.
|
||||
</notification>
|
||||
<notification name="SoundFileInvalidHeader">
|
||||
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]
|
||||
</notification>
|
||||
<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]
|
||||
</notification>
|
||||
<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 name="CannotUploadReason">
|
||||
Impossible de charger [FILE] suite au problème suivant : [REASON]
|
||||
@@ -1217,45 +1223,45 @@ Veuillez choisir un objet à vendre et réessayer.
|
||||
[DOWNLOAD_PATH].
|
||||
</notification>
|
||||
<notification name="DownloadWindowsMandatory">
|
||||
Une nouvelle version de [SECOND_LIFE] est disponible.
|
||||
Une nouvelle version de [APP_NAME] est disponible.
|
||||
[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"/>
|
||||
</notification>
|
||||
<notification name="DownloadWindows">
|
||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
||||
Une mise à jour de [APP_NAME] est disponible.
|
||||
[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.
|
||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||
</notification>
|
||||
<notification name="DownloadWindowsReleaseForDownload">
|
||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
||||
Une mise à jour de [APP_NAME] est disponible.
|
||||
[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.
|
||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||
</notification>
|
||||
<notification name="DownloadMacMandatory">
|
||||
Une nouvelle version de [SECOND_LIFE] est disponible.
|
||||
Une nouvelle version de [APP_NAME] est disponible.
|
||||
[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"/>
|
||||
</notification>
|
||||
<notification name="DownloadMac">
|
||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
||||
Une mise à jour de [APP_NAME] est disponible.
|
||||
[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.
|
||||
|
||||
Télécharger vers le dossier Applications ?
|
||||
Télécharger vers le dossier Applications ?
|
||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||
</notification>
|
||||
<notification name="DownloadMacReleaseForDownload">
|
||||
Une mise à jour de [SECOND_LIFE] est disponible.
|
||||
Une mise à jour de [APP_NAME] est disponible.
|
||||
[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.
|
||||
|
||||
Télécharger vers le dossier Applications ?
|
||||
Télécharger vers le dossier Applications ?
|
||||
<usetemplate name="okcancelbuttons" notext="Continuer" yestext="Télécharger"/>
|
||||
</notification>
|
||||
<notification name="DeedObjectToGroup">
|
||||
|
||||
Reference in New Issue
Block a user