Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-06-12 17:42:30 +0300
committerStefan Niedermann <info@niedermann.it>2020-06-12 17:42:30 +0300
commitf11184188bf1ef72e86a314cb2b12e4cf73dd23e (patch)
tree606b25a9125d79ea1e8b54c5cb23da7f2c9f088d /app/src/main
parent4bb5f7513fcc376643f843464b302ca16f33ea19 (diff)
parent1a0c9b2319654e4b9909014100c2b54767f2376d (diff)
Merge branch 'master' into gridview
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryAdapter.java2
-rw-r--r--app/src/main/java/it/niedermann/owncloud/notes/formattinghelp/FormattingHelpActivity.java30
-rw-r--r--app/src/main/res/values/strings.xml22
3 files changed, 36 insertions, 18 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryAdapter.java b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryAdapter.java
index 886790d8..5872172a 100644
--- a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryAdapter.java
+++ b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/CategoryAdapter.java
@@ -109,7 +109,7 @@ public class CategoryAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
this.categories.add(0, clearItem);
if (currentSearchString != null && currentSearchString.trim().length() > 0) {
boolean currentSearchStringIsInCategories = false;
- for (NavigationItem category : categories.subList(1, categories.size())) {
+ for (NavigationItem category : categories) {
if (currentSearchString.equals(category.label)) {
currentSearchStringIsInCategories = true;
break;
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/formattinghelp/FormattingHelpActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/formattinghelp/FormattingHelpActivity.java
index a1078504..299a9b18 100644
--- a/app/src/main/java/it/niedermann/owncloud/notes/formattinghelp/FormattingHelpActivity.java
+++ b/app/src/main/java/it/niedermann/owncloud/notes/formattinghelp/FormattingHelpActivity.java
@@ -130,13 +130,13 @@ public class FormattingHelpActivity extends BrandedActivity {
getString(R.string.formatting_help_checkbox_checked, getString(R.string.formatting_help_checkboxes_body_2)) + lineBreak +
getString(R.string.formatting_help_checkbox_unchecked, getString(R.string.formatting_help_checkboxes_body_3)) + lineBreak;
- final String structuredDocuments = getString(R.string.formatting_help_structured_documents_body_1) + lineBreak +
+ final String structuredDocuments = getString(R.string.formatting_help_structured_documents_body_1, "`#`", "`##`") + lineBreak +
lineBreak +
getString(R.string.formatting_help_title_level_3, getString(R.string.formatting_help_structured_documents_body_2)) + lineBreak +
lineBreak +
- getString(R.string.formatting_help_structured_documents_body_3) + lineBreak +
+ getString(R.string.formatting_help_structured_documents_body_3, "`#`", "`######`") + lineBreak +
lineBreak +
- getString(R.string.formatting_help_structured_documents_body_4) + lineBreak +
+ getString(R.string.formatting_help_structured_documents_body_4, getString(R.string.formatting_help_quote_keyword)) + lineBreak +
lineBreak +
getString(R.string.formatting_help_quote, getString(R.string.formatting_help_structured_documents_body_5)) + lineBreak +
getString(R.string.formatting_help_quote, getString(R.string.formatting_help_structured_documents_body_6)) + lineBreak;
@@ -148,16 +148,30 @@ public class FormattingHelpActivity extends BrandedActivity {
return getString(R.string.formatting_help_title, getString(R.string.formatting_help_cbf_title)) + lineBreak +
lineBreak +
getString(R.string.formatting_help_cbf_body_1) + lineBreak +
- getString(R.string.formatting_help_cbf_body_2) + lineBreak +
+ getString(R.string.formatting_help_cbf_body_2,
+ getString(R.string.formatting_help_codefence_inline, getString(android.R.string.cut)),
+ getString(R.string.formatting_help_codefence_inline, getString(android.R.string.copy)),
+ getString(R.string.formatting_help_codefence_inline, getString(android.R.string.selectAll)),
+ getString(R.string.formatting_help_codefence_inline, getString(R.string.simple_link)),
+ getString(R.string.formatting_help_codefence_inline, getString(R.string.simple_checkbox))
+ ) + lineBreak +
lineBreak +
divider + lineBreak +
lineBreak +
getString(R.string.formatting_help_title, getString(R.string.formatting_help_text_title)) + lineBreak +
lineBreak +
- getString(R.string.formatting_help_text_body) + lineBreak +
+ getString(R.string.formatting_help_text_body,
+ getString(R.string.formatting_help_bold),
+ getString(R.string.formatting_help_italic),
+ getString(R.string.formatting_help_strike_through)
+ ) + lineBreak +
lineBreak +
codefence + lineBreak +
- getString(R.string.formatting_help_text_body) + lineBreak +
+ getString(R.string.formatting_help_text_body,
+ getString(R.string.formatting_help_bold),
+ getString(R.string.formatting_help_italic),
+ getString(R.string.formatting_help_strike_through)
+ ) + lineBreak +
codefence + lineBreak +
lineBreak +
divider + lineBreak +
@@ -196,8 +210,8 @@ public class FormattingHelpActivity extends BrandedActivity {
lineBreak +
getString(R.string.formatting_help_code_body_1) + lineBreak +
lineBreak +
- getString(R.string.formatting_help_codefence_inline_escaped) + getString(R.string.formatting_help_code_javascript_inline) + getString(R.string.formatting_help_codefence_inline_escaped) + lineBreak +
- getString(R.string.formatting_help_codefence_inline) + getString(R.string.formatting_help_code_javascript_inline) + getString(R.string.formatting_help_codefence_inline) + lineBreak +
+ getString(R.string.formatting_help_codefence_inline_escaped, getString(R.string.formatting_help_code_javascript_inline)) + lineBreak +
+ getString(R.string.formatting_help_codefence_inline, getString(R.string.formatting_help_code_javascript_inline)) + lineBreak +
lineBreak +
getString(R.string.formatting_help_code_body_2) + lineBreak +
lineBreak +
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index e90e858b..7aebd1ce 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -240,8 +240,8 @@
<string name="formatting_help_title" translatable="false"># %1$s</string>
<string name="formatting_help_title_level_3" translatable="false">### %1$s</string>
<string name="formatting_help_divider" translateable="false">---</string>
- <string name="formatting_help_codefence_inline" translateable="false">`</string>
- <string name="formatting_help_codefence_inline_escaped" translateable="false">\\`</string>
+ <string name="formatting_help_codefence_inline" translateable="false">`%1$s`</string>
+ <string name="formatting_help_codefence_inline_escaped" translateable="false">\\`%1$s\\`</string>
<string name="formatting_help_codefence" translateable="false">```</string>
<string name="formatting_help_codefence_escaped" translatable="false">\\`\\`\\`</string>
<string name="formatting_help_javascript_1" translatable="false">if (isAwesome){</string>
@@ -255,13 +255,17 @@
<string name="formatting_help_checkbox_checked" translatable="false">- [x] %1$s</string>
<string name="formatting_help_checkbox_unchecked" translatable="false">- [ ] %1$s</string>
<string name="formatting_help_quote" translatable="false">&gt; %1$s</string>
+ <string name="formatting_help_quote_keyword" translatable="false">&gt;</string>
+ <string name="formatting_help_strike_through" translatable="false">~~</string>
+ <string name="formatting_help_bold" translatable="false">**</string>
+ <string name="formatting_help_italic" translatable="false">*</string>
<string name="formatting_help_cbf_title">Context based formatting</string>
<string name="formatting_help_cbf_body_1">A major design goal of the Notes app is to provide a distraction free tool. Though you will be able to format your texts with Markdown. For various of the below mentioned examples, you can use shortcuts so you can format your notes without typing in the codes below.</string>
- <string name="formatting_help_cbf_body_2">Just select a range of text or tap on your cursor at any position and you will get a popup menu which contains next to the default entries `Cut`, `Copy`, `Select all` entries like `Link` or `Checkbox`.</string>
+ <string name="formatting_help_cbf_body_2">Just select a range of text or tap on your cursor at any position and you will get a popup menu which contains next to the default entries %1$s, %2$s, %3$s entries like %4$s or %5$s.</string>
<string name="formatting_help_text_title">Text</string>
- <string name="formatting_help_text_body">It\'s very easy to make some words **bold** and other words *italic* with Markdown. You can ~~strike~~ some words through and even [link to Nextcloud](https://nextcloud.com).</string>
+ <string name="formatting_help_text_body">It\'s very easy to make some words %1$sbold%1$s and other words %2$sitalic%2$s with Markdown. You can %3$sstrike%3$s some words through and even [link to Nextcloud](https://nextcloud.com).</string>
<string name="formatting_help_lists_title">Lists</string>
<string name="formatting_help_lists_body_1">Sometimes you want numbered lists:</string>
@@ -280,12 +284,12 @@
<string name="formatting_help_checkboxes_body_3">Item 2</string>
<string name="formatting_help_structured_documents_title">Structured documents</string>
- <string name="formatting_help_structured_documents_body_1">Sometimes it\'s useful to have different levels of headings to structure your documents. Start lines with a `#` to create headings. Multiple `##` in a row denote smaller heading sizes.</string>
+ <string name="formatting_help_structured_documents_body_1">Sometimes it\'s useful to have different levels of headings to structure your documents. Start lines with a %1$s to create headings. Multiple %2$s in a row denote smaller heading sizes.</string>
<string name="formatting_help_structured_documents_body_2">This is a third-tier heading</string>
- <string name="formatting_help_structured_documents_body_3">You can use one `#` all the way up to `######` six for different heading sizes.</string>
- <string name="formatting_help_structured_documents_body_4">If you\'d like to quote someone, use the > character before the line:</string>
- <string name="formatting_help_structured_documents_body_5">Coffee. The finest organic suspension ever devised… I beat the Borg with it.</string>
- <string name="formatting_help_structured_documents_body_6">- Captain Janeway</string>
+ <string name="formatting_help_structured_documents_body_3">You can use one %1$s all the way up to %2$s six for different heading sizes.</string>
+ <string name="formatting_help_structured_documents_body_4">If you\'d like to quote someone, use the %1$s character before the line:</string>
+ <string name="formatting_help_structured_documents_body_5">Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.</string>
+ <string name="formatting_help_structured_documents_body_6">- Albert Einstein</string>
<string name="formatting_help_code_title">Code</string>
<string name="formatting_help_code_body_1">There are many different ways to style code with Markdown. If you have inline code blocks, wrap them in backticks:</string>