Skip to content

Commit

Permalink
Consistent naming of invisible_chars
Browse files Browse the repository at this point in the history
  • Loading branch information
pinknet committed Aug 11, 2024
1 parent 1679b45 commit 86437aa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"invalid_filename": "Invalid filename given.",
"invalid_params": "Invalid parameter given.",
"invalid_url": "Invalid URL given.",
"invis_chars": "Invisible chars",
"invisible_chars": "Invisible chars",
"json_encode_error": "Could not format the response as JSON:",
"last_modified": "Last Modified",
"load_config_error": "Could not load configuration.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"invalid_filename": "Неверное имя файла.",
"invalid_params": "Неверный параметр.",
"invalid_url": "Неверный URL.",
"invis_chars": "Невидимые символы",
"invisible_chars": "Невидимые символы",
"json_encode_error": "Не удалось представить ответ в виде JSON:",
"last_modified": "Изменено",
"load_config_error": "Ошибка загрузки конфигурации.",
Expand Down
2 changes: 1 addition & 1 deletion src/ifm.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ function IFM(params) {
self.templates.file_editoroptions,
{
wordwrap: ( aceSession.getOption( 'wrap' ) == 'off' ? false : true ),
invischars: aceEditor.getOption( 'showInvisibles' ),
invisible_chars: aceEditor.getOption( 'showInvisibles' ),
softtabs: aceSession.getOption( 'useSoftTabs' ),
tabsize: aceSession.getOption( 'tabSize' ),
ace_includes: self.ace,
Expand Down
6 changes: 3 additions & 3 deletions src/templates/modal.file_editoroptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="editor-invisible-chars"
{{#invischars}}
{{#invisible_chars}}
checked="checked"
{{/invischars}}
{{/invisible_chars}}
>
<label class="form-check-label" for="editor-invisible-chars">{{i18n.invis_chars}}</label>
<label class="form-check-label" for="editor-invisible-chars">{{i18n.invisible_chars}}</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="editor-softtabs"
Expand Down

0 comments on commit 86437aa

Please sign in to comment.