minor updates and fixes

This commit is contained in:
Philipp Crocoll 2015-06-23 21:19:33 +02:00
parent 3f7318c402
commit 0d3ed48a5a
12 changed files with 141 additions and 27 deletions

View File

@ -1,3 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Generated by crowdin.net-->
<resources/>
<!--Generated by crowdin.com-->
<resources>
<string name="change_entry">Selecciona una altra entrada</string>
<string name="open_entry">Seleccioneu entrada</string>
<string name="open_entry_for_app">Cerca d\'entrada amb \"%1$s\"</string>
<string name="kp2a_user">Usuari</string>
<string name="kp2a_password">Contrasenya</string>
<string name="kp2a_prefs">Configuració de credencials d\'entrada</string>
<string name="kp2a_auto_fill">Emplenat automàtic activat</string>
<string name="kp2a_auto_fill_summary">Emplenar automàticament en text quan un camp buit s\'introdueix, si una entrada Keepass2Android està disponible per al teclat i hi ha un valor que coincideix amb el text de pista del camp.</string>
<string name="kp2a_remember_auto_fill">Recordar textos de pista de camp</string>
<string name="kp2a_remember_auto_fill_summary">Si un camp de text s\'omple manualment seleccionant el valor Keepass2Android, recordar quin valor va entrar al camp de text. El camp de text més tard és detectat pel seu text de pista.</string>
<string name="kp2a_simple_keyboard">Teclat senzill</string>
<string name="kp2a_simple_keyboard_summary">Mostrar el teclat d\'1 línia si una pàgina està disponible per al teclat. Si està desactivat, es mostra un quadre de diàleg quan es prem la tecla Keepass2Android.</string>
<string name="kp2a_lock_on_sendgodone">Bloquejar la base de dades quan s\'ha acabat</string>
<string name="kp2a_lock_on_sendgodone_summary">En prémer la tecla Fet/Enviar/Anar en el teclat d\'1 línia, automàticament bloca la base de dades.</string>
<string name="kp2a_switch_on_sendgodone">Canviar teclat quan s\'ha acabat</string>
<string name="kp2a_switch_on_sendgodone_summary">En prémer la tecla Fet/Enviar/Anar en el teclat d\'1 línia, canviar el teclat.</string>
</resources>

View File

@ -13,4 +13,5 @@
<string name="kp2a_remember_auto_fill_summary">Se um campo de texto é preenchido manualmente selecionando o valor de Keepass2Android, lembra-se de qual valor foi inserido no campo de texto. O campo de texto mais tarde é detectado novamente pelo seu texto de dica.</string>
<string name="kp2a_simple_keyboard">Teclado simples</string>
<string name="kp2a_lock_on_sendgodone">Bloquear base de dados no final</string>
<string name="kp2a_switch_on_sendgodone">Trocar teclado ao concluir</string>
</resources>

View File

@ -1415,14 +1415,27 @@ public class KP2AKeyboard extends InputMethodService
final String clientPackageName = attribute.packageName;
if ((clientPackageName != null) && (clientPackageName != ""))
{
StringForTyping searchEntry = new StringForTyping();
searchEntry.key = searchEntry.displayName
= getString(R.string.open_entry_for_app, clientPackageName);
searchEntry.value = "KP2ASPECIAL_SearchUrlTask";
items.add(searchEntry);
}
if ((clientPackageName != null) && (clientPackageName != ""))
{
StringForTyping searchEntry = new StringForTyping();
try
{
searchEntry.key = searchEntry.displayName
= getString(R.string.open_entry_for_app, clientPackageName);
}
catch (java.util.FormatFlagsConversionMismatchException e) //buggy crowdin support for Arabic?
{
android.util.Log.e("KP2A", "Please report this error to crocoapps@gmail.com");
android.util.Log.e("KP2A", e.toString());
searchEntry.key = searchEntry.displayName
= "Search entry for app";
}
searchEntry.value = "KP2ASPECIAL_SearchUrlTask";
items.add(searchEntry);
}
builder.setTitle(title);

View File

@ -425,19 +425,31 @@ public class LatinKeyboard extends Keyboard {
private void updateSpaceBarForLocale(boolean isAutoCompletion, boolean isBlack) {
// If application locales are explicitly selected.
if (mLocale != null) {
mSpaceKey.icon = new BitmapDrawable(mRes,
drawSpaceBar(OPACITY_FULLY_OPAQUE, isAutoCompletion, isBlack));
} else {
// sym_keyboard_space_led can be shared with Black and White symbol themes.
if (isAutoCompletion) {
try
{
if (mLocale != null) {
mSpaceKey.icon = new BitmapDrawable(mRes,
drawSpaceBar(OPACITY_FULLY_OPAQUE, isAutoCompletion, isBlack));
} else {
mSpaceKey.icon = isBlack ? mRes.getDrawable(R.drawable.sym_bkeyboard_space)
: mRes.getDrawable(R.drawable.sym_keyboard_space);
}
}
// sym_keyboard_space_led can be shared with Black and White symbol themes.
if (isAutoCompletion) {
mSpaceKey.icon = new BitmapDrawable(mRes,
drawSpaceBar(OPACITY_FULLY_OPAQUE, isAutoCompletion, isBlack));
} else {
mSpaceKey.icon = isBlack ? mRes.getDrawable(R.drawable.sym_bkeyboard_space)
: mRes.getDrawable(R.drawable.sym_keyboard_space);
}
}
}
catch (NullPointerException e)
{
//this exception was reported through Google Play. I need further info to resolve.
android.util.Log.e("KP2A", "Please report this error to crocoapps@gmail.com");
android.util.Log.e("KP2A", e.toString());
android.util.Log.e("KP2A", ((mSpaceKey==null) ? "1" : "0")
+ ((mRes==null) ? "1" : "0"));
}
}
// Compute width of text with specified text size using paint.

View File

@ -1,9 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Generated by crowdin.net-->
<!--Generated by crowdin.com-->
<!--
Copyright (c) 2012 Hai Bison
See the file LICENSE at the root directory of this project for copying
permission.
-->
<resources/>
<resources>
<string name="afc_cmd_advanced_selection_all">Tot</string>
<string name="afc_cmd_advanced_selection_invert">Inverteix la selecció</string>
<string name="afc_cmd_advanced_selection_none">Cap</string>
<string name="afc_cmd_grid_view">Vista de graella</string>
<string name="afc_cmd_home">Inici</string>
<string name="afc_cmd_list_view">Vista de llista</string>
<string name="afc_cmd_new_folder">Carpeta nova&#8230;</string>
<string name="afc_cmd_select_all_files">Seleccionar tots els arxius</string>
<string name="afc_cmd_select_all_folders">Seleccionar totes les carpetes</string>
<string name="afc_cmd_sort">Ordenar&#8230;</string>
<string name="afc_file">arxiu</string>
<string name="afc_folder">carpeta</string>
<string name="afc_hint_clear">neteja</string>
<string name="afc_hint_folder_name">nom de la carpeta</string>
<string name="afc_hint_save_as_filename">nom de l\'arxiu</string>
<string name="afc_hint_search">cerca</string>
<string name="afc_msg_app_doesnot_have_permission_to_create_files">Aquesta aplicació no té permís per crear fitxers/carpetes</string>
<string name="afc_msg_app_doesnot_have_permission_to_delete_files">Aquesta aplicació no teniu permís per suprimir arxius/carpetes</string>
<string name="afc_msg_cancelled">Cancel·lat</string>
<string name="afc_msg_cannot_connect_to_file_provider_service">No es pot connectar al servei de proveïdor d\'arxiu</string>
<string name="afc_msg_cannot_create_new_folder_here">No es pot crear la carpeta nova aquí</string>
<string name="afc_msg_cannot_save_a_file_here">No es pot desar un arxiu aquí</string>
<string name="afc_msg_done">Fet</string>
<string name="afc_msg_empty">Buit</string>
<string name="afc_msg_failed_please_try_again">Ha fallat. Intenteu-ho novament.</string>
<string name="afc_msg_loading">Carregant&#8230;</string>
<string name="afc_phone">Telèfon</string>
<string name="afc_pmsg_cannot_access_dir">No puc accedir a \"%1$s\"</string>
<string name="afc_pmsg_cannot_create_folder">No es pot crear la carpeta \"%1$s\"</string>
<string name="afc_pmsg_cannot_delete_file">No es pot suprimir %1$s \"%2$s\"</string>
<string name="afc_pmsg_confirm_delete_file">Esteu segur que voleu suprimir aquesta %1$s \"%2$s\"?</string>
<string name="afc_pmsg_confirm_replace_file">Aquest fitxer \"%1$s\" ja existeix.\n\nVoleu substituir-lo?</string>
<string name="afc_pmsg_deleting_file">Suprimint els %1$s \"%2$s\"&#8230;</string>
<string name="afc_pmsg_file_has_been_deleted">%1$s \"%2$s\" s\'ha suprimit</string>
<string name="afc_pmsg_filename_is_directory">\"%1$s\" és una carpeta</string>
<string name="afc_pmsg_filename_is_invalid">Nom d\'arxiu \"%1$s\" no és vàlid</string>
<string name="afc_pmsg_max_file_count_allowed">... té més arxius, màxim permès: %1$,d</string>
<string name="afc_pmsg_unknown_error">Error desconegut: %1$s</string>
<string name="afc_root">Arrel</string>
<string name="afc_title_advanced_selection">Seleccionar&#8230;</string>
<string name="afc_title_confirmation">Confirmació</string>
<string name="afc_title_date">Data</string>
<string name="afc_title_error">Error</string>
<string name="afc_title_info">Informació</string>
<string name="afc_title_name">Nom</string>
<string name="afc_title_save_as">Desa com&#8230;</string>
<string name="afc_title_size">Mida</string>
<string name="afc_title_sort_by">Ordena per&#8230;</string>
<string name="afc_yesterday">Ahir</string>
<plurals name="afc_title_choose_directories">
<item quantity="one">Trieu la carpeta&#8230;
Trieu les carpetes&#8230;
Trieu les carpetes&#8230;</item>
<item quantity="other">Trieu la carpeta&#8230;</item>
</plurals>
<plurals name="afc_title_choose_files">
<item quantity="one">Trieu el fitxer&#8230;</item>
<item quantity="other">Trieu els fitxers&#8230;</item>
</plurals>
<plurals name="afc_title_choose_files_directories">
<item quantity="one">Seleccioneu arxiu/carpeta&#8230;</item>
<item quantity="other">Seleccioneu arxius/carpetes&#8230;</item>
</plurals>
</resources>

View File

@ -31,7 +31,7 @@
<string name="afc_msg_cannot_save_a_file_here">Impossible d\'enregistrer un fichier ici</string>
<string name="afc_msg_done">Valider</string>
<string name="afc_msg_empty">Vide</string>
<string name="afc_msg_failed_please_try_again">Echec. Veuillez faire une nouvelle tentative.</string>
<string name="afc_msg_failed_please_try_again">Échec. Veuillez faire une nouvelle tentative.</string>
<string name="afc_msg_loading">Chargement en cours&#8230;</string>
<string name="afc_phone">Téléphone</string>
<string name="afc_pmsg_cannot_access_dir">Impossible d\'accéder à \"%1$s\"</string>

View File

@ -39,7 +39,7 @@
<string name="afc_pmsg_cannot_delete_file">Impossibile eliminare %1$s \"%2$s\"</string>
<string name="afc_pmsg_confirm_delete_file">Sei sicuro di voler eliminare %1$s \"%2$s\"?</string>
<string name="afc_pmsg_confirm_replace_file">Il file \"%1$s\" esiste già.\n\nVuoi sostituirlo?</string>
<string name="afc_pmsg_deleting_file">Eliminazione di %1$s \"%2$s\"&#8230;</string>
<string name="afc_pmsg_deleting_file">Eliminazione %1$s \"%2$s\"&#8230;</string>
<string name="afc_pmsg_file_has_been_deleted">%1$s \"%2$s\" eliminato</string>
<string name="afc_pmsg_filename_is_directory">\"%1$s\" è una cartella</string>
<string name="afc_pmsg_filename_is_invalid">Il nome del file \"%1$s\" non è valido</string>
@ -62,10 +62,10 @@
</plurals>
<plurals name="afc_title_choose_files">
<item quantity="one">Scegli il file&#8230;</item>
<item quantity="other">Scegli il file&#8230;</item>
<item quantity="other">Scegli i file&#8230;</item>
</plurals>
<plurals name="afc_title_choose_files_directories">
<item quantity="one">Scegli file /cartella&#8230;</item>
<item quantity="other">Scegli file / cartella&#8230;</item>
<item quantity="one">Scegli file/ cartella&#8230;</item>
<item quantity="other">Scegli file / cartelle&#8230;</item>
</plurals>
</resources>

View File

@ -25,6 +25,7 @@
<string name="afc_msg_app_doesnot_have_permission_to_create_files">Detta program har inte behörighet att skapa filer/mappar</string>
<string name="afc_msg_app_doesnot_have_permission_to_delete_files">Detta program har inte behörighet att ta bort filer/mappar</string>
<string name="afc_msg_cancelled">Avbruten</string>
<string name="afc_msg_cannot_connect_to_file_provider_service">Kan inte ansluta till tjänsten som tillhandahåller filen</string>
<string name="afc_msg_cannot_create_new_folder_here">Kan inte skapa ny mapp här</string>
<string name="afc_msg_cannot_save_a_file_here">Kan inte spara en fil här</string>
<string name="afc_msg_done">Klar</string>

View File

@ -2014,6 +2014,7 @@ public class FragmentFiles extends Fragment implements
ArrayList<Uri> list = new ArrayList<Uri>();
list.add(file);
Intent intent = new Intent();
intent.setData(file);
intent.putParcelableArrayListExtra(FileChooserActivity.EXTRA_RESULTS,
list);
intent.putExtra(FileChooserActivity.EXTRA_RESULT_FILE_EXISTS,
@ -2050,8 +2051,13 @@ public class FragmentFiles extends Fragment implements
}
Intent intent = new Intent();
if (files.size() == 1)
{
intent.setData(files.get(0));
}
intent.putParcelableArrayListExtra(FileChooserActivity.EXTRA_RESULTS,
files);
getActivity().setResult(FileChooserActivity.RESULT_OK, intent);
if (DisplayPrefs.isRememberLastLocation(getActivity())