Extract string to get translated

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2021-12-06 16:57:52 +01:00
parent b3b1b8dbc0
commit 417365f7ea
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 2 additions and 1 deletions

View file

@ -310,7 +310,7 @@ public class ChooseRichDocumentsTemplateDialogFragment extends DialogFragment im
if (fragment != null && fragment.isAdded()) { if (fragment != null && fragment.isAdded()) {
if (url.isEmpty()) { 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 { } else {
Intent collaboraWebViewIntent = new Intent(MainApp.getAppContext(), RichDocumentsEditorWebView.class); Intent collaboraWebViewIntent = new Intent(MainApp.getAppContext(), RichDocumentsEditorWebView.class);
collaboraWebViewIntent.putExtra(ExternalSiteWebView.EXTRA_TITLE, "Collabora"); collaboraWebViewIntent.putExtra(ExternalSiteWebView.EXTRA_TITLE, "Collabora");

View file

@ -1005,4 +1005,5 @@
<string name="load_more_results">Load more results</string> <string name="load_more_results">Load more results</string>
<string name="file_management_permission">Permissions needed</string> <string name="file_management_permission">Permissions needed</string>
<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_management_permission_text">%1$s needs file management permissions to work properly. Please enable it in the following screen to continue.</string>
<string name="error_creating_file_from_template">Error creating file from template</string>
</resources> </resources>