localize some plugin descr

This commit is contained in:
sonora 2015-02-22 14:49:09 +01:00
parent 1aa24f2823
commit ab2f9a609c
4 changed files with 26 additions and 15 deletions

View file

@ -10,7 +10,20 @@
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy 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="plugin_touring_view">Touring map view</string> <string name="plugin_nautical_descr1">Activating this view changes the map style to Nautical, thus showing all nautical navigation marks and chart symbols.</string>
<string name="plugin_nautical_descr2">A map file containing all nautical symbols globally is availabe as one single download called \'World seamarks\'.</string>
<string name="plugin_nautical_descr3">This view can be reverted by either de-activating it again here, or by changing the \'Map style\' under \'Configure map\' as desired.</string>
<string name="plugin_ski_descr1">Activating this view changes the map style to \'Winter and ski\', showing all landscape features under wintery conditions.</string>
<string name="plugin_ski_descr2">A global map displaying all ski slopes and cross country ski routes in this view is available under Downloads as \'World ski map\'.</string>
<string name="plugin_ski_descr3">This view can be reverted by either de-activating it again here, or by changing the \'Map style\' under \'Configure map\' as desired.</string>
<string name="plugin_touringview_descr1">Activating this view changes the map style to \'Touring view\', this is a special high-detail view for travelers and professional drivers.</string>
<string name="plugin_touringview_descr2">This view provides, at any give map zoom, the maximum amount of travel details available in the map data (particularly roads, tracks, paths, and orientation marks), and clearly depicts all types of roads unambiguously by color coding, which is useful when e.g. driving large vehicles.</string>
<string name="plugin_touringview_descr3">A special map download is not needed, the view is created from our standard maps.</string>
<string name="plugin_touringview_descr4">This view can be reverted by either de-activating it again here, or by changing the \'Map style\' under \'Configure map\' as desired.</string>
<string name="plugin_touringview_name">Touring map view</string>
<string name="audio">Audio</string> <string name="audio">Audio</string>
<string name="video">Video</string> <string name="video">Video</string>
<string name="photo">Photo</string> <string name="photo">Photo</string>

View file

@ -25,12 +25,11 @@ public class NauticalMapsPlugin extends OsmandPlugin {
this.app = app; this.app = app;
} }
@Override @Override
public String getDescription() { public String getDescription() {
return "Activating this view changes the map style to Nautical, thus showing all nautical navigation marks and chart symbols.\n\n" return app.getString(net.osmand.plus.R.string.plugin_nautical_descr1) + "\n\n"
+ "A map file containing all nautical symbols globally is availabe as one single download called \'World seamarks\'.\n\n" + app.getString(net.osmand.plus.R.string.plugin_nautical_descr2) + "\n\n"
+ "This view can be reverted by either de-activating it again here, or by changing the \'Map style\' under \'Configure map\' as desired."; + app.getString(net.osmand.plus.R.string.plugin_nautical_descr3);
} }
@Override @Override
@ -80,13 +79,11 @@ public class NauticalMapsPlugin extends OsmandPlugin {
} }
} }
@Override @Override
public String getId() { public String getId() {
return ID; return ID;
} }
@Override @Override
public Class<? extends Activity> getSettingsActivity() { public Class<? extends Activity> getSettingsActivity() {
return null; return null;

View file

@ -2,6 +2,7 @@ package net.osmand.plus.skimapsplugin;
import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandPlugin;
import net.osmand.plus.R;
import net.osmand.plus.render.RendererRegistry; import net.osmand.plus.render.RendererRegistry;
import android.app.Activity; import android.app.Activity;
@ -18,9 +19,9 @@ public class SkiMapsPlugin extends OsmandPlugin {
@Override @Override
public String getDescription() { public String getDescription() {
return "Activating this view changes the map style to \'Winter and ski\', showing all landscape features under wintery conditions." return app.getString(net.osmand.plus.R.string.plugin_ski_descr1) + "\n\n"
+ "A global map displaying all ski slopes and cross country ski routes in this view is available under Downloads as \'World ski map\'.\n\n" + app.getString(net.osmand.plus.R.string.plugin_ski_descr2) + "\n\n"
+ "This view can be reverted by either de-activating it again here, or by changing the \'Map style\' under \'Configure map\' as desired."; + app.getString(net.osmand.plus.R.string.plugin_ski_descr3);
} }
@Override @Override

View file

@ -19,15 +19,15 @@ public class TouringViewPlugin extends OsmandPlugin {
@Override @Override
public String getDescription() { public String getDescription() {
return "Activating this view changes the map style to \'Touring view\', this is a special high-detail view for travelers and professional drivers.\n\n" return app.getString(net.osmand.plus.R.string.plugin_touringview_descr1) + "\n\n"
+ "This view provides, at any give map zoom, the maximum amount of travel details available in the map data (particularly roads, tracks, paths, and orientation marks), and clearly depicts all types of roads unambiguously by color coding, which is useful when e.g. driving large vehicles.\n\n" + app.getString(net.osmand.plus.R.string.plugin_touringview_descr2) + "\n\n"
+ "A special map download is not needed, the view is created from our standard maps.\n\n" + app.getString(net.osmand.plus.R.string.plugin_touringview_descr3) + "\n\n"
+ "This view can be reverted by either de-activating it again here, or by changing the \'Map style\' under \'Configure map\' as desired."; + app.getString(net.osmand.plus.R.string.plugin_touringview_descr4);
} }
@Override @Override
public String getName() { public String getName() {
return app.getString(net.osmand.plus.R.string.plugin_touring_view); return app.getString(net.osmand.plus.R.string.plugin_touringview_name);
} }
@Override @Override