Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize add-on & add features for menu display #17

Merged
merged 35 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9ea02aa
feat: localize options page
rugk Nov 28, 2020
e09ba85
refactor: minor changes recommend by eslint
rugk Nov 28, 2020
c101989
i18n: put menu strings into en.json
rugk Dec 2, 2020
cb6c3ee
refactor: one line per item
rugk Dec 2, 2020
b8307af
refactor: font character
rugk Dec 2, 2020
3aeec08
refactor: make it use the localisation, actually
rugk Feb 28, 2021
e88963e
chore: unify style
rugk Feb 28, 2021
bc236ce
refactor: use prefix to differenciate casing and fonts
rugk Feb 28, 2021
b10ecc5
refactor: use prefix when creating IDs
rugk Feb 28, 2021
a8fedf1
refactor: simplify creation of menu
rugk Feb 28, 2021
5cc97d8
refactor: extract own context menu module
rugk Feb 28, 2021
bb05270
style: rename some stuff
rugk Feb 28, 2021
3953056
refactor: move modules not needed anywhere else to single place
rugk Feb 28, 2021
e574f0c
refactor: rename and remove duplicate code
rugk Feb 28, 2021
4f547bc
translation: add German translations for context menu entries
rugk Feb 28, 2021
dc87791
translation: remove duplicate entry
rugk Feb 28, 2021
d280858
fix(options): fix options loading
rugk Feb 28, 2021
f544202
fix: do not add suberflous separators
rugk Feb 28, 2021
bc68386
feat: allow showing the plain tzext of a transformation
rugk Feb 28, 2021
a2cb769
style: fix order of translation file keys
rugk Feb 28, 2021
f582a72
translations: fix German translation examples and add guides
rugk Feb 28, 2021
6be555e
wrong way getting selection based on permission error
rugk Feb 28, 2021
8f1bbd7
Revert "wrong way getting selection based on permission error"
rugk Feb 28, 2021
3a22aab
feat(): add live preview feature
rugk Feb 28, 2021
8f59b28
feat: do not show menu if no text is selected
rugk Feb 28, 2021
6466b50
feat: add performance limit
rugk Feb 28, 2021
cb5485a
Merge branch 'main' into localisationTry2
rugk Feb 28, 2021
1aa2da2
style: fix style/EsLint errors
rugk Mar 2, 2021
aacb819
Hide incompatible setting with Chrome/ium
rugk Mar 2, 2021
675b4e0
style: eslint fix file
rugk Mar 9, 2021
aed6c40
fix(ContextMenu): refactor context menu definition
rugk Mar 9, 2021
34b79d1
fix: show option in Thunderbird, not only Firefox
rugk Mar 9, 2021
6e04f89
doc: adjust function descriptions
rugk Mar 9, 2021
a48a61c
fix: add seperator
rugk Mar 11, 2021
56a2818
chore: re-add bad icon removal done for testing
rugk Mar 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/modules/AutomaticSettings
6 changes: 0 additions & 6 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@

// testing version allows loading unit test libraries from CDNs
"content_security_policy": "default-src 'self'; img-src data:; style-src 'self' https://unpkg.com; script-src 'self' https://unpkg.com",
"icons": {
"16": "icons/icon-small-colored.svg",
"32": "icons/icon-small-colored.svg",
"48": "icons/icon-large.svg",
"96": "icons/icon-large.svg"
},
rugk marked this conversation as resolved.
Show resolved Hide resolved
"default_locale": "en",

"permissions": [
Expand Down
4 changes: 2 additions & 2 deletions src/options/fastLoad.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as MobileOptions from "/common/modules/AutomaticSettings/MobileOptions.js";
import * as EnvironmentalOptions from "/common/modules/AutomaticSettings/EnvironmentalOptions.js";

// hide not mobile compatible settings
MobileOptions.init();
EnvironmentalOptions.init();
2 changes: 1 addition & 1 deletion src/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h2 data-i18n="__MSG_subtitleEntryPreview__">Entry design</h2>
<span data-i18n="__MSG_optionMenuShowReadableTextDescr__" class="line indent helper-text">In addition to the examples of the transformation, this also shows the name of transformation as text.</span>
</li>

<li>
<li class="firefox-only">
<div class="line">
<input class="setting save-on-change" type="checkbox" id="livePreview" data-optiongroup="unicodeFont" name="livePreview">
<label data-i18n="__MSG_optionMenuShowLivePreview__" for="livePreview">Show a live preview with the selected text</label>
Expand Down