mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 08:28:50 -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);
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
||||||
|
|
||||||
builder.setSmallIcon(R.drawable.ic_launcher)
|
builder.setSmallIcon(R.drawable.ic_launcher)
|
||||||
.setContentTitle("Open Keychain")
|
.setContentTitle(getString(R.string.app_name))
|
||||||
.setContentText("Open Keychain has cached " + mPassphraseCache.size() + " keys.");
|
.setContentText(String.format(getString(R.string.passp_cache_notif_n_keys, mPassphraseCache.size())));
|
||||||
|
|
||||||
NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();
|
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
|
// Moves events into the big view
|
||||||
for (int i = 0; i < mPassphraseCache.size(); i++) {
|
for (int i = 0; i < mPassphraseCache.size(); i++) {
|
||||||
@ -378,7 +378,7 @@ public class PassphraseCacheService extends Service {
|
|||||||
intent.setAction(ACTION_PASSPHRASE_CACHE_PURGE);
|
intent.setAction(ACTION_PASSPHRASE_CACHE_PURGE);
|
||||||
builder.addAction(
|
builder.addAction(
|
||||||
R.drawable.abc_ic_clear_normal,
|
R.drawable.abc_ic_clear_normal,
|
||||||
"Purge Cache",
|
getString(R.string.passp_cache_notif_purge),
|
||||||
PendingIntent.getService(
|
PendingIntent.getService(
|
||||||
getApplicationContext(),
|
getApplicationContext(),
|
||||||
0,
|
0,
|
||||||
@ -392,8 +392,8 @@ public class PassphraseCacheService extends Service {
|
|||||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
|
||||||
|
|
||||||
builder.setSmallIcon(R.drawable.ic_launcher)
|
builder.setSmallIcon(R.drawable.ic_launcher)
|
||||||
.setContentTitle("Open Keychain has cached " + mPassphraseCache.size() + " keys.")
|
.setContentTitle(String.format(getString(R.string.passp_cache_notif_n_keys, mPassphraseCache.size())))
|
||||||
.setContentText("Click to purge the cache");
|
.setContentText(getString(R.string.passp_cache_notif_click_to_purge));
|
||||||
|
|
||||||
Intent intent = new Intent(getApplicationContext(), PassphraseCacheService.class);
|
Intent intent = new Intent(getApplicationContext(), PassphraseCacheService.class);
|
||||||
intent.setAction(ACTION_PASSPHRASE_CACHE_PURGE);
|
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_error">Error unlocking keyring!</string>
|
||||||
<string name="msg_mf_unlock">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 -->
|
<!-- unsorted -->
|
||||||
<string name="section_certifier_id">Certifier</string>
|
<string name="section_certifier_id">Certifier</string>
|
||||||
<string name="section_cert">Certificate Details</string>
|
<string name="section_cert">Certificate Details</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user