Bug 1399756 - fix typos in chat/ using codespell. r=florian

[skip-blame]
This commit is contained in:
Jorg K 2018-03-20 05:21:00 +01:00
Родитель 09cf4b1ab9
Коммит cf5c982eb4
16 изменённых файлов: 22 добавлений и 22 удалений

Просмотреть файл

@ -374,7 +374,7 @@ imAccount.prototype = {
}
/* If the last successful connection is older than 10 seconds, reset the
number of reconnection attemps. */
number of reconnection attempts. */
const kTimeBeforeSuccessfulConnection = 10;
if (this.timeOfLastConnect &&
this.timeOfLastConnect + kTimeBeforeSuccessfulConnection * 1000 < Date.now()) {

Просмотреть файл

@ -92,7 +92,7 @@ function getDBConnection()
}
// Wrap all the usage of DBConn inside a transaction that will be
// commited automatically at the end of the event loop spin so that
// committed automatically at the end of the event loop spin so that
// we flush buddy list data to disk only once per event loop spin.
var gDBConnWithPendingTransaction = null;
Object.defineProperty(this, "DBConn", {
@ -1515,7 +1515,7 @@ ContactsService.prototype = {
statement.finalize();
}
// removing the account from the accounts table is not enought,
// removing the account from the accounts table is not enough,
// we need to remove all the associated account_buddy entries too
statement = DBConn.createStatement("DELETE FROM account_buddy " +
"WHERE account_id = :accountId");

Просмотреть файл

@ -73,7 +73,7 @@ function run_test() {
// particular, the name of the command and whether the first (i.e. preferred)
// entry in the returned array of commands is a prpl command. (If the latter
// boolean is not given, false is assumed, if the name is not given, that
// corresponds to no commmands being returned.)
// corresponds to no commands being returned.)
let testData = [
{
desc: "No conversation argument.",

Просмотреть файл

@ -770,7 +770,7 @@
<body>
<![CDATA[
if (this._scrollingIntoView) {
// We have explicitely requested a scrollIntoView, ignore the event
// We have explicitly requested a scrollIntoView, ignore the event.
this._scrollingIntoView = false;
this._lastScrollHeight = this.scrollHeight;
this._lastScrollWidth = this.scrollWidth;

Просмотреть файл

@ -17,8 +17,8 @@ error.tooLong=Status is over 140 characters.
error.general=An error %1$S occurred while sending: %2$S
error.retweet=An error %1$S occurred while retweeting: %2$S
error.delete=An error %1$S occurred while deleting: %2$S
error.like=An error %1$S occured while liking: %2$S
error.unlike=An error %1$S occured while unliking: %2$S
error.like=An error %1$S occurred while liking: %2$S
error.unlike=An error %1$S occurred while unliking: %2$S
# LOCALIZATION NOTE (error.descriptionTooLong)
# %S is the truncated string that was sent to the server.
error.descriptionTooLong=Description is over the maximum length (160 characters), it was automatically truncated to: %S.

Просмотреть файл

@ -11,7 +11,7 @@ this.EXPORTED_SYMBOLS = [
"createDerivedRuleset", // used to create a ruleset that inherits from the
// default one
// useful if you want to allow or forbid
// an additionnal thing in a specific
// an additional thing in a specific
// conversation but take into account all
// the other global settings.
"addGlobalAllowedTag",
@ -276,7 +276,7 @@ function cleanupNode(aNode, aRules, aTextModifiers)
// cleanup attributes
let attrs = node.attributes;
let acceptFunction = function(aAttrRules, aAttr) {
// an attribute is always accepted if its rule is true, or conditionnaly
// an attribute is always accepted if its rule is true, or conditionally
// accepted if its rule is a function that evaluates to true
// if its rule does not exist, it is refused
let localName = aAttr.localName;

Просмотреть файл

@ -16,7 +16,7 @@ this.EXPORTED_SYMBOLS = [
"smileImMarkup", // used to add smile:// img tags into IM markup.
"smileTextNode", // used to add smile:// img tags to the content of a textnode
"smileString", // used to add smile:// img tags into a string without parsing it as HTML. Be sure the string doesn't contain HTML tags.
"getSmileRealURI", // used to retrive the chrome URI for a smile:// URI
"getSmileRealURI", // used to retrieve the chrome URI for a smile:// URI
"getSmileyList" // used to display a list of smileys in the UI
];

Просмотреть файл

@ -145,7 +145,7 @@ function simpleCommand(aConv, aCommand, aParams) {
}
// Sends a CTCP message to aTarget using the CTCP command aCommand and aMsg as
// a CTCP paramter.
// a CTCP parameter.
function ctcpCommand(aConv, aTarget, aCommand, aParams) {
return getAccount(aConv).sendCTCPMessage(aTarget, false, aCommand, aParams);
}

Просмотреть файл

@ -29,7 +29,7 @@ function DCCMessage(aMessage, aAccount) {
try {
// Address, port and size should be treated as unsigned long, unsigned short
// and unsigned long, respectively. The protocol is designed to handle
// further arguements, if necessary.
// further arguments, if necessary.
message.ctcp.dcc = {
type: params[0],
argument: params[1],

Просмотреть файл

@ -27,7 +27,7 @@ ChromeUtils.import("resource:///modules/ircUtils.jsm");
* value The new value for the parameter.
*/
function isupportMessage(aMessage) {
// Seperate the ISUPPORT parameters.
// Separate the ISUPPORT parameters.
let tokens = aMessage.params.slice(1, -1);
let message = aMessage;

Просмотреть файл

@ -68,7 +68,7 @@ var ircNonStandard = {
}
// Some servers, e.g. irc.umich.edu, use NOTICE during connection
// negotation to give directions to users, these MUST be shown to the
// negotiation to give directions to users, these MUST be shown to the
// user. If the message starts with ***, we assume it is probably an AUTH
// message, which falls through to normal NOTICE processing.
// Note that if the user's nick is auth this COULD be a notice directed at

Просмотреть файл

@ -232,7 +232,7 @@ function conversationErrorMessage(aAccount, aMessage, aError,
// Channels have a couple extra things that can be done to them.
if (aAccount.isMUCName(aMessage.params[1])) {
// If a value for joining is explictly given, mark it.
// If a value for joining is explicitly given, mark it.
if (aJoinFailed)
conv.joining = false;
// If the conversation cannot be rejoined automatically, delete

Просмотреть файл

@ -419,7 +419,7 @@ SkypeAccount.prototype = {
// All done!
this._skypeToken = refreshToken;
this.LOG("Recevied Skype token: " + this._skypeToken);
this.LOG("Received Skype token: " + this._skypeToken);
if (this._registrationToken) {
// Subscribe to receive particular events.

Просмотреть файл

@ -152,7 +152,7 @@ var GenericTwitterConversation = {
this.writeMessage("twitter.com", aMessage, flags);
},
onSentCallback: function(aMsg, aData) {
// The conversation may have been unitialized in the time it takes for
// The conversation may have been uninitialized in the time it takes for
// the async callback to fire. Use `_observers` as a proxy for uninit'd.
if (!this._observers)
return;

Просмотреть файл

@ -235,7 +235,7 @@ const RFC3454 = {
// aLength in bytes.
function createNonce(aLength) {
// RFC 5802 (5.1): Printable ASCII except ",".
// We guarantee a vaild nonce value using base64 encoding.
// We guarantee a valid nonce value using base64 encoding.
return btoa(CryptoUtils.generateRandomBytes(aLength));
}

Просмотреть файл

@ -422,7 +422,7 @@ var XMPPMUCConversationPrototype = {
}
},
/* Called by the account when a messsage is received for this muc */
/* Called by the account when a message is received for this muc */
incomingMessage: function(aMsg, aStanza, aDate) {
let from = this._account._parseJID(aStanza.attributes["from"]).resource;
let id = aStanza.attributes["id"];
@ -757,7 +757,7 @@ var XMPPConversationPrototype = {
GenericConversationPrototype.prepareForDisplaying.apply(this, arguments);
},
/* Called by the account when a messsage is received from the buddy */
/* Called by the account when a message is received from the buddy */
incomingMessage: function(aMsg, aStanza, aDate) {
let from = aStanza.attributes["from"];
this._targetResource = this._account._parseJID(from).resource;
@ -2295,7 +2295,7 @@ var XMPPAccountPrototype = {
// aDomain is required, but aNode and aResource are optional.
_setJID: function(aDomain, aNode = null, aResource = null) {
if (!aDomain)
throw "aDomain must have a vaule";
throw "aDomain must have a value";
let result = {
node: aNode,
@ -2663,7 +2663,7 @@ var XMPPAccountPrototype = {
// This lets us preserve the fields that we don't change or don't know.
// Some servers may reject a new vCard if we don't do this first.
if (!this.hasOwnProperty("_userVCard")) {
// The download of the vCard is asyncronous and will call _sendVCard back
// The download of the vCard is asynchronous and will call _sendVCard back
// when the user's vCard has been received.
this._downloadUserVCard();
return;