Add translations
This commit is contained in:
parent
ec2e947cd8
commit
3c9e9ab1bd
4 changed files with 3 additions and 11 deletions
|
@ -9,6 +9,7 @@
|
|||
1. All your modified/created strings are in the top of the file (to make easier find what's translated).
|
||||
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
||||
-->
|
||||
<string name="starting_point_too_far">Starting point too far from nearest road.</string>
|
||||
<string name="shared_location">Shared location</string>
|
||||
<string name="osmand_parking_event">Pick up the car from parking</string>
|
||||
<string name="osmand_parking_warning">Warning</string>
|
||||
|
|
|
@ -6,7 +6,6 @@ import java.util.Random;
|
|||
|
||||
import net.osmand.Version;
|
||||
import net.osmand.access.AccessibleAlertBuilder;
|
||||
import net.osmand.access.AccessibleToast;
|
||||
import net.osmand.plus.OsmandApplication;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.ResourceManager;
|
||||
|
@ -14,10 +13,8 @@ import net.osmand.plus.activities.search.SearchActivity;
|
|||
import net.osmand.plus.render.MapRenderRepositories;
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog.Builder;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.Dialog;
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
|
@ -39,7 +36,6 @@ import android.view.animation.AccelerateInterpolator;
|
|||
import android.view.animation.Animation;
|
||||
import android.view.animation.TranslateAnimation;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class MainMenuActivity extends Activity {
|
||||
|
||||
|
@ -279,11 +275,6 @@ public class MainMenuActivity extends Activity {
|
|||
}
|
||||
}
|
||||
checkPreviousRunsForExceptions(firstTime);
|
||||
|
||||
ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
|
||||
ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
|
||||
activityManager.getMemoryInfo(memoryInfo);
|
||||
AccessibleToast.makeText(this, getString(R.string.rendering_out_of_memory) + " (" + memoryInfo.availMem / 1048576L + " MB available) ", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
private void applicationInstalledFirstTime() {
|
||||
|
|
|
@ -644,7 +644,7 @@ public class MapRenderRepositories {
|
|||
ActivityManager activityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
|
||||
activityManager.getMemoryInfo(memoryInfo);
|
||||
AccessibleToast.makeText(context, context.getString(R.string.rendering_out_of_memory) + " (" + memoryInfo.availMem / 1048576L + " MB available", Toast.LENGTH_SHORT).show();
|
||||
AccessibleToast.makeText(context, context.getString(R.string.rendering_out_of_memory) + " (" + memoryInfo.availMem / 1048576L + " MB available) ", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
} finally {
|
||||
|
|
|
@ -501,7 +501,7 @@ public class RouteProvider {
|
|||
RoutingContext ctx = new RoutingContext(config.build(p.name().toLowerCase(), !fast, start.hasBearing() ? start.getBearing() / 180d * Math.PI : null));
|
||||
RouteSegment st= router.findRouteSegment(start.getLatitude(), start.getLongitude(), ctx);
|
||||
if (st == null) {
|
||||
return new RouteCalculationResult("Starting point too far from nearest road.");
|
||||
return new RouteCalculationResult(app.getString(R.string.starting_point_too_far));
|
||||
}
|
||||
RouteSegment en = router.findRouteSegment(end.getLatitude(), end.getLongitude(), ctx);
|
||||
if (en == null) {
|
||||
|
|
Loading…
Reference in a new issue