← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/string-fixes into lp:widelands

 

GunChleoc has proposed merging lp:~widelands-dev/widelands/string-fixes into lp:widelands.

Commit message:
Fixed editor tooltips and renamed "Noise height" to "Random height".

Requested reviews:
  Widelands Developers (widelands-dev)
Related bugs:
  Bug #1421942 in widelands: "Unified term for "Black" and "Wasteland""
  https://bugs.launchpad.net/widelands/+bug/1421942
  Bug #1487887 in widelands: "Translation missing in editor and in replay tooltip"
  https://bugs.launchpad.net/widelands/+bug/1487887
  Bug #1530240 in widelands: "wrong text in the tribal encyclopedia for the battle ax"
  https://bugs.launchpad.net/widelands/+bug/1530240
  Bug #1530398 in widelands: "Wrong text above marble mine"
  https://bugs.launchpad.net/widelands/+bug/1530398
  Bug #1547909 in widelands: "Some strings in the editor cannot be translated"
  https://bugs.launchpad.net/widelands/+bug/1547909

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/string-fixes/+merge/291335

The tooltips were creating issues with Slavic languages.

I also renamed "Noise height" to "Random height" - I think the name was too technical.
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/string-fixes into lp:widelands.
=== modified file 'src/editor/ui_menus/tool_change_height_options_menu.cc'
--- src/editor/ui_menus/tool_change_height_options_menu.cc	2016-04-06 17:27:10 +0000
+++ src/editor/ui_menus/tool_change_height_options_menu.cc	2016-04-08 07:36:16 +0000
@@ -22,8 +22,6 @@
 #include <cstdio>
 #include <string>
 
-#include <boost/format.hpp>
-
 #include "base/i18n.h"
 #include "editor/editorinteractive.h"
 #include "editor/tools/increase_height_tool.h"
@@ -52,16 +50,10 @@
 {
 	change_by_.set_tooltip(
 				/** TRANSLATORS: Editor change height access keys. **/
-				(boost::format(_("Use %s to increase, %s to decrease"))
-				 /** TRANSLATORS: This is an access key combination. Localize, but do not change the key. **/
-				 % _("Click")
-				 /** TRANSLATORS: This is an access key combination. Localize, but do not change the key. **/
-				 % _("Shift + Click")).str());
+				_("Click on the map to increase, Shift + Click on the map to decrease terrain height"));
 	set_to_.set_tooltip(
 				/** TRANSLATORS: Editor set height access key. **/
-				(boost::format(_("Use %s to set to this value"))
-				 /** TRANSLATORS: This is an access key combination. Localize, but do not change the key. **/
-				 % _("Ctrl + Click")).str());
+				_("Ctrl + Click on the map to set terrain height"));
 
 	change_by_.changed.connect
 		(boost::bind

=== modified file 'src/editor/ui_menus/tool_change_resources_options_menu.cc'
--- src/editor/ui_menus/tool_change_resources_options_menu.cc	2016-04-06 17:27:10 +0000
+++ src/editor/ui_menus/tool_change_resources_options_menu.cc	2016-04-08 07:36:16 +0000
@@ -68,17 +68,12 @@
 {
 	// Configure spin boxes
 	change_by_.set_tooltip(
-				/** TRANSLATORS: Editor change resources access keys. **/
-				(boost::format(_("Use %s to increase, %s to decrease"))
-				 /** TRANSLATORS: This is an access key combination. Localize, but do not change the key. **/
-				 % _("Click")
-				 /** TRANSLATORS: This is an access key combination. Localize, but do not change the key. **/
-				 % _("Shift + Click")).str());
+				/** TRANSLATORS: Editor change rseources access keys. **/
+				_("Click on the map to increase, "
+				  "Shift + Click on the map to decrease the amount of the selected resource"));
 	set_to_.set_tooltip(
-				/** TRANSLATORS: Editor set resources access key. **/
-				(boost::format(_("Use %s to set to this value"))
-				 /** TRANSLATORS: This is an access key combination. Localize, but do not change the key. **/
-				 % _("Ctrl + Click")).str());
+				/** TRANSLATORS: Editor set rseources access key. **/
+				_("Ctrl + Click on the map to set the amount of the selected resource"));
 
 	change_by_.changed.connect
 		(boost::bind

=== modified file 'src/editor/ui_menus/tool_menu.cc'
--- src/editor/ui_menus/tool_menu.cc	2016-04-06 09:23:04 +0000
+++ src/editor/ui_menus/tool_menu.cc	2016-04-08 07:36:16 +0000
@@ -64,7 +64,7 @@
    pos.x += width + spacing;                                                  \
 
 	ADD_BUTTON("change_height",    _("Change height"));
-	ADD_BUTTON("noise_height",     _("Noise height"));
+	ADD_BUTTON("noise_height",     _("Random height"));
 	ADD_BUTTON("set_terrain",      _("Terrain"));
 	ADD_BUTTON("place_immovable",  _("Immovables"));
 	ADD_BUTTON("place_bob",        _("Animals"));

=== modified file 'src/editor/ui_menus/tool_noise_height_options_menu.cc'
--- src/editor/ui_menus/tool_noise_height_options_menu.cc	2016-04-07 06:06:42 +0000
+++ src/editor/ui_menus/tool_noise_height_options_menu.cc	2016-04-08 07:36:16 +0000
@@ -21,8 +21,6 @@
 
 #include <cstdio>
 
-#include <boost/format.hpp>
-
 #include "base/i18n.h"
 #include "editor/editorinteractive.h"
 #include "editor/tools/decrease_height_tool.h"
@@ -40,7 +38,7 @@
 	 EditorNoiseHeightTool   & noise_tool,
 	 UI::UniqueWindow::Registry & registry)
 	:
-	EditorToolOptionsMenu(parent, registry, 300, 120, _("Noise Height Options")),
+	EditorToolOptionsMenu(parent, registry, 300, 120, _("Random Height Options")),
 	noise_tool_(noise_tool),
 	box_(this, hmargin(), vmargin(), UI::Box::Vertical, 0, 0, vspacing()),
 	lower_(&box_, 0, 0, get_inner_w() - 2 * hmargin(), 80,
@@ -60,16 +58,14 @@
 			  UI::SpinBox::Type::kSmall)
 {
 	lower_.set_tooltip(
-				/** TRANSLATORS: Editor noise height access keys. **/
-				_("Click to set the height to a random value within the specified range"));
+				/** TRANSLATORS: Editor random height access key. **/
+				_("Click on the map to set terrain height to a random value within the specified range"));
 	upper_.set_tooltip(
-				/** TRANSLATORS: Editor noise height access keys. **/
-				_("Click to set the height to a random value within the specified range"));
+				/** TRANSLATORS: Editor random height access key. **/
+				_("Click on the map to set terrain height to a random value within the specified range"));
 	set_to_.set_tooltip(
-				/** TRANSLATORS: Editor set hoise height access keys. **/
-				(boost::format(_("Use %s to set to this value"))
-				 /** TRANSLATORS: This is an access key combination. Localize, but do not change the key. **/
-				 % _("Ctrl + Click")).str());
+				/** TRANSLATORS: Editor set height access key. **/
+				_("Ctrl + Click on the map to set terrain height"));
 
 	lower_.changed.connect
 		(boost::bind


Follow ups