Compare commits
2 Commits
sv-1.8.9.8
...
sv-1.8.9.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64ed6e99f0 | ||
|
|
33d3bb2870 |
@@ -65,6 +65,20 @@ bool LLLogChat::migrateFile(const std::string& old_name, const std::string& file
|
||||
{
|
||||
std::string oldfile = makeLogFileNameInternal(old_name);
|
||||
if (!LLFile::isfile(oldfile)) return false; // An old file by this name doesn't exist
|
||||
|
||||
if (LLFile::isfile(filename)) // A file by the new name also exists, but wasn't being tracked yet
|
||||
{
|
||||
auto&& new_untracked_log = llifstream(filename);
|
||||
auto&& tracked_log = llofstream(oldfile, llofstream::out|llofstream::app);
|
||||
// Append new to old and find out if it failed
|
||||
bool failed = !(tracked_log << new_untracked_log.rdbuf());
|
||||
// Close streams
|
||||
new_untracked_log.close();
|
||||
tracked_log.close();
|
||||
if (failed || LLFile::remove(filename)) // Delete the untracked new file so that reclaiming its name won't fail
|
||||
return true; // We failed to remove it or update the old file, let's just use the new file and leave the old one alone
|
||||
}
|
||||
|
||||
LLFile::rename(oldfile, filename); // Move the existing file to the new name
|
||||
return true; // Report success
|
||||
}
|
||||
|
||||
@@ -2156,7 +2156,7 @@ Offer a teleport?<tag>Bestätigen</tag><form name="form">
|
||||
<button name="GoNow..." text="Jetzt gehen..."/>
|
||||
</form></notification>
|
||||
|
||||
<notification name="OfferFriendship">[NAME] bietet Ihnen die Freundschaft an.
|
||||
<notification name="OfferFriendship">[NAME_SLURL] bietet Ihnen die Freundschaft an.
|
||||
|
||||
[MESSAGE]
|
||||
|
||||
@@ -2169,7 +2169,7 @@ Offer a teleport?<tag>Bestätigen</tag><form name="form">
|
||||
|
||||
<notification name="FriendshipOffered">Sie haben [TO_NAME] die Freundschaft angeboten.</notification>
|
||||
|
||||
<notification name="OfferFriendshipNoMessage">[NAME] bietet Ihnen die Freundschaft an.
|
||||
<notification name="OfferFriendshipNoMessage">[NAME_SLURL] bietet Ihnen die Freundschaft an.
|
||||
|
||||
(Sie werden dadurch den gegenseitigen Online-Status sehen können.)<form name="form">
|
||||
<button name="Accept" text="Akzeptieren"/>
|
||||
@@ -2178,9 +2178,9 @@ Offer a teleport?<tag>Bestätigen</tag><form name="form">
|
||||
<button name="Profile" text="Profil"/>
|
||||
</form></notification>
|
||||
|
||||
<notification name="FriendshipAccepted">[NAME] hat Ihr Freundschaftsangebot akzeptiert.</notification>
|
||||
<notification name="FriendshipAccepted">[NAME_SLURL] hat Ihr Freundschaftsangebot akzeptiert.</notification>
|
||||
|
||||
<notification name="FriendshipDeclined">[NAME] hat Ihr Freundschaftsangebot abgelehnt.</notification>
|
||||
<notification name="FriendshipDeclined">[NAME_SLURL] hat Ihr Freundschaftsangebot abgelehnt.</notification>
|
||||
|
||||
<notification name="FriendshipDissolved">[NAME] hat Ihr Freundschaftsangebot abgelehnt.</notification>
|
||||
|
||||
|
||||
@@ -2788,7 +2788,7 @@ Riprova tra qualche istante.
|
||||
</form>
|
||||
</notification>
|
||||
<notification name="OfferFriendship">
|
||||
[NAME] ti ha offerto la sua amicizia.
|
||||
[NAME_SLURL] ti ha offerto la sua amicizia.
|
||||
|
||||
[MESSAGE]
|
||||
|
||||
@@ -2799,7 +2799,7 @@ Riprova tra qualche istante.
|
||||
</form>
|
||||
</notification>
|
||||
<notification name="OfferFriendshipNoMessage">
|
||||
[NAME] ti ha offerto la sua amicizia.
|
||||
[NAME_SLURL] ti ha offerto la sua amicizia.
|
||||
|
||||
(Di default, potrete vedervi reciprocamente online.)
|
||||
<form name="form">
|
||||
@@ -2808,10 +2808,10 @@ Riprova tra qualche istante.
|
||||
</form>
|
||||
</notification>
|
||||
<notification name="FriendshipAccepted">
|
||||
[NAME] ha accettato la tua offerta di amicizia.
|
||||
[NAME_SLURL] ha accettato la tua offerta di amicizia.
|
||||
</notification>
|
||||
<notification name="FriendshipDeclined">
|
||||
[NAME] ha rifiutato la tua offerta di amicizia.
|
||||
[NAME_SLURL] ha rifiutato la tua offerta di amicizia.
|
||||
</notification>
|
||||
<notification name="OfferCallingCard">
|
||||
[NAME] ti ha offerto il suo biglietto da visita.
|
||||
|
||||
@@ -3556,7 +3556,7 @@ No entanto, esta região tem conteúdo acessível apenas para adultos.
|
||||
</notification>
|
||||
|
||||
<notification name="OfferFriendship">
|
||||
[NAME] está lhe oferecendo sua amizade
|
||||
[NAME_SLURL] está lhe oferecendo sua amizade
|
||||
|
||||
[MESSAGE]
|
||||
|
||||
@@ -3572,7 +3572,7 @@ No entanto, esta região tem conteúdo acessível apenas para adultos.
|
||||
</notification>
|
||||
|
||||
<notification name="OfferFriendshipNoMessage">
|
||||
[NAME] está lhe oferecendo sua amizade.
|
||||
[NAME_SLURL] está lhe oferecendo sua amizade.
|
||||
|
||||
(Por definição vocês serão capazes de ver um ao outro online)
|
||||
<form name="form">
|
||||
@@ -3582,11 +3582,11 @@ No entanto, esta região tem conteúdo acessível apenas para adultos.
|
||||
</notification>
|
||||
|
||||
<notification name="FriendshipAccepted">
|
||||
[NAME] aceitou seu convite de amizade.
|
||||
[NAME_SLURL] aceitou seu convite de amizade.
|
||||
</notification>
|
||||
|
||||
<notification name="FriendshipDeclined">
|
||||
[NAME] recusou seu convite de amizade
|
||||
[NAME_SLURL] recusou seu convite de amizade
|
||||
</notification>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user