Skip to content

Commit 3083ef5

Browse files
authored
Merge pull request #131 from opensrp/update-translations
Update translations
2 parents b9686d3 + 888e1da commit 3083ef5

File tree

3 files changed

+67
-8
lines changed

3 files changed

+67
-8
lines changed

opensrp-eusm/src/main/res/values-fr/strings.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!--Temp -->
88
<string name="unauthorized">Veuillez vérifier les informations d\'accès</string>
99
<string name="unauthorized_group">Votre groupe d\'utilisateurs n\'est pas autorisé à accéder à ce terminal</string>
10-
<string name="unknown_response">échec de la connexion, essayez plus tard</string>
10+
<string name="unknown_response">L’identifiant ou le mot de passe n’est pas correct. Merci de réessayer</string>
1111
<string name="no_internet_connectivity">Pas de connexion internet. Veuillez vous assurer de disposer d’une connexion Internet active</string>
1212
<string name="login_text">Se connecter</string>
1313
<string name="show_password_text">Afficher le mot de passe</string>
@@ -146,5 +146,6 @@
146146
<string name="map_deleted">Carte effacée : %1s</string>
147147
<string name="another_map_in_download">Une autre carte est en cours de téléchargement</string>
148148
<string name="deleting_map">Carte en cours d\'effacement</string>
149+
<string name="remote_login_generic_error">Tu n’es pas actuellement inscrit dans une mission EUSM. Renseignes toi auprès de l’administrateur</string>
149150

150151
</resources>
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
service_point_check.step1.other_needed_products.v_required.err = Ce champ est requis
22
service_point_check.step1.other_needed_products.options.no.text = Non
33
service_point_check.step1.service_point_good_order.v_required.err = Ce champ est requis
4-
service_point_check.step1.other_products_action.label = Y a-t-il d'autres produits fournis par l'UNICEF au point de service qui méritent une action ? (demander à l'utilisateur)
4+
service_point_check.step1.other_products_action.label = Y a-t-il d'autres produits fournis par l'UNICEF au point de service qui méritent une action ? (demander à l'utilisateur)
55
service_point_check.step1.other_products_action.options.no.text = Non
6-
service_point_check.step1.other_needed_products_description.hint = Veuillez fournir détails :
6+
service_point_check.step1.other_needed_products_description.hint = Donner détails :
77
service_point_check.step1.service_point_good_order.options.yes.text = Oui
8-
service_point_check.step1.other_needed_products.label = Est-ce que l'utilisateur a parlé d'autres besoins pour le point de service (en équipements, infrastructures, autres ressources etc) ?
9-
service_point_check.step1.service_point_not_good_order_reason.hint = Veuillez fournir détails :
10-
service_point_check.step1.title = Check point de service
8+
service_point_check.step1.other_needed_products.label = Est-ce que l'utilisateur a parlé d'autres besoins pour le point de service (en équipements, infrastructures, autres ressources etc) ?
9+
service_point_check.step1.service_point_not_good_order_reason.hint = Donner détails :
10+
service_point_check.step1.title = Check Point de Service
1111
service_point_check.step1.service_point_good_order.options.no.text = Non
1212
service_point_check.step1.other_products_action.options.yes.text = Oui
1313
service_point_check.step1.other_needed_products.options.yes.text = Oui
14-
service_point_check.step1.service_point_good_order.label = Est-ce que le point de service est fonctionnel ?
15-
service_point_check.step1.other_products_action_description.hint = Veuillez fournir détails :
14+
service_point_check.step1.service_point_good_order.label = Est-ce que le Point de Service est fonctionnel ?
15+
service_point_check.step1.other_products_action_description.hint = Donner détails :
1616
service_point_check.step1.other_products_action.v_required.err = Ce champ est requis
17+
service_point_check.step1.other_products_action_description.v_required.err = Ce champ est requis
18+
service_point_check.step1.other_needed_products_description.v_required.err = Ce champ est requis
19+
service_point_check.step1.service_point_not_good_order_reason.v_required.err = Ce champ est requis

opensrp-eusm/src/test/java/org/smartregister/eusm/config/AppTaskingLibraryConfigurationTest.java

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@
2424
import java.util.List;
2525

2626
import static android.os.Looper.getMainLooper;
27+
import static org.junit.Assert.assertArrayEquals;
28+
import static org.junit.Assert.assertEquals;
2729
import static org.junit.Assert.assertFalse;
2830
import static org.junit.Assert.assertNotNull;
2931
import static org.junit.Assert.assertNull;
3032
import static org.junit.Assert.assertTrue;
3133
import static org.mockito.ArgumentMatchers.any;
34+
import static org.mockito.ArgumentMatchers.anyBoolean;
3235
import static org.mockito.ArgumentMatchers.anySet;
36+
import static org.mockito.ArgumentMatchers.anyString;
3337
import static org.mockito.Mockito.doReturn;
3438
import static org.mockito.Mockito.mock;
3539
import static org.mockito.Mockito.spy;
@@ -151,4 +155,55 @@ public void testProcessServerConfigsShouldPopulateServerConfigsIfSettingPresent(
151155

152156
assertFalse(EusmApplication.getInstance().getServerConfigs().isEmpty());
153157
}
158+
159+
@Test
160+
public void testGetResolveLocationTimeoutInSecondsShouldReturnZero() {
161+
assertEquals(0, appTaskingLibraryConfiguration.getResolveLocationTimeoutInSeconds());
162+
}
163+
164+
@Test
165+
public void testIsFocusInvestigationShouldReturnFalse() {
166+
assertFalse(appTaskingLibraryConfiguration.isFocusInvestigation());
167+
}
168+
169+
@Test
170+
public void testIsMDAShouldReturnFalse() {
171+
assertFalse(appTaskingLibraryConfiguration.isMDA());
172+
}
173+
174+
@Test
175+
public void testDisplayDistanceScaleShouldReturnFalse() {
176+
assertFalse(appTaskingLibraryConfiguration.displayDistanceScale());
177+
}
178+
179+
@Test
180+
public void testResetTaskInfoShouldReturnFalse() {
181+
assertFalse(appTaskingLibraryConfiguration.resetTaskInfo(any(), any()));
182+
}
183+
184+
@Test
185+
public void testArchiveClientShouldReturnFalse() {
186+
assertFalse(appTaskingLibraryConfiguration.archiveClient(anyString(), anyBoolean()));
187+
}
188+
189+
@Test
190+
public void testTaskRegisterMainColumnsSHouldReturnEmptyStringArray() {
191+
assertArrayEquals(new String[0], appTaskingLibraryConfiguration.taskRegisterMainColumns(anyString()));
192+
}
193+
194+
@Test
195+
public void testCalculateBusinessStatusShouldReturnNull() {
196+
assertNull(appTaskingLibraryConfiguration.calculateBusinessStatus(any()));
197+
}
198+
199+
@Test
200+
public void testIsMyLocationComponentEnabledShouldReturnTrue() {
201+
assertTrue(appTaskingLibraryConfiguration.isMyLocationComponentEnabled());
202+
}
203+
204+
@Test
205+
public void testGetCurrentPlanIdShouldReturnNull() {
206+
assertNull(appTaskingLibraryConfiguration.getCurrentPlanId());
207+
}
208+
154209
}

0 commit comments

Comments
 (0)