Skip to content

Commit c5bbeca

Browse files
committed
did add locales support for mode btn titles
1 parent 2f3c5e6 commit c5bbeca

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,6 @@
117117
"Powered by %s": "Powered by %s",
118118
"Register": "Register",
119119
"Export with pandoc": "Export with pandoc",
120-
"Select output format": "Select output format"
120+
"Select output format": "Select output format",
121+
"You have no rights to edit this note": "You have no rights to edit this note"
121122
}

locales/ru.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,6 @@
117117
"Powered by %s": "Powered by %s",
118118
"Register": "Register",
119119
"Export with pandoc": "Export with pandoc",
120-
"Select output format": "Select output format"
120+
"Select output format": "Select output format",
121+
"You have no rights to edit this note": "У вас нет прав редактировать эту заметку"
121122
}

locales/uk.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,6 @@
100100
"Select From Available Snippets": "Виберіть з доступних фрагментів коду",
101101
"OR": "АБО",
102102
"Export to Snippet": "Експорт фрагменту коду",
103-
"Select Visibility Level": "Вибрати рівень видимості"
103+
"Select Visibility Level": "Вибрати рівень видимості",
104+
"You have no rights to edit this note": "Ви не маєте права редагувати цю нотатку"
104105
}

public/views/codimd/header.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
<input type="radio" name="mode" autocomplete="off"><i class="fa fa-columns"></i>
9393
</label>
9494
<% } else { %>
95-
<label class="btn btn-default" title="You have no rigths to edit this note" disabled>
95+
<label class="btn btn-default" title="<%= __('You have no rights to edit this note')%>" disabled>
9696
<input type="radio" autocomplete="off"><i class="fa fa-pencil"></i>
9797
</label>
98-
<label class="btn btn-default" title="You have no rigths to edit this note" disabled>
98+
<label class="btn btn-default" title="<%= __('You have no rights to edit this note')%>" disabled>
9999
<input type="radio" autocomplete="off"><i class="fa fa-columns"></i>
100100
</label>
101101
<% } %>

0 commit comments

Comments
 (0)