Skip to content

Commit

Permalink
Fix "Translation of items in the help #20558"
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-kutz committed Sep 29, 2024
1 parent eb2a9dd commit dfb958c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OsmAnd/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
- For wording and consistency, please note https://docs.osmand.net/docs/technical/contributions/translating-osmand
Thx - Hardy
-->
<string name="help_article_personal_color_palette_schemes_name">Color Schemes</string>
<string name="movies_list">Movies list</string>
<string name="third_links">Third Links</string>
<string name="reset_average_speed">Reset average speed</string>
<string name="unknown_bt_device">Unknown device</string>
<string name="obd_vin">VIN</string>
Expand Down
16 changes: 16 additions & 0 deletions OsmAnd/src/net/osmand/plus/help/HelpArticleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ private static String getArticlePairedName(@NonNull Context ctx, @NonNull String
case "plugins_custom":
return ctx.getString(R.string.custom_osmand_plugin);
case "search":
case "web_web_search":
return ctx.getString(R.string.shared_string_search);
case "map_legend":
return ctx.getString(R.string.map_legend);
case "map":
case "web_web_map":
return ctx.getString(R.string.shared_string_map);
case "map_configure_map_menu":
return ctx.getString(R.string.configure_map);
Expand All @@ -137,10 +139,12 @@ private static String getArticlePairedName(@NonNull Context ctx, @NonNull String
case "personal_myplaces":
return ctx.getString(R.string.shared_string_my_places);
case "personal_osmand_cloud":
case "web_web_cloud":
return ctx.getString(R.string.osmand_cloud);
case "personal_tracks":
return ctx.getString(R.string.shared_string_gpx_tracks);
case "plan_route_create_route":
case "web_planner":
return ctx.getString(R.string.plan_a_route);
case "plan_route_travel_guides":
return ctx.getString(R.string.wikivoyage_travel_guide);
Expand All @@ -161,6 +165,18 @@ private static String getArticlePairedName(@NonNull Context ctx, @NonNull String
return ctx.getString(R.string.map_widget_config);
case "widgets_quick_action":
return ctx.getString(R.string.quick_action_item);
case "plugins_topography":
return ctx.getString(R.string.srtm_plugin_name);
case "web":
return ctx.getString(R.string.website);
case "troubleshooting_third_links":
return ctx.getString(R.string.third_links);
case "Movies list":
return ctx.getString(R.string.movies_list);
case "personal_maps_resources":
return ctx.getString(R.string.maps_and_resources);
case "route_parameters":
return ctx.getString(R.string.route_parameters);
}
return null;
}
Expand Down

0 comments on commit dfb958c

Please sign in to comment.