Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcb4ceaa authored by kaiyiz's avatar kaiyiz
Browse files

Frameworks : Fix the string can't be translated in Settings.

The string is defined in LocalTransport.java with English.

Extract this string into source.xml file and get it by getString().
Then it can be translated by add other languages' strings.

CRs-Fixed: 623885

Change-Id: I01b6b3177eaf33f02ad967066a4766b877cab690
parent d3340630
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.os.RemoteException;
import android.os.SELinux;
import android.util.Log;

import com.android.internal.R;
import com.android.org.bouncycastle.util.encoders.Base64;

import java.io.File;
@@ -52,8 +53,6 @@ public class LocalTransport extends IBackupTransport.Stub {
    private static final String TRANSPORT_DIR_NAME
            = "com.android.internal.backup.LocalTransport";

    private static final String TRANSPORT_DESTINATION_STRING
            = "Backing up to debug-only private cache";

    // The single hardcoded restore set always has the same (nonzero!) token
    private static final long RESTORE_TOKEN = 1;
@@ -82,7 +81,7 @@ public class LocalTransport extends IBackupTransport.Stub {
    }

    public String currentDestinationString() {
        return TRANSPORT_DESTINATION_STRING;
        return mContext.getString(R.string.transport_destination_string);
    }

    public String transportDirName() {
+1 −0
Original line number Diff line number Diff line
@@ -4548,4 +4548,5 @@
    <string name="stk_cc_ss_to_ss">SS request is modified to new SS request.</string>

    <string name="permission">Permission</string>
    <string name="transport_destination_string">Backing up to debug-only private cache</string>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -1727,6 +1727,7 @@
  <java-symbol type="id" name="body" />
  <java-symbol type="string" name="fast_scroll_alphabet" />
  <java-symbol type="string" name="ssl_certificate" />
  <java-symbol type="string" name="transport_destination_string" />

  <!-- From Phone -->
  <java-symbol type="bool" name="config_built_in_sip_phone" />