mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 03:25:05 -05:00
Put text into strings.xml, for internationalization
This commit is contained in:
parent
2568ea4b2e
commit
7a3fe61a1f
@ -358,12 +358,12 @@ public class PassphraseCacheService extends Service {
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
||||
|
||||
builder.setSmallIcon(R.drawable.ic_launcher)
|
||||
.setContentTitle("Open Keychain")
|
||||
.setContentText("Open Keychain has cached " + mPassphraseCache.size() + " keys.");
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setContentText(String.format(getString(R.string.passp_cache_notif_n_keys, mPassphraseCache.size())));
|
||||
|
||||
NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();
|
||||
|
||||
inboxStyle.setBigContentTitle("Cached Passphrases:");
|
||||
inboxStyle.setBigContentTitle(getString(R.string.passp_cache_notif_keys));
|
||||
|
||||
// Moves events into the big view
|
||||
for (int i = 0; i < mPassphraseCache.size(); i++) {
|
||||
@ -378,7 +378,7 @@ public class PassphraseCacheService extends Service {
|
||||
intent.setAction(ACTION_PASSPHRASE_CACHE_PURGE);
|
||||
builder.addAction(
|
||||
R.drawable.abc_ic_clear_normal,
|
||||
"Purge Cache",
|
||||
getString(R.string.passp_cache_notif_purge),
|
||||
PendingIntent.getService(
|
||||
getApplicationContext(),
|
||||
0,
|
||||
@ -392,8 +392,8 @@ public class PassphraseCacheService extends Service {
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
||||
|
||||
builder.setSmallIcon(R.drawable.ic_launcher)
|
||||
.setContentTitle("Open Keychain has cached " + mPassphraseCache.size() + " keys.")
|
||||
.setContentText("Click to purge the cache");
|
||||
.setContentTitle(String.format(getString(R.string.passp_cache_notif_n_keys, mPassphraseCache.size())))
|
||||
.setContentText(getString(R.string.passp_cache_notif_click_to_purge));
|
||||
|
||||
Intent intent = new Intent(getApplicationContext(), PassphraseCacheService.class);
|
||||
intent.setAction(ACTION_PASSPHRASE_CACHE_PURGE);
|
||||
|
@ -660,6 +660,12 @@
|
||||
<string name="msg_mf_unlock_error">Error unlocking keyring!</string>
|
||||
<string name="msg_mf_unlock">Unlocking keyring</string>
|
||||
|
||||
<!-- PassphraseCache -->
|
||||
<string name="passp_cache_notif_click_to_purge">Click to purge cached passphrases</string>
|
||||
<string name="passp_cache_notif_n_keys">OpenKeychain has cached %i keys</string>
|
||||
<string name="passp_cache_notif_keys">Cached Keys:</string>
|
||||
<string name="passp_cache_notif_purge">Purge Cache</string>
|
||||
|
||||
<!-- unsorted -->
|
||||
<string name="section_certifier_id">Certifier</string>
|
||||
<string name="section_cert">Certificate Details</string>
|
||||
|
Loading…
Reference in New Issue
Block a user