From 5dddb902ac400ea1fbdc43b5cdf9ae4d3667a43d Mon Sep 17 00:00:00 2001 From: Thomas Egli Date: Wed, 21 Aug 2024 22:52:31 +0200 Subject: [PATCH] yfquotes@thegli: add individual quote design feature - implement new feature for individual design of each quote - changes in quotes list are not instantly applied anymore - update default value for User-Agent - correct minor translation flaws - ignore case on sorting quotes list --- yfquotes@thegli/README.md | 45 ++++ .../files/yfquotes@thegli/desklet.js | 221 ++++++++++++------ .../files/yfquotes@thegli/metadata.json | 2 +- .../files/yfquotes@thegli/po/ca.po | 47 ++-- .../files/yfquotes@thegli/po/da.po | 34 +-- .../files/yfquotes@thegli/po/de.po | 48 ++-- .../files/yfquotes@thegli/po/es.po | 34 +-- .../files/yfquotes@thegli/po/fi.po | 34 +-- .../files/yfquotes@thegli/po/hu.po | 34 +-- .../files/yfquotes@thegli/po/it.po | 34 +-- .../files/yfquotes@thegli/po/ko.po | 32 ++- .../files/yfquotes@thegli/po/nl.po | 34 +-- .../files/yfquotes@thegli/po/pt_BR.po | 34 +-- .../files/yfquotes@thegli/po/ro.po | 34 +-- .../files/yfquotes@thegli/po/ru.po | 34 +-- .../yfquotes@thegli/po/yfquotes@thegli.pot | 40 ++-- .../yfquotes@thegli/settings-schema.json | 12 +- 17 files changed, 495 insertions(+), 258 deletions(-) diff --git a/yfquotes@thegli/README.md b/yfquotes@thegli/README.md index a4aa3f1bb..b84935fe1 100644 --- a/yfquotes@thegli/README.md +++ b/yfquotes@thegli/README.md @@ -23,6 +23,36 @@ Either follow the installation instructions on [Cinnamon spices](https://cinnamo Check out the desklet configuration settings, and choose the data refresh period, the list of quotes to show, and quote details to display. The default list contains the Dow 30 companies. +### Individual Quote Design + +By default, all quotes in the list are rendered in the same style and color, following whatever settings are active and selected. +Optionally, the *name* and the *symbol* of each quote can have a custom design. These individual design settings override the global settings. They are configured with a set of text properties within the quotes list. + +The design properties are appended to the quote symbol in the format `property=value`. Each property/value pair is separated by a semicolon. Also insert a semicolon between the quote symbol and the first property. The order of the properties is irrelevant. +The full syntax: `SYMBOL;property1=value1;property2=value2` + +The following table explains all supported properties: + +| Property | Values | Description | +|---|---|---| +| color | any CSS color value | Text color for name and symbol | +| name | any text, except ';' | Custom name, overrides the original short/long name | +| style | normal, italic, oblique | Font style for name and symbol | +| weight | normal, bold, bolder, lighter, 100 - 900 | Font weight (thickness) for name and symbol | + +Some examples: + +``` +CAT;color=#f6d001;weight=500 +CSCO;name=Cisco;weight=bold;color=#00bceb +HD;color=#f96300 +MMM;name=Post-It Makers;color=#ff0000 +IBM;name=Big Blue;color=blue;weight=bolder +KO;name=Bubbly Brown Water;style=oblique;weight=lighter;color=#e61a27 +``` + +> Note that any changes in the quotes list are not applied immediately (anymore). Press the "Refresh quotes data" button to trigger a manual data update for the current quotes list. + ## Troubleshooting Problem: The desklet fails to load data, and shows error message "Status: 429 Too Many Requests". @@ -42,6 +72,21 @@ To disable the debug log mode, delete the "DEBUG" file, and restart the Cinnamon ## Release Notes +### 0.14.0 - August 21, 2024 + +Features: + +- style each quote individually - see section [Individual Quote Design](#individual-quote-design) for details +- add Catalan translation (courtesy of [Odyssey]((https://github.com/odyssey)) +- update Dutch translation (courtesy of [qadzek](https://github.com/qadzek)) +- update Hungarian translation (courtesy of [bossbob88](https://github.com/bossbob88)) +- update Spanish translation (courtesy of [haggen88](https://github.com/haggen88)) + +Bugfixes: + +- quotes list sorting is now case-insensitive +- changes in quotes list are not instantly applied anymore (preventing potential network congestion, and desktop instabilities) + ### 0.13.0 - July 10, 2024 Features: diff --git a/yfquotes@thegli/files/yfquotes@thegli/desklet.js b/yfquotes@thegli/files/yfquotes@thegli/desklet.js index 398e17126..f49953040 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/desklet.js +++ b/yfquotes@thegli/files/yfquotes@thegli/desklet.js @@ -105,15 +105,26 @@ YahooFinanceQuoteUtils.prototype = { && object[property] !== null; }, - determineQuoteName: function(quote, useLongName) { + determineQuoteName: function(quote, symbolCustomization, useLongName) { + if (symbolCustomization.name !== null) { + return symbolCustomization.name; + } + if (useLongName && this.existsProperty(quote, "longName")) { return quote.longName; - } else if (this.existsProperty(quote, "shortName")) { + } + + if (this.existsProperty(quote, "shortName")) { return quote.shortName; } + return ABSENT; }, + buildSymbolList: function(symbolCustomizationMap) { + return Array.from(symbolCustomizationMap.keys()).join(); + }, + isOkStatus: function(soupMessage) { if (soupMessage) { if (IS_SOUP_2) { @@ -144,7 +155,7 @@ YahooFinanceQuoteUtils.prototype = { reason = "Too Many Requests"; } } - + return status + " " + reason; } } @@ -303,15 +314,15 @@ YahooFinanceQuoteReader.prototype = { } }, - getFinanceData: function(quoteSymbols, customUserAgent, callback) { + getFinanceData: function(symbolList, customUserAgent, callback) { const _that = this; - - if (quoteSymbols.join().length === 0) { + + if (symbolList.size === 0) { callback.call(_that, _that.buildErrorResponse(_("Empty quotes list. Open settings and add some symbols."))); return; } - - const requestUrl = this.createYahooQueryUrl(quoteSymbols); + + const requestUrl = this.createYahooQueryUrl(symbolList); const message = Soup.Message.new("GET", requestUrl); if (IS_SOUP_2) { @@ -354,8 +365,8 @@ YahooFinanceQuoteReader.prototype = { } }, - createYahooQueryUrl: function(quoteSymbols) { - const queryUrl = "https://query1.finance.yahoo.com/v7/finance/quote?symbols=" + quoteSymbols.join() + "&crumb=" + _crumb; + createYahooQueryUrl: function(symbolList) { + const queryUrl = "https://query1.finance.yahoo.com/v7/finance/quote?symbols=" + symbolList + "&crumb=" + _crumb; logDebug("YF query URL: " + queryUrl); return queryUrl; }, @@ -389,24 +400,26 @@ QuotesTable.prototype = { EQUALS: "\u25B6" }, - render: function(quotes, settings) { + render: function(quotes, symbolCustomizationMap, settings) { for (let rowIndex = 0, l = quotes.length; rowIndex < l; rowIndex++) { - this.renderTableRow(quotes[rowIndex], rowIndex, settings); + this.renderTableRow(quotes[rowIndex], symbolCustomizationMap, settings, rowIndex); } }, - renderTableRow: function(quote, rowIndex, settings) { + renderTableRow: function(quote, symbolCustomizationMap, settings, rowIndex) { let cellContents = []; + const symbol = quote.symbol; + const symbolCustomization = symbolCustomizationMap.get(symbol); if (settings.changeIcon) { cellContents.push(this.createPercentChangeIcon(quote, settings)); } if (settings.quoteName) { - cellContents.push(this.createQuoteLabel(this.quoteUtils.determineQuoteName(quote, settings.useLongName), - quote.symbol, settings.quoteLabelWidth, settings)); + cellContents.push(this.createQuoteLabel(this.quoteUtils.determineQuoteName(quote, symbolCustomization, settings.useLongName), + symbolCustomization, settings.quoteLabelWidth, settings)); } if (settings.quoteSymbol) { - cellContents.push(this.createQuoteLabel(quote.symbol, quote.symbol, settings.quoteSymbolWidth, settings)); + cellContents.push(this.createQuoteLabel(symbol, symbolCustomization, settings.quoteSymbolWidth, settings)); } if (settings.marketPrice) { cellContents.push(this.createMarketPriceLabel(quote, settings)); @@ -429,19 +442,19 @@ QuotesTable.prototype = { } }, - createQuoteLabel: function(labelText, quoteSymbol, width, settings) { + createQuoteLabel: function(labelText, symbolCustomization, width, settings) { const label = new St.Label({ text: labelText, style_class: "quotes-label", reactive: settings.linkQuote, - style: "width:" + width + "em; " + this.buildFontStyle(settings) + style: "width:" + width + "em; " + this.buildCustomStyle(settings, symbolCustomization) }); if (settings.linkQuote) { const symbolButton = new St.Button(); symbolButton.add_actor(label); symbolButton.connect("clicked", Lang.bind(this, function() { - Gio.app_info_launch_default_for_uri(YF_QUOTE_PAGE_URL + quoteSymbol, global.create_app_launch_context()); + Gio.app_info_launch_default_for_uri(YF_QUOTE_PAGE_URL + symbolCustomization.symbol, global.create_app_launch_context()); })); return symbolButton; } else { @@ -499,7 +512,7 @@ QuotesTable.prototype = { return new St.Label({ text: iconText, - style: this.buildColorAttribute(iconColor) + this.buildFontSizeAttribute(settings.fontSize) + style: this.buildColorAttribute(iconColor, null) + this.buildFontSizeAttribute(settings.fontSize) }); }, @@ -521,7 +534,7 @@ QuotesTable.prototype = { ? (this.roundAmount(quote.regularMarketChangePercent, 2, settings.strictRounding) + "%") : ABSENT, style_class: "quotes-number", - style: this.buildColorAttribute(labelColor) + this.buildFontSizeAttribute(settings.fontSize) + style: this.buildColorAttribute(labelColor, null) + this.buildFontSizeAttribute(settings.fontSize) }); }, @@ -582,17 +595,32 @@ QuotesTable.prototype = { style: this.buildFontStyle(settings) }); }, - + buildFontStyle(settings) { - return this.buildColorAttribute(settings.fontColor) + this.buildFontSizeAttribute(settings.fontSize); + return this.buildColorAttribute(settings.fontColor, null) + this.buildFontSizeAttribute(settings.fontSize); }, - - buildColorAttribute(color) { - return "color: " + color + "; "; + + buildCustomStyle(settings, symbolCustomization) { + return this.buildColorAttribute(settings.fontColor, symbolCustomization.color) + + this.buildFontSizeAttribute(settings.fontSize) + + this.buildFontStyleAttribute(symbolCustomization.style) + + this.buildFontWeightAttribute(symbolCustomization.weight) + }, + + buildColorAttribute(globalColor, symbolColor) { + return "color: " + (symbolColor !== null ? symbolColor : globalColor) + "; "; }, - + buildFontSizeAttribute(fontSize) { return fontSize > 0 ? "font-size: " + fontSize + "px; " : ""; + }, + + buildFontStyleAttribute(fontStyle) { + return "font-style: " + fontStyle + "; "; + }, + + buildFontWeightAttribute(fontWeight) { + return "font-weight: " + fontWeight + "; "; } }; @@ -603,6 +631,8 @@ function StockQuoteDesklet(metadata, id) { StockQuoteDesklet.prototype = { __proto__: Desklet.Desklet.prototype, + quoteUtils: new YahooFinanceQuoteUtils(), + init: function(metadata, id) { this.metadata = metadata; this.id = id; @@ -646,11 +676,10 @@ StockQuoteDesklet.prototype = { this.onSettingsChanged, null); this.settings.bindProperty(Settings.BindingDirection.IN, "customDateFormat", "customDateFormat", this.onSettingsChanged, null); - this.settings.bindProperty(Settings.BindingDirection.IN, "quoteSymbols", "quoteSymbolsText", - this.onSettingsChanged, null); + this.settings.bindProperty(Settings.BindingDirection.IN, "quoteSymbols", "quoteSymbolsText"); // no instant-refresh on change this.settings.bindProperty(Settings.BindingDirection.IN, "sortCriteria", "sortCriteria", this.onSettingsChanged, null); - this.settings.bindProperty(Settings.BindingDirection.IN, "sortDirection", "sortDirection", + this.settings.bindProperty(Settings.BindingDirection.IN, "sortDirection", "sortAscending", this.onSettingsChanged, null); this.settings.bindProperty(Settings.BindingDirection.IN, "showChangeIcon", "showChangeIcon", this.onSettingsChanged, null); @@ -690,7 +719,7 @@ StockQuoteDesklet.prototype = { this.onSettingsChanged, null); }, - getQuoteDisplaySettings: function(quotes) { + getQuoteDisplaySettings: function(quotes, symbolCustomizationMap) { return { "changeIcon": this.showChangeIcon, "quoteName": this.showQuoteName, @@ -715,7 +744,7 @@ StockQuoteDesklet.prototype = { "downtrendChangeColor": this.downtrendChangeColor, "unchangedTrendColor": this.unchangedTrendColor, "quoteSymbolWidth": Math.max.apply(Math, quotes.map((quote) => quote.symbol.length)), - "quoteLabelWidth": Math.max.apply(Math, quotes.map((quote) => this.quoteUtils.determineQuoteName(quote, this.useLongQuoteName).length)) / 2 + 2 + "quoteLabelWidth": Math.max.apply(Math, quotes.map((quote) => this.quoteUtils.determineQuoteName(quote, symbolCustomizationMap.get(quote.symbol), this.useLongQuoteName).length)) / 2 + 2 }; }, @@ -740,13 +769,13 @@ StockQuoteDesklet.prototype = { reactive: this.manualDataUpdate, style: "color: " + settings.fontColor + "; " + (settings.fontSize > 0 ? "font-size: " + settings.fontSize + "px;" : "") }); - + if (this.manualDataUpdate) { const updateButton = new St.Button(); updateButton.add_actor(label); updateButton.connect("clicked", Lang.bind(this, function() { - this.removeUpdateTimer(); - this.onUpdate(); + this.removeUpdateTimer(); + this.onUpdate(); })); return updateButton; } else { @@ -769,9 +798,9 @@ StockQuoteDesklet.prototype = { setBackground: function() { this.mainBox.style = "background-color: " + this.buildBackgroundColor(this.backgroundColor, this.transparency); }, - + buildBackgroundColor: function(rgbColorString, transparencyFactor) { - // parse RGB values between "rgb(...)" + // parse RGB values between "rgb(...)" const rgb = rgbColorString.match(/\((.*?)\)/)[1].split(","); return "rgba(" + parseInt(rgb[0]) + "," + parseInt(rgb[1]) + "," + parseInt(rgb[2]) + "," + transparencyFactor + ")"; }, @@ -782,24 +811,60 @@ StockQuoteDesklet.prototype = { this.onUpdate(); }, + onQuotesListChanged: function() { + this.removeUpdateTimer(); + this.onUpdate(); + }, + on_desklet_removed: function() { this.unrender(); this.removeUpdateTimer(); }, onUpdate: function() { - const quoteSymbols = this.quoteSymbolsText.trim().split("\n"); + const symbolCustomizationMap = this.buildSymbolCustomizationMap(this.quoteSymbolsText); const customUserAgent = this.sendCustomUserAgent ? this.customUserAgent : null; try { if (_crumb) { - this.renderFinanceData(quoteSymbols, customUserAgent); + this.renderFinanceData(symbolCustomizationMap, customUserAgent); } else { - this.fetchCookieAndRender(quoteSymbols, customUserAgent); + this.fetchCookieAndRender(symbolCustomizationMap, customUserAgent); } } catch (err) { - this.onError(quoteSymbols, err); + this.onError(this.quoteUtils.buildSymbolList(symbolCustomizationMap), err); + } + }, + + buildSymbolCustomizationMap: function(quoteSymbolsText) { + const symbolCustomizations = new Map(); + for (const line of quoteSymbolsText.trim().split("\n")) { + const customization = this.createSymbolCustomization(line) + symbolCustomizations.set(customization.symbol, customization); + } + logDebug("symbol customization map size: " + symbolCustomizations.size) + + return symbolCustomizations; + }, + + createSymbolCustomization: function(symbolLine) { + const lineParts = symbolLine.trim().split(";"); + + const customAttributes = new Map(); + for (const attr of lineParts.slice(1)) { + const [key, value] = attr.split('='); + if (key && value) { + customAttributes.set(key, value); + } } + + return { + symbol: lineParts[0], + name: customAttributes.has("name") ? customAttributes.get("name") : null, + style: customAttributes.has("style") ? customAttributes.get("style") : "normal", + weight: customAttributes.has("weight") ? customAttributes.get("weight") : "normal", + color: customAttributes.has("color") ? customAttributes.get("color") : null, + }; }, existsCookie: function(name) { @@ -813,23 +878,23 @@ StockQuoteDesklet.prototype = { return false; }, - fetchCookieAndRender: function(quoteSymbols, customUserAgent) { + fetchCookieAndRender: function(symbolCustomizationMap, customUserAgent) { const _that = this; this.quoteReader.getCookie(customUserAgent, function(authResponseMessage, responseBody) { logDebug("Cookie response body: " + responseBody); if (_that.existsCookie(AUTH_COOKIE)) { - _that.fetchCrumbAndRender(quoteSymbols, customUserAgent); + _that.fetchCrumbAndRender(symbolCustomizationMap, customUserAgent); } else if (_that.existsCookie(CONSENT_COOKIE)) { - _that.processConsentAndRender(authResponseMessage, responseBody, quoteSymbols, customUserAgent); + _that.processConsentAndRender(authResponseMessage, responseBody, symbolCustomizationMap, customUserAgent); } else { logWarning("Failed to retrieve auth cookie!"); - _that.renderErrorMessage(_("Failed to retrieve authorization parameter! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(authResponseMessage)); + _that.renderErrorMessage(_("Failed to retrieve authorization parameter! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(authResponseMessage), symbolCustomizationMap); } }); }, - processConsentAndRender: function(authResponseMessage, consentPage, quoteSymbols, customUserAgent) { + processConsentAndRender: function(authResponseMessage, consentPage, symbolCustomizationMap, customUserAgent) { const _that = this; const formElementRegex = /(
)/; const formInputRegex = /()/g; @@ -846,19 +911,19 @@ StockQuoteDesklet.prototype = { this.quoteReader.postConsent(customUserAgent, consentFormFields, function(consentResponseMessage) { if (_that.existsCookie(AUTH_COOKIE)) { - _that.fetchCrumbAndRender(quoteSymbols, customUserAgent); + _that.fetchCrumbAndRender(symbolCustomizationMap, customUserAgent); } else { logWarning("Failed to retrieve auth cookie from consent form."); - _that.renderErrorMessage(_("Consent processing failed! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(consentResponseMessage)); + _that.renderErrorMessage(_("Consent processing failed! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(consentResponseMessage), symbolCustomizationMap); } }); } else { logWarning("Consent form not detected."); - this.renderErrorMessage(_("Consent processing not completed! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(authResponseMessage)); + this.renderErrorMessage(_("Consent processing not completed! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(authResponseMessage), symbolCustomizationMap); } }, - fetchCrumbAndRender: function(quoteSymbols, customUserAgent) { + fetchCrumbAndRender: function(symbolCustomizationMap, customUserAgent) { const _that = this; this.quoteReader.getCrumb(customUserAgent, function(crumbResponseMessage, responseBody) { @@ -873,28 +938,40 @@ StockQuoteDesklet.prototype = { if (_crumb) { logInfo("Successfully retrieved all authorization parameters."); - _that.renderFinanceData(quoteSymbols, customUserAgent); + _that.renderFinanceData(symbolCustomizationMap, customUserAgent); } else { logWarning("Failed to retrieve crumb!"); - _that.renderErrorMessage(_("Failed to retrieve authorization crumb! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(crumbResponseMessage)); + _that.renderErrorMessage(_("Failed to retrieve authorization crumb! Unable to fetch quotes data.\\nStatus: ") + _that.quoteUtils.getMessageStatusInfo(crumbResponseMessage), symbolCustomizationMap); } }); }, - renderFinanceData: function(quoteSymbols, customUserAgent) { + renderFinanceData: function(symbolCustomizationMap, customUserAgent) { const _that = this; - this.quoteReader.getFinanceData(quoteSymbols, customUserAgent, function(response) { + this.quoteReader.getFinanceData(this.quoteUtils.buildSymbolList(symbolCustomizationMap), customUserAgent, function(response) { logDebug("YF query response: " + response); let parsedResponse = JSON.parse(response); - _that.render([parsedResponse.quoteResponse.result, parsedResponse.quoteResponse.error]); + _that.render( + { + responseResult: parsedResponse.quoteResponse.result, + responseError: parsedResponse.quoteResponse.error, + symbolCustomization: symbolCustomizationMap + } + ); _that.setUpdateTimer(); }); }, - renderErrorMessage: function(errorMessage) { + renderErrorMessage: function(errorMessage, symbolCustomizationMap) { const errorResponse = JSON.parse(this.quoteReader.buildErrorResponse(errorMessage)); - this.render([errorResponse.quoteResponse.result, errorResponse.quoteResponse.error]); + this.render( + { + responseResult: errorResponse.quoteResponse.result, + responseError: errorResponse.quoteResponse.error, + symbolCustomization: symbolCustomizationMap + } + ); this.setUpdateTimer(); }, @@ -902,8 +979,8 @@ StockQuoteDesklet.prototype = { this.updateLoop = Mainloop.timeout_add(this.delayMinutes * 60 * 1000, Lang.bind(this, this.onUpdate)); }, - onError: function(quoteSymbols, err) { - logError(_("Cannot display quotes information for symbols: ") + quoteSymbols.join(",")); + onError: function(quotesList, err) { + logError(_("Cannot display quotes information for symbols: ") + quotesList); logError(_("The following error occurred: ") + err); }, @@ -912,15 +989,17 @@ StockQuoteDesklet.prototype = { return quotes; } + const _that = this; const clone = quotes.slice(0); + const numberPattern = /^-?\d+(\.\d+)?$/; clone.sort(function(q1, q2) { let p1 = ""; - if (q1.hasOwnProperty(prop) && typeof q1[prop] !== "undefined" && q1[prop] !== null) { - p1 = q1[prop].toString().match(/^\d+$/) ? + q1[prop] : q1[prop]; + if (_that.quoteUtils.existsProperty(q1, prop)) { + p1 = q1[prop].toString().match(numberPattern) ? + q1[prop] : q1[prop].toLowerCase(); } let p2 = ""; - if (q2.hasOwnProperty(prop) && typeof q2[prop] !== "undefined" && q2[prop] !== null) { - p2 = q2[prop].toString().match(/^\d+$/) ? + q2[prop] : q2[prop]; + if (_that.quoteUtils.existsProperty(q2, prop)) { + p2 = q2[prop].toString().match(numberPattern) ? + q2[prop] : q2[prop].toLowerCase(); } return ((p1 < p2) ? -1 : ((p1 > p2) ? 1 : 0)) * direction; @@ -928,24 +1007,28 @@ StockQuoteDesklet.prototype = { return clone; }, - render: function(quotes) { + render: function(responses) { const tableContainer = new St.BoxLayout({ vertical: true }); + let responseResult = responses.responseResult; + const responseError = responses.responseError; + const symbolCustomizationMap = responses.symbolCustomization; + // optional sort if (this.sortCriteria && this.sortCriteria !== "none") { - quotes[0] = this.sortByProperty(quotes[0], this.sortCriteria, this.sortDirection ? 1 : -1); + responseResult = this.sortByProperty(responseResult, this.sortCriteria, this.sortAscending ? 1 : -1); } // in case of errors, show details - if (quotes[1] !== null) { - tableContainer.add_actor(this.createErrorLabel(quotes[1])); + if (responseError !== null) { + tableContainer.add_actor(this.createErrorLabel(responseError)); } const table = new QuotesTable(); - const settings = this.getQuoteDisplaySettings(quotes[0]); - table.render(quotes[0], settings); + const settings = this.getQuoteDisplaySettings(responseResult, symbolCustomizationMap); + table.render(responseResult, symbolCustomizationMap, settings); tableContainer.add_actor(table.el); if (this.showLastUpdateTimestamp) { diff --git a/yfquotes@thegli/files/yfquotes@thegli/metadata.json b/yfquotes@thegli/files/yfquotes@thegli/metadata.json index ca38ed7fd..0ad7cf748 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/metadata.json +++ b/yfquotes@thegli/files/yfquotes@thegli/metadata.json @@ -3,6 +3,6 @@ "name": "Yahoo Finance Quotes", "prevent-decorations": true, "max-instances": "10", - "version": "0.13.0", + "version": "0.14.0", "uuid": "yfquotes@thegli" } diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/ca.po b/yfquotes@thegli/files/yfquotes@thegli/po/ca.po index 3be498871..132e71bc9 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/ca.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/ca.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: yfquotes@thegli 0.13.0\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2024-07-27 03:39+0200\n" "Last-Translator: Odyssey \n" "Language-Team: \n" @@ -18,24 +18,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.4.2\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" "Llista de cometes buida. Obriu la configuració i afegiu-hi alguns símbols." -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "El servei de Yahoo finances no està disponible!\\nEstat: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Actualitzat a les " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Error: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " @@ -43,20 +43,20 @@ msgstr "" "Error en recuperar el paràmetre d'autorització. No s'han pogut obtenir les " "dades de les cotitzacions.\\nEstat: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" -"No s'ha pogut processar el consentiment! No s'han pogut obtenir les dades " -"de les cotitzacions.\\nEstat: " +"No s'ha pogut processar el consentiment! No s'han pogut obtenir les dades de " +"les cotitzacions.\\nEstat: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" "No s'ha completat el processament del consentiment. No s'han pogut obtenir " "les dades de les cotitzacions.\\nEstat: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " @@ -64,11 +64,11 @@ msgstr "" "No s'ha pogut recuperar la ruta d'autorització! No s'han pogut obtenir les " "dades de les cotitzacions.\\nEstat: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "No es pot mostrar la informació de les cotitzacions pels símbols: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "Hi ha hagut el següent error: " @@ -77,8 +77,8 @@ msgid "" "Displays financial market information such as stock quotes and commodity " "prices from Yahoo Finance" msgstr "" -"Mostra informació sobre mercats financers, com cotitzacions de borsa i " -"preus de matèries primeres de Yahoo Finances" +"Mostra informació sobre mercats financers, com cotitzacions de borsa i preus " +"de matèries primeres de Yahoo Finances" #. metadata.json->name msgid "Yahoo Finance Quotes" @@ -255,8 +255,8 @@ msgstr "Capçalera User-Agent personalitzada" #. settings-schema.json->customUserAgent->tooltip msgid "Value for User-Agent header to send with all API requests" msgstr "" -"Valor de la capçalera User-Agent que s'enviarà amb totes les sol·licituds " -"de l'API" +"Valor de la capçalera User-Agent que s'enviarà amb totes les sol·licituds de " +"l'API" #. settings-schema.json->roundNumbers->description msgid "Round numbers" @@ -345,6 +345,14 @@ msgstr "Símbols de cotització" msgid "List of quote symbols, separated with line-breaks" msgstr "Llista de símbols de cotització, separats per salts de línia" +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "ordre donat" @@ -463,9 +471,8 @@ msgid "Show percent change" msgstr "Mostrar canvi percentual" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" -msgstr "" -"Mostra la variació percentual del preu de mercat (per exemple, +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" +msgstr "Mostra la variació percentual del preu de mercat (per exemple, -0.53%)" #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/da.po b/yfquotes@thegli/files/yfquotes@thegli/po/da.po index 493311c53..d18e62418 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/da.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/da.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2023-12-08 08:06+0100\n" "Last-Translator: Alan Mortensen \n" "Language-Team: \n" @@ -18,23 +18,23 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.0.1\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Yahoo Finance er ikke tilgængelig!\\nStatus: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Opdateret " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Fejl: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " @@ -42,28 +42,28 @@ msgstr "" "Kunne ikke hente godkendelsesparameter! Kunne ikke hente kursdata.\n" "Status: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "Samtykkebehandling mislykkedes! Kunne ikke hente kursdata.\\nStatus: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Samtykkebehandling ikke gennemført! Kunne ikke hente kursdata.\\nStatus: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " msgstr "" "Kunne ikke hente godkendelseskrumme! Kunne ikke hente kursdata.\\nStatus: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Kan ikke vise kurser for symbolerne: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "Følgende fejl opstod: " @@ -320,6 +320,14 @@ msgstr "Selskabskoder" msgid "List of quote symbols, separated with line-breaks" msgstr "Liste over selskabskoder, adskilt af linjeskift." +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "givne rækkefølge" @@ -436,8 +444,8 @@ msgid "Show percent change" msgstr "Vis procentvis ændring" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" -msgstr "Viser ændringen af markedsprisen i procent (f.eks. + 0.12%)." +msgid "Display the percent change of the market price (eg. -0.53%)" +msgstr "Viser ændringen af markedsprisen i procent (f.eks. - 0.53%)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/de.po b/yfquotes@thegli/files/yfquotes@thegli/po/de.po index 4e0de9c21..a79f79c21 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/de.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/de.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2023-08-28 16:36+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,24 +17,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.3\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" "Liste der Symbole ist leer. Öffne die Einstellungen und füge Symbole hinzu." -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Yahoo Finance Service nicht verfügbar!\\nStatus: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Aktualisiert um " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Fehler: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " @@ -42,20 +42,20 @@ msgstr "" "Empfang von Autorisierungsparameter ist fehlgeschlagen! Finanzdaten-Abfrage " "nicht möglich.\\nStatus: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Consent-Erteilung ist fehlgeschlagen! Finanzdaten-Abfrage nicht möglich." "\\nStatus: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Consent-Erteilung nicht abgeschlossen! Finanzdaten-Abfrage nicht möglich." "\\nStatus: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " @@ -63,11 +63,11 @@ msgstr "" "Emfang von Autorisierungs-Crumb ist fehlgeschlagen! Finanzdaten-Abfrage " "nicht möglich.\\nStatus: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Finanzdaten können nicht angezeigt werden für die Symbole: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "Folgender Fehler ist aufgetreten: " @@ -235,7 +235,7 @@ msgstr "" #. settings-schema.json->sendCustomUserAgent->description msgid "Send custom User-Agent header" -msgstr "Sende individuellen User-Agent Header" +msgstr "Individuellen User-Agent Header senden" #. settings-schema.json->sendCustomUserAgent->tooltip msgid "" @@ -275,7 +275,7 @@ msgstr "Anzahl der Dezimalstellen nach dem Komma, auf die gerundet wird" #. settings-schema.json->strictRounding->description msgid "Strict rounding" -msgstr "Runden auf feste Anzahl Dezimalstellen" +msgstr "Auf feste Anzahl Dezimalstellen runden" #. settings-schema.json->strictRounding->tooltip msgid "" @@ -340,6 +340,14 @@ msgstr "Finanzinstrument-Symbole" msgid "List of quote symbols, separated with line-breaks" msgstr "Liste der Symbole von Finanzinstrumenten, durch Zeilenumbruch getrennt" +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "Finanzdaten aktualisieren" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "Geänderte Finanzdaten aktualisieren" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "Vorgegebene Reihenfolge" @@ -366,7 +374,7 @@ msgstr "Sortieren der Liste der Finanzinstrumente" #. settings-schema.json->sortDirection->description msgid "Sort in ascending order" -msgstr "Sortiert in absteigender Reihenfolge" +msgstr "In absteigender Reihenfolge sortieren" #. settings-schema.json->sortDirection->tooltip msgid "" @@ -396,7 +404,7 @@ msgstr "" #. settings-schema.json->useLongQuoteName->description msgid "Use long version for verbose name" -msgstr "Verwende die längere Version des Namens" +msgstr "Längere Version des Namens verwenden" #. settings-schema.json->useLongQuoteName->tooltip msgid "" @@ -436,7 +444,7 @@ msgstr "Marktpreis anzeigen" #. settings-schema.json->showMarketPrice->tooltip msgid "Display the current market price (eg. 146.79)" -msgstr "Zeigt den aktuellen Marktpreis an (z.B. 146.79)" +msgstr "Zeigt den aktuellen Marktpreis an (z.B. 146,79)" #. settings-schema.json->showCurrencyCode->description msgid "Show currency symbol" @@ -452,19 +460,19 @@ msgstr "Absolute Veränderung anzeigen" #. settings-schema.json->showAbsoluteChange->tooltip msgid "Display the absolute change of the market price (eg. +0.739)" -msgstr "Zeigt die absolute Veränderung des Marktpreises an (z.B. +0.739)" +msgstr "Zeigt die absolute Veränderung des Marktpreises an (z.B. +0,739)" #. settings-schema.json->showPercentChange->description msgid "Show percent change" msgstr "Prozentuale Veränderung anzeigen" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" -msgstr "Zeigt die relative Veränderung des Marktpreises an (z.B. +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" +msgstr "Zeigt die relative Veränderung des Marktpreises an (z.B. -0,53%)" #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" -msgstr "Verwende Trend-Farben bei prozentualer Veränderung" +msgstr "Trend-Farben bei prozentualer Veränderung anwenden" #. settings-schema.json->colorPercentChange->tooltip msgid "Color the percent change to show the trend" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/es.po b/yfquotes@thegli/files/yfquotes@thegli/po/es.po index 0395d5424..f49f6be24 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/es.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/es.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2024-07-10 19:09-0400\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,24 +17,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.4.4\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" "Lista de comillas vacía. Abra la configuración y añada algunos símbolos." -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "El servicio de Yahoo Finanzas no está disponible: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Actualizado en " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Error: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " @@ -42,20 +42,20 @@ msgstr "" "Error al recuperar el parámetro de autorización. No se han podido recuperar " "los datos de las cotizaciones: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" "No se ha podido procesar el consentimiento. No se han podido recuperar los " "datos de las cotizaciones: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" "No se ha completado el procesamiento del consentimiento. No se han podido " "recuperar los datos de las cotizaciones: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " @@ -63,11 +63,11 @@ msgstr "" "¡No se pudo recuperar la ruta de autorización! No se pueden recuperar los " "datos de las cotizaciones: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "No se puede mostrar información de cotizaciones para los símbolos: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "El siguiente error ha ocurrido: " @@ -346,6 +346,14 @@ msgstr "Símbolos de cotización" msgid "List of quote symbols, separated with line-breaks" msgstr "Lista de símbolos de cotización, separados por saltos de línea" +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "orden dado" @@ -465,9 +473,9 @@ msgid "Show percent change" msgstr "Mostrar cambio porcentual" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" msgstr "" -"Muestra la variación porcentual del precio de mercado (por ejemplo, +0,53%)." +"Muestra la variación porcentual del precio de mercado (por ejemplo, -0,53%)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/fi.po b/yfquotes@thegli/files/yfquotes@thegli/po/fi.po index 2ce2d8c37..057d54ba1 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/fi.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/fi.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2023-12-22 11:33+0200\n" "Last-Translator: Kimmo Kujansuu \n" "Language-Team: \n" @@ -18,48 +18,48 @@ msgstr "" "X-Generator: Poedit 2.3\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Yahoo Finance palvelu ei ole saatavilla!\\nTila: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Päivitetty klo " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Virhe: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " msgstr "Valtuutuksen haku epäonnistui! Tietoja ei voi noutaa.\\nTila: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "Suostumuksen käsittely epäonnistui! Tietoja ei voi noutaa.\\nTila: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "Suostumusta ei ole suoritettu loppuun! Tietoja ei voi noutaa.\\nTila: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " msgstr "Valtuutuksen nouto epäonnistui! Tietoja ei voi noutaa.\\nTila: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Symbolien tietoja ei voi näyttää: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "Tapahtui seuraava virhe: " @@ -315,6 +315,14 @@ msgstr "Pörssi symbolit" msgid "List of quote symbols, separated with line-breaks" msgstr "Luettelo pörssi tunnuksista, erotetaan rivinvaihdoilla." +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "annettu järjestys" @@ -433,8 +441,8 @@ msgid "Show percent change" msgstr "Näytä muutosposentti" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" -msgstr "Tuo näkyviin markkinahinnan prosentuaalisen muutoksen (esim. +0.53 %)." +msgid "Display the percent change of the market price (eg. -0.53%)" +msgstr "Tuo näkyviin markkinahinnan prosentuaalisen muutoksen (esim. -0.53 %)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/hu.po b/yfquotes@thegli/files/yfquotes@thegli/po/hu.po index e41418ed3..25bdad21c 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/hu.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/hu.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: yfquotes@thegli 0.13.0\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2024-07-26 07:12-0400\n" "Last-Translator: \n" "Language-Team: \n" @@ -18,25 +18,25 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.0.1\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" "Üres idézetek listája. Nyissa meg a beállításokat, és adjon hozzá néhány " "szimbólumot." -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "A Yahoo Finance szolgáltatás pillanatnyilag nem érhető el.\\nÁllapot: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Frissítve: " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Hiba: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " @@ -44,20 +44,20 @@ msgstr "" "Nem sikerült lekérni az engedélyezési paramétert. Nem sikerült letölteni a " "pénzügyi adatokat.\\nÁllapot: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Az engedélykezelés nem sikerült. Nem sikerült letölteni a pénzügyi adatokat." "\\nÁllapot: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Az engedélykezelés nem fejeződött be. Nem sikerült letölteni a pénzügyi " "adatokat.\\nÁllapot: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " @@ -65,11 +65,11 @@ msgstr "" "Nem sikerült lekérni az engedély-sütit. Nem sikerült letölteni a pénzügyi " "adatokat.\\nÁllapot: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Nem jeleníthetőek meg megállapítások a következő szimbólumokhoz: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "A következő hiba történt: " @@ -342,6 +342,14 @@ msgstr "Szimbólumok" msgid "List of quote symbols, separated with line-breaks" msgstr "Szimbólumok listájának megjelenítése itt, sortörésekkel elválasztva" +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "megadott sorrend" @@ -462,9 +470,9 @@ msgid "Show percent change" msgstr "Százalékos változás megjelenítése" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" msgstr "" -"Piaci ár változásának százalékos értékének megjelenítése (például: +0,53%)." +"Piaci ár változásának százalékos értékének megjelenítése (például: -0,53%)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/it.po b/yfquotes@thegli/files/yfquotes@thegli/po/it.po index 9b0580a69..b46d286cc 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/it.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/it.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2023-12-12 19:02+0100\n" "Last-Translator: Dragone2 \n" "Language-Team: \n" @@ -18,23 +18,23 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.0.1\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Il servizio Yahoo Finance non è disponibile!\\nStato: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Aggiornato al " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Errore: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " @@ -42,20 +42,20 @@ msgstr "" "Impossibile recuperare il parametro di autorizzazione! Impossibile " "recuperare i dati delle quotazioni.\\nStato: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Elaborazione del consenso non riuscita! Impossibile recuperare i dati delle " "quotazioni.\\nStato: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Elaborazione del consenso non completata! Impossibile recuperare i dati " "delle quotazioni.\\nStato: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " @@ -63,11 +63,11 @@ msgstr "" "Impossibile recuperare la parte di autorizzazione! Impossibile recuperare i " "dati delle quotazioni.\\nStato: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Impossibile mostrare info sulle quotazioni per i simboli: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "È stato riscontrato il seguente errore: " @@ -326,6 +326,14 @@ msgid "List of quote symbols, separated with line-breaks" msgstr "" "Elenca i simboli delle quotazioni qui, separandole con interruzioni di riga." +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "ordine fornito" @@ -444,9 +452,9 @@ msgid "Show percent change" msgstr "Mostra variazione percentuale" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" msgstr "" -"Visualizza la variazione percentuale del prezzo di mercato (es. + 0,53%)." +"Visualizza la variazione percentuale del prezzo di mercato (es. - 0,53%)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/ko.po b/yfquotes@thegli/files/yfquotes@thegli/po/ko.po index cd199732c..1a1929315 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/ko.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/ko.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Yahoo Finance Quotes Desklet\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -17,48 +17,48 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.3\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Yahoo Finance 서비스를 사용할 수 없습니다!" -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "업데이트 날짜 " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "오류: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "기호에 대한 따옴표 정보를 표시 할 수 없습니다. " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "다음 오류가 발생했습니다. " @@ -310,6 +310,14 @@ msgstr "종목코드 : 종목코드 + .KS(코스피) 또는 .KQ(코스닥)" msgid "List of quote symbols, separated with line-breaks" msgstr "여기에 따옴표를 줄 바꿈으로 구분하여 나열하십시오." +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "주어진 명령" @@ -425,7 +433,7 @@ msgid "Show percent change" msgstr "변화율 표시" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" msgstr "시장 가격의 백분율 변화를 표시합니다 (예 : + 0.53 %)." #. settings-schema.json->colorPercentChange->description diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/nl.po b/yfquotes@thegli/files/yfquotes@thegli/po/nl.po index 6c526fd0f..1a1410d0c 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/nl.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/nl.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: yfquotes@thegli 0.11.0\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2024-07-23 23:13+0200\n" "Last-Translator: qadzek\n" "Language-Team: \n" @@ -16,23 +16,23 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "Lege lijst van koersen. Open instellingen en voeg wat symbolen toe." -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Yahoo Finance service niet beschikbaar!\\nStatus: " -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Bijgewerkt om " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Fout: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " @@ -40,20 +40,20 @@ msgstr "" "Kan autorisatieparameter niet ophalen! Kan geen gegevens voor koersen " "ophalen.\\nStatus: " -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Toestemming verwerking mislukt! Kan geen gegevens voor koersen ophalen." "\\nStatus: " -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" "Toestemming verwerking niet voltooid! Kan geen gegevens voor koersen ophalen." "\\nStatus: " -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " @@ -61,11 +61,11 @@ msgstr "" "Kan autorisatiekruimel niet ophalen! Kan geen gegevens voor koersen ophalen." "\\nStatus: " -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Kan geen koersinformatie weergeven voor symbolen: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "De volgende fout is opgetreden: " @@ -339,6 +339,14 @@ msgstr "Koerssymbolen" msgid "List of quote symbols, separated with line-breaks" msgstr "Lijst met koerssymbolen, gescheiden door regelafbrekingen" +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "gegeven volgorde" @@ -455,8 +463,8 @@ msgid "Show percent change" msgstr "Toon procentuele verandering" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" -msgstr "Toon de procentuele verandering van de marktprijs (bijv. +0,53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" +msgstr "Toon de procentuele verandering van de marktprijs (bijv. -0,53%)" #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/pt_BR.po b/yfquotes@thegli/files/yfquotes@thegli/po/pt_BR.po index cccc9d2da..55b9b2f34 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/pt_BR.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/pt_BR.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2021-09-30 13:34-0300\n" "Last-Translator: Marcelo Aof\n" "Language-Team: \n" @@ -18,48 +18,48 @@ msgstr "" "X-Generator: Poedit 3.0\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "O serviço de finanças do Yahoo não está disponível!" -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Atualizado em " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Erro: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Não é possível exibir dados financeiros para as cotações de: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "O seguinte erro ocorreu: " @@ -316,6 +316,14 @@ msgstr "Códigos das ações" msgid "List of quote symbols, separated with line-breaks" msgstr "Lista de códigos das ações. Um código por linha." +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "linhas digitadas por você" @@ -435,8 +443,8 @@ msgid "Show percent change" msgstr "Mostrar a porcentagem da mudança" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" -msgstr "Exibe a variação percentual do preço da ação (por exemplo: +0,53%)." +msgid "Display the percent change of the market price (eg. -0.53%)" +msgstr "Exibe a variação percentual do preço da ação (por exemplo: -0,53%)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/ro.po b/yfquotes@thegli/files/yfquotes@thegli/po/ro.po index ba26c3dca..5cfbcdcad 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/ro.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/ro.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: 2023-07-19 22:16+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -18,48 +18,48 @@ msgstr "" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Serviciul Yahoo Finance nu este disponibil!" -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Actualizat la" -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Eroare:" -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Nu se pot afișa informații privind cotațiile pentru simboluri:" -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "A apărut următoarea eroare:" @@ -319,6 +319,14 @@ msgstr "Simboluri de cotații" msgid "List of quote symbols, separated with line-breaks" msgstr "Listă de simboluri de cotații, separate prin întreruperi de linie." +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "ordin dat" @@ -437,9 +445,9 @@ msgid "Show percent change" msgstr "Afișează modificarea procentuală" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" msgstr "" -"Afișează modificarea procentuală a prețului de piață (de exemplu, +0,53%)." +"Afișează modificarea procentuală a prețului de piață (de exemplu, -0,53%)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/ru.po b/yfquotes@thegli/files/yfquotes@thegli/po/ru.po index 61ceabca1..b5bd25b36 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/ru.po +++ b/yfquotes@thegli/files/yfquotes@thegli/po/ru.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -17,48 +17,48 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.3\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "Сервис Yahoo Finance не доступен!" -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "Обновлено в " -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "Ошибка: " -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "Невозможно отобразить информацию о котировках для биржевых символов: " -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "Произошла ошибка: " @@ -314,6 +314,14 @@ msgid "List of quote symbols, separated with line-breaks" msgstr "" "Список биржевых символов (тикеров) котировок, разделенных новой строкой." +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "не сортировать" @@ -435,8 +443,8 @@ msgid "Show percent change" msgstr "Показывать изменения в процентах" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" -msgstr "Отображение изменений рыночной цены в процентах (например, +0.53%)." +msgid "Display the percent change of the market price (eg. -0.53%)" +msgstr "Отображение изменений рыночной цены в процентах (например, -0.53%)." #. settings-schema.json->colorPercentChange->description msgid "Use trend colors for percent change" diff --git a/yfquotes@thegli/files/yfquotes@thegli/po/yfquotes@thegli.pot b/yfquotes@thegli/files/yfquotes@thegli/po/yfquotes@thegli.pot index 0ae8414b3..55ea5cda7 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/po/yfquotes@thegli.pot +++ b/yfquotes@thegli/files/yfquotes@thegli/po/yfquotes@thegli.pot @@ -5,60 +5,60 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: yfquotes@thegli 0.13.0\n" +"Project-Id-Version: yfquotes@thegli 0.14.0\n" "Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" "issues\n" -"POT-Creation-Date: 2024-07-10 00:38+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2024-08-21 22:58+0200\n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: desklet.js:310 +#. desklet.js:321 msgid "Empty quotes list. Open settings and add some symbols." msgstr "" -#: desklet.js:332 desklet.js:351 +#. desklet.js:343 desklet.js:362 msgid "Yahoo Finance service not available!\\nStatus: " msgstr "" -#: desklet.js:738 +#. desklet.js:767 msgid "Updated at " msgstr "" -#: desklet.js:759 +#. desklet.js:788 msgid "Error: " msgstr "" -#: desklet.js:827 +#. desklet.js:892 msgid "" "Failed to retrieve authorization parameter! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:852 +#. desklet.js:917 msgid "Consent processing failed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:857 +#. desklet.js:922 msgid "" "Consent processing not completed! Unable to fetch quotes data.\\nStatus: " msgstr "" -#: desklet.js:879 +#. desklet.js:944 msgid "" "Failed to retrieve authorization crumb! Unable to fetch quotes data." "\\nStatus: " msgstr "" -#: desklet.js:906 +#. desklet.js:983 msgid "Cannot display quotes information for symbols: " msgstr "" -#: desklet.js:907 +#. desklet.js:984 msgid "The following error occurred: " msgstr "" @@ -309,6 +309,14 @@ msgstr "" msgid "List of quote symbols, separated with line-breaks" msgstr "" +#. settings-schema.json->updateDataButton->description +msgid "Refresh quotes data" +msgstr "" + +#. settings-schema.json->updateDataButton->tooltip +msgid "Apply and refresh quotes" +msgstr "" + #. settings-schema.json->sortCriteria->options msgid "given order" msgstr "" @@ -421,7 +429,7 @@ msgid "Show percent change" msgstr "" #. settings-schema.json->showPercentChange->tooltip -msgid "Display the percent change of the market price (eg. +0.53%)" +msgid "Display the percent change of the market price (eg. -0.53%)" msgstr "" #. settings-schema.json->colorPercentChange->description diff --git a/yfquotes@thegli/files/yfquotes@thegli/settings-schema.json b/yfquotes@thegli/files/yfquotes@thegli/settings-schema.json index e4b78ba9a..1b8762028 100644 --- a/yfquotes@thegli/files/yfquotes@thegli/settings-schema.json +++ b/yfquotes@thegli/files/yfquotes@thegli/settings-schema.json @@ -25,7 +25,7 @@ "dataSymbolsSection": { "type": "section", "title": "Quotes", - "keys": ["quoteSymbols"] + "keys": ["quoteSymbols","updateDataButton"] }, "dataUpdateSection": { "type": "section", @@ -165,7 +165,7 @@ }, "customUserAgent": { "type": "entry", - "default": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0", + "default": "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0", "description": "Custom User-Agent header", "tooltip": "Value for User-Agent header to send with all API requests", "dependency": "sendCustomUserAgent" @@ -219,6 +219,12 @@ "description": "Quote symbols", "tooltip": "List of quote symbols, separated with line-breaks" }, + "updateDataButton": { + "type": "button", + "callback": "onQuotesListChanged", + "description": "Refresh quotes data", + "tooltip": "Apply and refresh quotes" + }, "sortCriteria": { "type": "radiogroup", "default": "none", @@ -300,7 +306,7 @@ "type": "checkbox", "default": true, "description": "Show percent change", - "tooltip": "Display the percent change of the market price (eg. +0.53%)" + "tooltip": "Display the percent change of the market price (eg. -0.53%)" }, "colorPercentChange": { "type": "checkbox",