@@ -218,12 +218,10 @@ private void showCallInformation(Object wamCall, Object userJid) throws Exceptio
218
218
if (WppCore .isGroup (WppCore .getRawString (userJid )))
219
219
return ;
220
220
var sb = new StringBuilder ();
221
-
222
221
var contact = WppCore .getContactName (userJid );
223
- if (!TextUtils .isEmpty (contact ))
224
- sb .append ("Contact: " ).append (contact ).append ("\n " );
225
- sb .append ("Number: " ).append ("+" ).append (WppCore .stripJID (WppCore .getRawString (userJid ))).append ("\n " );
226
-
222
+ var number = WppCore .stripJID (WppCore .getRawString (userJid ));
223
+ if (!TextUtils .isEmpty (contact )) sb .append (String .format (Utils .getApplication ().getString (ResId .string .contact_s ), contact )).append ("\n " );
224
+ sb .append (String .format (Utils .getApplication ().getString (ResId .string .phone_number_s ), number )).append ("\n " );
227
225
var ip = (String ) XposedHelpers .getObjectField (wamCall , "callPeerIpStr" );
228
226
if (ip != null ) {
229
227
var client = new OkHttpClient ();
@@ -233,15 +231,15 @@ private void showCallInformation(Object wamCall, Object userJid) throws Exceptio
233
231
var json = new JSONObject (content );
234
232
var country = json .getString ("country" );
235
233
var city = json .getString ("city" );
236
- sb .append ("Country: " ). append ( country ).append ("\n " );
237
- sb .append ("City: " ). append ( city ).append ("\n " );
238
- sb .append ("IP: " ). append ( ip ).append ("\n " );
234
+ sb .append (String . format ( Utils . getApplication (). getString ( ResId . string . country_s ), country )) .append ("\n " )
235
+ .append (String . format ( Utils . getApplication (). getString ( ResId . string . city_s ), city )) .append ("\n " )
236
+ .append (String . format ( Utils . getApplication (). getString ( ResId . string . ip_s ), ip ) ).append ("\n " );
239
237
}
240
238
var platform = (String ) XposedHelpers .getObjectField (wamCall , "callPeerPlatform" );
241
- if (platform != null ) sb .append ("Platform: " ). append ( platform ).append ("\n " );
239
+ if (platform != null ) sb .append (String . format ( Utils . getApplication (). getString ( ResId . string . platform_s ), platform ) ).append ("\n " );
242
240
var wppVersion = (String ) XposedHelpers .getObjectField (wamCall , "callPeerAppVersion" );
243
- if (wppVersion != null ) sb .append ("WhatsApp Version: " ). append ( wppVersion ).append ("\n " );
244
- Utils .showNotification ("Call Information" , sb .toString ());
241
+ if (wppVersion != null ) sb .append (String . format ( Utils . getApplication (). getString ( ResId . string . wpp_version_s ), wppVersion ) ).append ("\n " );
242
+ Utils .showNotification (Utils . getApplication (). getString ( ResId . string . call_information ) , sb .toString ());
245
243
}
246
244
247
245
private void alwaysOnline () throws Exception {
0 commit comments