diff --git a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt index 208eee54..956ec710 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt @@ -1118,43 +1118,54 @@ class MainActivity : AppCompatActivity() { File(BaresipService.filesPath).walk().forEach { if (it.name.endsWith(".png")) files.add(it.name) } - val backupFilePath = BaresipService.downloadsPath + "/baresip.bs" - val zipFilePath = BaresipService.filesPath + "/baresip.zip" - if (!Utils.zip(files, "baresip.zip")) { - Log.w("Baresip", "Failed to write zip file 'baresip.zip") - Utils.alertView(this, getString(R.string.error), getString(R.string.backup_failed)) + val bsFile = getString(R.string.app_name) + ".bs" + val backupFilePath = BaresipService.downloadsPath + "/$bsFile" + val zipFile = getString(R.string.app_name) + ".zip" + val zipFilePath = BaresipService.filesPath + "/$zipFile" + if (!Utils.zip(files, zipFile)) { + Log.w("Baresip", "Failed to write zip file '$zipFile'") + Utils.alertView(this, getString(R.string.error), + String.format(getString(R.string.backup_failed), bsFile)) return } val content = Utils.getFileContents(zipFilePath) if (content == null) { - Log.w("Baresip", "Failed to read zip file 'baresip.zip") - Utils.alertView(this, getString(R.string.error), getString(R.string.backup_failed)) + Log.w("Baresip", "Failed to read zip file '$zipFile'") + Utils.alertView(this, getString(R.string.error), + String.format(getString(R.string.backup_failed), bsFile)) return } if (!Utils.encryptToFile(backupFilePath, content, password)) { - Utils.alertView(this, getString(R.string.error), getString(R.string.backup_failed)) + Utils.alertView(this, getString(R.string.error), + String.format(getString(R.string.backup_failed), bsFile)) return } - Utils.alertView(this, getString(R.string.info), getString(R.string.backed_up)) + Utils.alertView(this, getString(R.string.info), + String.format(getString(R.string.backed_up), bsFile)) Utils.deleteFile(File(zipFilePath)) } private fun restore(password: String) { - val backupFilePath = BaresipService.downloadsPath + "/baresip.bs" - val zipFilePath = BaresipService.filesPath + "/baresip.zip" + val bsFile = getString(R.string.app_name) + ".bs" + val backupFilePath = BaresipService.downloadsPath + "/$bsFile" + val zipFile = getString(R.string.app_name) + ".zip" + val zipFilePath = BaresipService.filesPath + "/$zipFile" val zipData = Utils.decryptFromFile(backupFilePath, password) if (zipData == null) { - Utils.alertView(this, getString(R.string.error), getString(R.string.restore_failed)) + Utils.alertView(this, getString(R.string.error), + String.format(getString(R.string.restore_failed), bsFile)) return } if (!Utils.putFileContents(zipFilePath, zipData)) { - Log.w("Baresip", "Failed to write zip file 'baresip.zip") - Utils.alertView(this, getString(R.string.error), getString(R.string.restore_failed)) + Log.w("Baresip", "Failed to write zip file '$zipFile'") + Utils.alertView(this, getString(R.string.error), + String.format(getString(R.string.restore_failed), bsFile)) return } if (!Utils.unZip(zipFilePath)) { - Log.w("Baresip", "Failed to unzip file 'baresip.zip") - Utils.alertView(this, getString(R.string.error), getString(R.string.restore_failed)) + Log.w("Baresip", "Failed to unzip file '$zipFile'") + Utils.alertView(this, getString(R.string.error), + String.format(getString(R.string.restore_failed), bsFile)) return } Utils.deleteFile(File(zipFilePath)) diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index 6fd74142..e18e63e2 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -253,10 +253,10 @@ Това обаждане е СИГУРНО, но другият абонат НЕ е потвърдил! Този разговор е СИГУРЕН и другият абонат е ПРОВЕРЕН! Искате ли да го потвърдите? Отмяна на потвърждението - Данните от приложението са архивирани във файла за изтегляне на папки \'baresip.bs\'. - Неуспешно архивиране на данни от приложението за изтегляне на файла с папки \'baresip.bs\'. Проверете Приложения → baresip → Разрешения → Съхранение + Данните от приложението са архивирани във файла за изтегляне на папки \'%1$s\'. + Неуспешно архивиране на данни от приложението за изтегляне на файла с папки \'%1$s\'. Проверете Приложения → baresip → Разрешения → Съхранение Данните за приложението са възстановени. baresip трябва да се рестартира. Рестартирай сега? - Възстановяването на данните на приложението от папката за изтегляне не бе успешно. Проверете Приложения → baresip → Разрешения → Съхранение и този архивен файл \'baresip.bs\' съществува в папката и ако е така, вие сте дали правилна парола за дешифриране. + Възстановяването на данните на приложението от папката за изтегляне не бе успешно. Проверете Приложения → baresip → Разрешения → Съхранение и този архивен файл \'%1$s\' съществува в папката и ако е така, вие сте дали правилна парола за дешифриране. Аудио модули Аудио кодеци предоставени от проверените модули могат да бъдат използвани от акаунтите. Не могат да бъдат заредени модулите. diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 2d167684..9e737061 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -246,13 +246,13 @@ ¡Esta llamada es SEGURA y el compañero está VERIFICADO! ¿Quieres desverificar al compañero? No verificar - Se respaldaron los datos de la aplicación en el archivo de la carpeta Descargas «baresip.bs». - Falló la creación de la copia de respaldo de los datos de la aplicación en el archivo «baresip.bs» en la carpeta Descargas. Revise Aplicaciones ▸ baresip ▸ Permisos ▸ Almacenamiento + Se respaldaron los datos de la aplicación en el archivo de la carpeta Descargas «%1$s». + Falló la creación de la copia de respaldo de los datos de la aplicación en el archivo «%1$s» en la carpeta Descargas. Revise Aplicaciones ▸ baresip ▸ Permisos ▸ Almacenamiento Se restauraron los datos de la aplicación. Baresip necesita reiniciarse. ¿Quiere reiniciar ahora\? - Falló la restauración de los datos de la aplicación desde la carpeta Descargas. Revise Aplicaciones ▸ baresip ▸ Permisos ▸ Almacenamiento y si existe el archivo de la copia de respaldo «baresip.bs» en la carpeta; si es así, proporcione la contraseña de descifrado correcta. + Falló la restauración de los datos de la aplicación desde la carpeta Descargas. Revise Aplicaciones ▸ baresip ▸ Permisos ▸ Almacenamiento y si existe el archivo de la copia de respaldo «%1$s» en la carpeta; si es así, proporcione la contraseña de descifrado correcta. Es necesario reiniciar Baresip para que surta efecto la configuración nueva. ¿Quiere reiniciar ahora\? Módulos de audio Las cuentas pueden utiilzar códecs de audio provistos por los módulos comprobados. Falló la carga del módulo. No es posible hacer o responder llamadas sin el permiso Micrófono. - \ No newline at end of file + diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 19913749..8fa7d6d6 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -343,17 +343,17 @@ todennettu! Haluatko poistaa todennuksen? Poista todennus Sovelluksen tiedot talletettiin Download-kansion tiedostoon - \'baresip.bs\'. + \'%1$s\'. Sovelluksen tietojen talletus Download-kansion tiedostoon - \'baresip.bs\' epäonnistui. Tarkista Asetukset → Sovellukset → baresip → + \'%1$s\' epäonnistui. Tarkista Asetukset → Sovellukset → baresip → Käyttöluvat → Tallennustila. Sovelluksen tiedot palautettiin. baresip pitää käynnistää uudelleen. Käynnistä uudelleen nyt? Sovelluksen tietojen palauttaminen Download-kansiosta epäonnistui. Tarkista Asetukset → Sovellukset → baresip → Käyttöluvat → Tallennustila ja että tallennettu - tiedosto \'baresip.bs\' on kansiossa ja (jos on) että annoit oikean salasanan. + tiedosto \'%1$s\' on kansiossa ja (jos on) että annoit oikean salasanan. Et voi soittaa puheluita tai vastata niihin ilman Mikrofoni-käyttöoikeutta. diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml index 59330315..13e15fd4 100644 --- a/app/src/main/res/values-nb-rNO/strings.xml +++ b/app/src/main/res/values-nb-rNO/strings.xml @@ -186,10 +186,10 @@ Ønsker du å starte baresip på ny for å aktivere de nye innstillingene nå\? Sikkerhetskopier Gjenopprett - Programdata sikkerhetskopiert til nedlastingsmappen som \"baresip.bs\". - Klarte ikke å sikkerhetskopiere programdata til nedlastingsmappe som \'baresip.bs\'. Sjekk \"Programmer → baresip → Tilganger → Lagring + Programdata sikkerhetskopiert til nedlastingsmappen som \"%1$s\". + Klarte ikke å sikkerhetskopiere programdata til nedlastingsmappe som \'%1$s\'. Sjekk \"Programmer → baresip → Tilganger → Lagring Programdata gjenopprettet. Start baresip på ny nå\? - Klarte ikke å sikkerhetskopiere programdata til nedlastingsmappe. Sjekk \"Programmer → baresip → Tilganger → Lagring og at sikkerhetskopifilen \"baresip.bs\" finnes i mappen, og om det er tilfelle, at du har oppgitt rett dekrypteringspassord. + Klarte ikke å sikkerhetskopiere programdata til nedlastingsmappe. Sjekk \"Programmer → baresip → Tilganger → Lagring og at sikkerhetskopifilen \"%1$s\" finnes i mappen, og om det er tilfelle, at du har oppgitt rett dekrypteringspassord. Lydmoduler Lydkodeker tilbudt av de avkryssede modulene er tilgjengelig for bruk av kontoene. Hjelp @@ -198,4 +198,4 @@ Det er mulig å sette kontoportnummer og transportprotokoll som username@domain[:port][;transport=udp|tcp|tls] ved opprettelse av en ny konto. UDP brukes hvis kun port angis. Port 5060 eller 5061 (TLS) brukes hvis kun transportprotokoll angis. Kontoens registrar (hvis noen) angis kun basert på info fra domenets DNS hvis hverken port, transportprotokoll, og heller ikke utgående mellomtjener angis. Foretrekk IPv6-media Tilby bruk av IPv6-mediaprotokoll (hvis tilgjengelig) når likemanns mediaprotokoll ikke kan bestemmes. - \ No newline at end of file + diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 7aaa089d..756d4144 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -7,10 +7,10 @@ Mostrar Senha Senha de Autenticação da Conta %1$s Você não pode fazer ou atender chamadas sem a permissão do Microfone. - Falha ao restaurar os dados do aplicativo da pasta Download. Verifique Aplicativos → baresip → Permissões → Armazenamento e se o arquivo de backup \'baresip.bs\' existe na pasta e, se houver, se você forneceu a Senha de Descriptografia correta. + Falha ao restaurar os dados do aplicativo da pasta Download. Verifique Aplicativos → baresip → Permissões → Armazenamento e se o arquivo de backup \'%1$s\' existe na pasta e, se houver, se você forneceu a Senha de Descriptografia correta. Dados do aplicativo restaurados. O baresip precisa ser reiniciado. Reiniciar agora\? - Falha ao fazer backup dos dados do aplicativo no arquivo \'baresip.bs\' na pasta Download. Verifique Aplicativos → baresip → Permissões → Armazenamento. - Dados do aplicativo armazenados em backup no arquivo \'baresip.bs\' na Download. + Falha ao fazer backup dos dados do aplicativo no arquivo \'%1$s\' na pasta Download. Verifique Aplicativos → baresip → Permissões → Armazenamento. + Dados do aplicativo armazenados em backup no arquivo \'%1$s\' na Download. Desverificar A chamada é SEGURA e o par é VERIFICADO! Deseja desverificar o par\? A chama é SEGURA, porém o par NÃO é verificado! @@ -203,4 +203,4 @@ Conta <h1>Biblioteca Baresip baseado em agente de usuário SIP</h1> <p>Juha Heinanen &lt;jh@tutpro.com&gt;</p> <p>Version %1$s</p> <h2>Dicas de Uso</h2> <ul> <li>Verifique se os ajustes padrões atendem suas necessidades (clique nos títulos para ajuda).</li> <li>Então crie uma ou mais contas (novamente clique nos títulos para ajuda).</li> <li>O estado de uma conta é mostrado com um ponto colorido: verde (registro bem sucedido), amarelo (registro em progresso), vermelho (registro falhou), branco (registro não foi ativado).</li> <li>Peers de chamada e mensagens podem ser adicionadas aos contatos com toque longo.</li> <li>Toques longos também podem ser usados para remover chamadas, chats, mensagens e contatos.</li> <li>Toque/toque longo em ícones de contato podem ser usados para adicionar/remover avatar.</li> <li>Você pode selecionar novamente a chamada anterior clicando no ícone de ligação quando Destino estiver vazio.</li> <li>Se você não puder ouvir a outra parte durante a ligação, tente aumentar o volume de Mídia do dispositivo ou ajuste o Volume de Ligação Padrão nos Ajustes.</li> </ul> <h2>Problemas Conhecidos</h2> <ul> <li>Devido a limitações em bibliotecas subjacentes, baresip atualmente não suporta múltiplas interfaces de rede ativas simultaneamente.</li> </ul> <h2>Código Fonte</h2> Código fonte disponível em <a href=https://github.com/juha-h/baresip-studio>GitHub</a>, onde também falhas podem ser reportadas. Sobre o baresip - \ No newline at end of file + diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index bd51fdfa..22ede267 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -133,7 +133,7 @@ и Режим ответа Выберите как отвечать на входящие вызовы. - Данные приложения сохранены с папку Downloads , файл \'baresip.bs\'. + Данные приложения сохранены с папку Downloads , файл \'%1$s\'. Вызов не безопасен! Прослушивать адрес Исходящие прокси diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 30132605..c4d5ad8a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -301,14 +301,14 @@ Do you want to unverify the peer? Unverify - Application data backed up to Download folder file \'baresip.bs\'. + Application data backed up to Download folder file \'%1$s\'. Failed to back up application data to Download folder file - \'baresip.bs\'. Check Apps → baresip → Permissions → Storage. + \'%1$s\'. Check Apps → baresip → Permissions → Storage. Application data restored. baresip needs to be restarted. Restart now? Failed to restore application data from Download folder. Check Apps → - baresip → Permissions → Storage and that backup file \'baresip.bs\' exists in the folder + baresip → Permissions → Storage and that backup file \'%1$s\' exists in the folder and, if so, you gave correct Decrypt Password. You are not able to place or answer calls without Microphone permission.