Преглед изворни кода

Better translations

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk пре 8 месеци
родитељ
комит
6d06f9ecdf

+ 2 - 3
app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

@@ -51,7 +51,6 @@ import com.nextcloud.client.documentscan.DocumentScanActivity;
 import com.nextcloud.client.editimage.EditImageActivity;
 import com.nextcloud.client.jobs.BackgroundJobManager;
 import com.nextcloud.client.network.ClientFactory;
-import com.nextcloud.client.network.ConnectivityService;
 import com.nextcloud.client.preferences.AppPreferences;
 import com.nextcloud.client.utils.Throttler;
 import com.nextcloud.common.NextcloudClient;
@@ -1146,7 +1145,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
                             dialog.setTargetFragment(this, SETUP_ENCRYPTION_REQUEST_CODE);
                             dialog.show(fragmentManager, SETUP_ENCRYPTION_DIALOG_TAG);
                         } else {
-                            DisplayUtils.showSnackMessage(fileActivity, R.string.encrypted_folder_setup_no_internet_error);
+                            DisplayUtils.showSnackMessage(fileActivity, R.string.internet_connection_required_for_encrypted_folder_setup);
                         }
                     });
                 }
@@ -1163,7 +1162,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
         if (isAPKorAAB(Set.of(file))) {
             return R.string.gplay_restriction;
         } else if (file.isOfflineOperation()) {
-            return R.string.offline_operations_file_not_exists_yet;
+            return R.string.offline_operations_file_does_not_exists_yet;
         } else {
             return null;
         }

+ 2 - 2
app/src/main/res/values/strings.xml

@@ -29,7 +29,7 @@
     <string name="app_config_base_url_title">Base URL</string>
     <string name="app_config_proxy_host_title">Proxy Host Name</string>
     <string name="app_config_proxy_port_title">Proxy Port</string>
-    <string name="offline_operations_file_not_exists_yet">File not exists, yet. Please upload the file first.</string>
+    <string name="offline_operations_file_does_not_exists_yet">File does not exists, yet. Please upload the file first.</string>
     <string name="offline_operations_worker_notification_delete_offline_folder">Delete Offline Folder</string>
     <string name="offline_operations_worker_notification_conflict_text">Conflicted Folder: %s</string>
     <string name="offline_operations_worker_notification_start_text">Starting Offline Operations</string>
@@ -1177,7 +1177,7 @@
     <string name="pin_home">Pin to Home screen</string>
     <string name="pin_shortcut_label">Open %1$s</string>
     <string name="displays_mnemonic">Displays your 12 word passphrase</string>
-    <string name="encrypted_folder_setup_no_internet_error">You need an internet connection to set up the encrypted folder</string>
+    <string name="internet_connection_required_for_encrypted_folder_setup">An internet connection is required to set up the encrypted folder</string>
     <string name="prefs_setup_e2e">Set up end-to-end encryption</string>
     <string name="prefs_e2e_active">End-to-end encryption is set up!</string>
     <string name="prefs_remove_e2e">Remove encryption locally</string>