Skip to content

Commit

Permalink
Merge pull request #181 from jeevatkm/v3.3.0-development
Browse files Browse the repository at this point in the history
for v3.3.0
  • Loading branch information
jeevatkm authored Oct 24, 2024
2 parents cffbed9 + a99e13d commit 7c503e5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<p align="center">Outlook style headers and few goodies for Thunderbird</p>
</p>
<p align="center">
<a href="https://github.com/jeevatkm/ReplyWithHeaderMozilla/releases/latest" alt="Version"><img src="https://img.shields.io/badge/version-3.2.0-blue.svg" alt="Version" /></a> <a href="LICENSE" alt="LICENSE"><img src="https://img.shields.io/github/license/jeevatkm/ReplyWithHeaderMozilla.svg" alt="LICENSE" /></a> <a href="http://myjeeva.com/replywithheader-mozilla" alt"Home page"><img src="https://img.shields.io/badge/Homepage-blue" alt"Home page" /> </a>
<a href="https://github.com/jeevatkm/ReplyWithHeaderMozilla/releases/latest" alt="Version"><img src="https://img.shields.io/badge/version-3.3.0-blue.svg" alt="Version" /></a> <a href="LICENSE" alt="LICENSE"><img src="https://img.shields.io/github/license/jeevatkm/ReplyWithHeaderMozilla.svg" alt="LICENSE" /></a> <a href="http://myjeeva.com/replywithheader-mozilla" alt"Home page"><img src="https://img.shields.io/badge/Homepage-blue" alt"Home page" /> </a>
</p>

## Download
Expand Down
13 changes: 10 additions & 3 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,17 @@ async function detectLocaleAndSetAsDefault() {
}

let uiLocale = messenger.i18n.getUILanguage();
let selected = rwhI18n.i18n.lang[uiLocale] ?? 'en-US';
let selected = rwhI18n.i18n.lang[uiLocale];
rwhLogger.debug('uiLocale:', uiLocale, 'selected:', selected);
if (typeof selected === 'undefined') {
rwhLogger.info(`Currently does not have support for locale '${uiLocale}', fallback to 'en-US'`);
await rwhSettings.set('header.locale', 'en-US');
return;
}

let currentLocale = await rwhSettings.getHeaderLocale();
rwhLogger.debug('currentLocale:', currentLocale, 'uiLocale:', uiLocale, 'selected:', selected);
if (selected !== 'undefined' && currentLocale !== uiLocale) {
rwhLogger.debug('currentLocale:', currentLocale);
if (currentLocale !== uiLocale) {
await rwhSettings.set('header.locale', uiLocale);
}
}
Expand Down
Binary file modified images/rwh-features.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "ReplyWithHeader",
"description": "Outlook style headers and few goodies for Thunderbird",
"version": "3.2.0",
"version": "3.3.0",
"author": "Jeevanandam M.",
"homepage_url": "https://myjeeva.com/replywithheader-mozilla",
"browser_specific_settings": {
Expand Down
2 changes: 1 addition & 1 deletion options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<img id="identitySelectImg" src='/images/mail-identities.svg' width='21' height='21' title="Mail Account Identities" />
<div id="multiselectIdentity" class="multiselect">
<div id="selectBox" class="selectBox">
<select><option>Select an Identities</option></select>
<select><option>Select Identities</option></select>
<div class="overSelect"></div>
</div>
<div id="multiselectCheckboxes"></div>
Expand Down

0 comments on commit 7c503e5

Please sign in to comment.