Skip to content

Commit

Permalink
modify some text of en language: "Open" => "Lock", "Close" => "Unlock".
Browse files Browse the repository at this point in the history
  • Loading branch information
qing3962 committed Aug 23, 2023
1 parent 49f1d62 commit 4490c6b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## Purpose

I developed this plugin to prevent my girlfriend from peeking my private notes or diaries.
I developed this plugin to prevent my girl-friend from peeking my private notes or diaries.

## What does this plugin do?

No encrypt, no decrypt, This plugin doesn't modify your notes, it will not do anything with your notes.
No encrypt, no decrypt, This plugin doesn't modify your notes, it will not do anything with your notes, only lock the obsidian.

When you launch the Obsidian:

Expand All @@ -16,15 +16,15 @@ If the protected folder you set is a sub-folder (/xxx), when you open a note tha

Once you have entered the correct password, you will not be asked to enter it again when opening other protected notes.

If you want to turn on protection again, you may invoke the command panel, type "pass", find the command - "Password Protection: Open", run it, when you open a protected note, the password verification box will pop up again.
If you want to lock password protection again, you may invoke the command panel, type "pass", find the command - "Password Protection: Lock", run it, when you open a protected note, the password verification box will pop up again.

In Obsidian for Windows, a Password Protection Button locates on the left-bar. Click on it to execute protecting or unprotecting action.
In Obsidian for Windows, a Password Protection Button locates on the left-bar. Click on it to execute locking or unlocking action.

## New feature

- version: 1.1.12 (8/16/2023)

1. Add the interval setting of Auto-open password protection. If you set a value greater than 0, when time elapse certain minutes from last closed protection or last opened a protected file,the password verify box will pop up again as soon as you open a new protected file.
1. Add the interval setting of Auto-lock password protection. If you set a value greater than 0, when time elapse certain minutes from last unlocked protection or last opened a protected file,the password verify box will pop up again as soon as you open a new protected file.

2. Add the switch setting of prohibit close password verify box, this will provide more protection. If you enable the setting option, the password verify box wouldn’t be able to be closed as soon as it pop up, unless you type right password. Caution: If the protected folder you set is root path (/), and you forgot your password, you may not be able to enter the Obsidian, because in this case, when the Obsidian launching, a password verification box will pop up and cannot be directly closed.

Expand Down Expand Up @@ -72,7 +72,7 @@ This project is licensed under the [MIT License](LICENSE).

## 这个插件做了什么?

这个插件不会加密和解密你的笔记,也不会修改你的笔记,它不会对你的笔记做任何事。
这个插件不会加密和解密你的笔记,也不会修改你的笔记,它不会对你的笔记做任何事,只会用弹出密码验证框的形式锁定Obsidian

当你每次启动 Obsidian:

Expand Down
14 changes: 7 additions & 7 deletions langs/en.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"ok": "OK",
"cancel": "Cancel",
"open": "Open",
"open": "Lock",

"close_password_protection": "Close password protection",
"open_password_protection": "Open password protection",
"password_protection_opened": "Password protection is opened!",
"password_protection_closed": "Password protection is closed!",
"close_password_protection": "Unlock password protection",
"open_password_protection": "Lock password protection",
"password_protection_opened": "Password protection is locked!",
"password_protection_closed": "Password protection is unlocked!",
"notice_set_password": "Please firstly set password in the setting of Password Protection plugin!",
"setting_folder_name": "The folder need to be protected",
"setting_folder_desc": "With relative path, the '/' is the root path of vault folder",
"place_holder_enter_path": "Enter path",
"setting_toggle_name": "Enable/Disable protection with password.",
"setting_toggle_desc": "Enable the protection need you to set password, Disable need to verify your password.",
"setting_toggle_desc": "Enable the protection you need to set password, disable it need to verify your password.",
"hint_enter_in_both_boxes": "Please enter your password in both boxes.",
"hint_password_must_match": "Passwords must match.",
"hint_password_length": "Password must be valid characters and contains 1~20 characters.",
Expand All @@ -26,7 +26,7 @@
"password_is_empty": "Password is empty.",
"password_not_match": "Password isn't match.",
"password_is_right": "Password is right.",
"auto_lock_interval_name": "The interval for auto-open password protection",
"auto_lock_interval_name": "The interval for auto-lock password protection",
"auto_lock_interval_desc": "The interval from the last time to current that protection closed or the protected file was opened, the unit is minute.",
"forbid_close_verify_modal_name": "Prohibit closing the password verify box as soon as the password isn't right",
"forbid_close_verify_modal_desc": "This will protect more privacy, but if you forgot password, you may not be able to enter the Obsidian.",
Expand Down
14 changes: 7 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,17 +498,17 @@ var import_obsidian = require("obsidian");
var en_default = {
ok: "OK",
cancel: "Cancel",
open: "Open",
close_password_protection: "Close password protection",
open_password_protection: "Open password protection",
password_protection_opened: "Password protection is opened!",
password_protection_closed: "Password protection is closed!",
open: "Lock",
close_password_protection: "Unlock password protection",
open_password_protection: "Lock password protection",
password_protection_opened: "Password protection is locked!",
password_protection_closed: "Password protection is unlocked!",
notice_set_password: "Please firstly set password in the setting of Password Protection plugin!",
setting_folder_name: "The folder need to be protected",
setting_folder_desc: "With relative path, the '/' is the root path of vault folder",
place_holder_enter_path: "Enter path",
setting_toggle_name: "Enable/Disable protection with password.",
setting_toggle_desc: "Enable the protection need you to set password, Disable need to verify your password.",
setting_toggle_desc: "Enable the protection you need to set password, disable it need to verify your password.",
hint_enter_in_both_boxes: "Please enter your password in both boxes.",
hint_password_must_match: "Passwords must match.",
hint_password_length: "Password must be valid characters and contains 1~20 characters.",
Expand All @@ -522,7 +522,7 @@ var en_default = {
password_is_empty: "Password is empty.",
password_not_match: "Password isn't match.",
password_is_right: "Password is right.",
auto_lock_interval_name: "The interval for auto-open password protection",
auto_lock_interval_name: "The interval for auto-lock password protection",
auto_lock_interval_desc: "The interval from the last time to current that protection closed or the protected file was opened, the unit is minute.",
forbid_close_verify_modal_name: "Prohibit closing the password verify box as soon as the password isn't right",
forbid_close_verify_modal_desc: "This will protect more privacy, but if you forgot password, you may not be able to enter the Obsidian.",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "password-protection",
"name": "Password Protection",
"version": "1.1.14",
"version": "1.1.15",
"minAppVersion": "0.15.0",
"description": "Protect your private notes and diary with a password, no encrypt, no decrypt.",
"author": "Qing Li",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "password-protection",
"version": "1.1.14",
"version": "1.1.15",
"description": "Protect your private notes and diary with a password, no encrypt, no decrypt.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 4490c6b

Please sign in to comment.