@@ -218,12 +218,10 @@ private void showCallInformation(Object wamCall, Object userJid) throws Exceptio
218218 if (WppCore .isGroup (WppCore .getRawString (userJid )))
219219 return ;
220220 var sb = new StringBuilder ();
221-
222221 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 " );
227225 var ip = (String ) XposedHelpers .getObjectField (wamCall , "callPeerIpStr" );
228226 if (ip != null ) {
229227 var client = new OkHttpClient ();
@@ -233,15 +231,15 @@ private void showCallInformation(Object wamCall, Object userJid) throws Exceptio
233231 var json = new JSONObject (content );
234232 var country = json .getString ("country" );
235233 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 " );
239237 }
240238 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 " );
242240 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 ());
245243 }
246244
247245 private void alwaysOnline () throws Exception {
0 commit comments