浏览代码

Merge pull request #9468 from nextcloud/translateError

Extract string to get translated
Álvaro Brey 3 年之前
父节点
当前提交
0620d0a574

+ 1 - 1
src/main/java/com/owncloud/android/ui/dialog/ChooseRichDocumentsTemplateDialogFragment.java

@@ -310,7 +310,7 @@ public class ChooseRichDocumentsTemplateDialogFragment extends DialogFragment im
 
             if (fragment != null && fragment.isAdded()) {
                 if (url.isEmpty()) {
-                    DisplayUtils.showSnackMessage(fragment.binding.list, "Error creating file from template");
+                    DisplayUtils.showSnackMessage(fragment.binding.list, R.string.error_creating_file_from_template);
                 } else {
                     Intent collaboraWebViewIntent = new Intent(MainApp.getAppContext(), RichDocumentsEditorWebView.class);
                     collaboraWebViewIntent.putExtra(ExternalSiteWebView.EXTRA_TITLE, "Collabora");

+ 1 - 0
src/main/res/values/strings.xml

@@ -1007,4 +1007,5 @@
     <string name="file_management_permission_text">%1$s needs file management permissions to work properly. Please enable it in the following screen to continue.</string>
     <string name="file_list_empty_unified_search_no_results">No results found for your query</string>
     <string name="file_list_empty_gallery">Found no images or videos</string>
+    <string name="error_creating_file_from_template">Error creating file from template</string>
 </resources>