소스 검색

Simplify strings

Vishnu Mohandas 4 년 전
부모
커밋
1776763de6
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      lib/ui/sync_indicator.dart

+ 6 - 6
lib/ui/sync_indicator.dart

@@ -104,28 +104,28 @@ class _SyncIndicatorState extends State<SyncIndicator> {
     if (_event == null ||
         _event.status == SyncStatus.applying_local_diff ||
         _event.status == SyncStatus.applying_remote_diff) {
-      return "Syncing...";
+      return "syncing...";
     }
     if (_event.status == SyncStatus.preparing_for_upload) {
-      return "Encrypting backup...";
+      return "encrypting backup...";
     }
     if (_event.status == SyncStatus.in_progress) {
       return _event.completed.toString() +
           "/" +
           _event.total.toString() +
-          " memories preserved.";
+          " memories preserved";
     }
     if (_event.status == SyncStatus.paused) {
       return _event.reason;
     }
     if (_event.status == SyncStatus.completed) {
       if (_event.wasStopped) {
-        return "Sync stopped.";
+        return "sync stopped";
       } else {
-        return "All memories preserved.";
+        return "all memories preserved";
       }
     }
     // _event.status == SyncStatus.error)
-    return "Upload failed.";
+    return "upload failed";
   }
 }