From 0067eb75d507167ea5c9defb0a21ebf33d0384c1 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 25 Jan 2018 20:26:07 +0100 Subject: [PATCH] Fix format specifiers in Spanish translation, add MainApp.gs(id, args). --- app/src/main/java/info/nightscout/androidaps/MainApp.java | 4 ++++ app/src/main/res/values-es/strings.xml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.java b/app/src/main/java/info/nightscout/androidaps/MainApp.java index 02576cb23d..a05f1c6d0c 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainApp.java +++ b/app/src/main/java/info/nightscout/androidaps/MainApp.java @@ -233,6 +233,10 @@ public class MainApp extends Application { return sResources.getString(id); } + public static String gs(int id, Object... args) { + return sResources.getString(id, args); + } + public static MainApp instance() { return sInstance; } diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 7259194dee..988a92928d 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -231,8 +231,8 @@ XXXXXXXXXX +; + YYYYYYYYYY Para entregar bolo% .2fU responder con código% s Bolo falló - Bolo% .2fU entregado con éxito - Entregando% .2fU + Bolo %.2fU entregado con éxito + Entregando %.2fU Bolo remoto no permitido Dedo Sensor