diff options
author | Hung-ying Tyan <tyanh@google.com> | 2009-09-30 16:02:17 +0800 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2009-09-30 17:07:10 +0800 |
commit | f2bd901738736e16ea93f0a4c7275f2141ca3a3e (patch) | |
tree | 73eef3dbf18e30edbbf6b774cc09cf782b0903ad /vpn | |
parent | 4ca8c837d3aca781e0ba641ed4353827bfd05805 (diff) | |
download | frameworks_base-f2bd901738736e16ea93f0a4c7275f2141ca3a3e.zip frameworks_base-f2bd901738736e16ea93f0a4c7275f2141ca3a3e.tar.gz frameworks_base-f2bd901738736e16ea93f0a4c7275f2141ca3a3e.tar.bz2 |
make vpn type strings i18n ready.
Diffstat (limited to 'vpn')
-rw-r--r-- | vpn/java/android/net/vpn/VpnType.java | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/vpn/java/android/net/vpn/VpnType.java b/vpn/java/android/net/vpn/VpnType.java index c7df943..322f2bf 100644 --- a/vpn/java/android/net/vpn/VpnType.java +++ b/vpn/java/android/net/vpn/VpnType.java @@ -16,26 +16,28 @@ package android.net.vpn; +import com.android.internal.R; + /** * Enumeration of all supported VPN types. * {@hide} */ public enum VpnType { - PPTP("PPTP", "", PptpProfile.class), - L2TP("L2TP", "", L2tpProfile.class), - L2TP_IPSEC_PSK("L2TP/IPSec PSK", "Pre-shared key based L2TP/IPSec VPN", + PPTP("PPTP", R.string.pptp_vpn_description, PptpProfile.class), + L2TP("L2TP", R.string.l2tp_vpn_description, L2tpProfile.class), + L2TP_IPSEC_PSK("L2TP/IPSec PSK", R.string.l2tp_ipsec_psk_vpn_description, L2tpIpsecPskProfile.class), - L2TP_IPSEC("L2TP/IPSec CRT", "Certificate based L2TP/IPSec VPN", + L2TP_IPSEC("L2TP/IPSec CRT", R.string.l2tp_ipsec_crt_vpn_description, L2tpIpsecProfile.class); private String mDisplayName; - private String mDescription; + private int mDescriptionId; private Class<? extends VpnProfile> mClass; - VpnType(String displayName, String description, + VpnType(String displayName, int descriptionId, Class<? extends VpnProfile> klass) { mDisplayName = displayName; - mDescription = description; + mDescriptionId = descriptionId; mClass = klass; } @@ -43,8 +45,12 @@ public enum VpnType { return mDisplayName; } + public int getDescriptionId() { + return mDescriptionId; + } + public String getDescription() { - return mDescription; + return ""; } public Class<? extends VpnProfile> getProfileClass() { |