Merge lp:~widelands-dev/widelands/bug_1736095_improve_text_for_resources_height into lp:widelands
- bug_1736095_improve_text_for_resources_height
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8541 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug_1736095_improve_text_for_resources_height | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
801 lines (+114/-64) 37 files modified
data/campaigns/tutorial01_basic_control.wmf/scripting/texts.lua (+1/-1) data/campaigns/tutorial04_economy.wmf/scripting/texts.lua (+3/-3) src/editor/editorinteractive.cc (+7/-7) src/editor/ui_menus/main_menu_load_map.cc (+1/-1) src/editor/ui_menus/main_menu_map_options.cc (+1/-1) src/editor/ui_menus/main_menu_random_map.cc (+1/-1) src/editor/ui_menus/main_menu_save_map.cc (+1/-1) src/editor/ui_menus/tool_change_height_options_menu.cc (+2/-2) src/editor/ui_menus/tool_change_resources_options_menu.cc (+7/-7) src/editor/ui_menus/tool_noise_height_options_menu.cc (+5/-5) src/logic/replay_game_controller.cc (+1/-1) src/ui_basic/button.h (+6/-0) src/ui_basic/checkbox.h (+5/-0) src/ui_basic/dropdown.h (+4/-0) src/ui_basic/editbox.h (+2/-0) src/ui_basic/listselect.h (+6/-0) src/ui_basic/messagebox.h (+2/-0) src/ui_basic/multilineeditbox.h (+2/-0) src/ui_basic/radiobutton.h (+3/-0) src/ui_basic/slider.h (+3/-0) src/ui_basic/spinbox.h (+3/-0) src/ui_basic/table.h (+7/-2) src/ui_basic/tabpanel.h (+11/-3) src/ui_basic/window.h (+1/-0) src/ui_fsmenu/internet_lobby.cc (+1/-1) src/ui_fsmenu/launch_mpg.cc (+1/-1) src/ui_fsmenu/options.cc (+4/-4) src/wlapplication.cc (+1/-1) src/wui/building_statistics_menu.cc (+3/-3) src/wui/game_options_sound_menu.cc (+4/-4) src/wui/game_statistics_menu.cc (+3/-3) src/wui/interactive_player.cc (+3/-3) src/wui/interactive_spectator.cc (+4/-4) src/wui/load_or_save_game.cc (+1/-1) src/wui/shipwindow.cc (+1/-1) src/wui/soldierlist.cc (+2/-2) src/wui/ware_statistics_menu.cc (+1/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug_1736095_improve_text_for_resources_height | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
kaputtnik (community) | Needs Fixing | ||
Review via email: mp+335130@code.launchpad.net |
Commit message
Changed texts for editor place resources and set height. Instituted policy for Title Case/Sentence case.
Description of the change
Changed texts for editor place resources and set height.
There is one thing with place resource: The text "Increase/Decrease Amount by:" breaks after "Amount" and is shown now in two rows.
And i am not sure if "Amount" should be uppercase.
bunnybot (widelandsofficial) wrote : | # |
GunChleoc (gunchleoc) wrote : | # |
I have made some more room for the label. Dynamic width would be better for translations, but that's a problem for another day.
> And i am not sure if "Amount" should be uppercase.
Good point - we're not entirely consistent here. So, I have established some conventions (documented in the code in ui_basic) and fixed the labels. What do you think?
Conventions are inspired by:
https:/
kaputtnik (franku) wrote : | # |
I found another "Set Value" in the "Random height" tool and changed it.
> What do you think?
You're asking the wrong person here, i am struggling already with german spelling rules :-D
But having a general rule is good.
I tried to run through all menus with those rules in mind, at least in the editor, and found three things:
Terrains: The tooltip for each terrain says "Name: properties" starting lowercase after the colon. Not sure if this is good practice in english.
Load/Save map: There is the string "Current Directory". It should be "Current directory"? If the "Title Rule" applies here, there are other terms which should be changed, eg. in Map Options: "Map name:" -> "Map Name:" or in Random Map: "Random number" -> "Random Number"?
Bottom menu: There we have e.g. "Main Menu" and "Tool Size" but "Reset zoom" (lowercase "z"). If we apply the rule here, it should be e.g. "Main menu"? On the other side i think the bottom menu is very importand and the Tooltips are more like a Window title. So the rule "title case" would also fit and we change "Reset zoom" to "Reset Zoom"?
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 2959. State: passed. Details: https:/
Appveyor build 2768. State: success. Details: https:/
kaputtnik (franku) wrote : | # |
The text "... This will replace already set resources." is obviously wrong. At least with trunk holding down CTRL and place resources does not remove already set resources.
GunChleoc (gunchleoc) wrote : | # |
> Terrains: The tooltip for each terrain says "Name: properties" starting lowercase after the colon. Not sure if this is good practice in english.
It is:
https:/
> While it is acceptable to capitalize the first letter after the colon in American English, it is not the case in British English.
So, we can pick either one, as long as we're consistent. I like the lower-case option better, simply because it makes life easier for the BE translation.
Unlike the Eclipse project, I decided not to use Title Case in tooltips. Some of your tooltips are quite long, and would be hard to read. We could still have title case for short tooltips and sentence case for long tooltips, but then it would become confusing, because we would have to decide for each tooltip whether it is short or long.
I have fixed some more tooltips to switch them to sentence case.
> The text "... This will replace already set resources." is obviously wrong. At least with trunk holding down CTRL and place resources does not remove already set resources.
I just tested it and this is exactly what it does - I placed a lot of coal, switched to gold, held down CTRL and it gave me the set amount of gold. So, I don't know what you mean here.
kaputtnik (franku) wrote : | # |
Please only one rule for tooltips.
>> The text "... This will replace already set resources." is obviously wrong. At least with trunk holding down CTRL and place resources does not remove already set resources.
> I just tested it and this is exactly what it does - I placed a lot of coal, switched to gold, held down CTRL and it gave me the set amount of gold. So, I don't know what you mean here.
Please try this:
1. Place one coal
2. Set 'Set Value' to 63
3. Choose Iron
4. Hold CTRL and replacing the coal with iron works
5. Choose Gold
6. Hold down CTRL and try to replace Iron with Gold
Now it's not working, Iron stays there. Didn't i understand how this works or is there a bug?
GunChleoc (gunchleoc) wrote : | # |
You have found a bug. I've files it: https:/
kaputtnik (franku) wrote : | # |
So the new bug is what the bug description of this merge proposal depends on ;)
Is there anything left what i can do in this merge proposal then? Feel free to give me some stupid work :-)
GunChleoc (gunchleoc) wrote : | # |
No, let's have it!
@bunnybot merge
bunnybot (widelandsofficial) wrote : | # |
Error merging this proposal:
Output:
stdout:
stderr:
M data/campaigns/
M data/campaigns/
M src/editor/
M src/editor/
M src/editor/
M src/editor/
M src/editor/
M src/editor/
M src/editor/
M src/editor/
M src/logic/
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/ui_
M src/wlapplicati
M src/wui/
M src/wui/
M src/wui/
M src/wui/
M src/wui/
M src/wui/
M src/wui/
M src/wui/
M src/wui/
Text conflict in src/ui_
1 conflicts encountered.
GunChleoc (gunchleoc) wrote : | # |
@bunnybot merge
Preview Diff
1 | === modified file 'data/campaigns/tutorial01_basic_control.wmf/scripting/texts.lua' |
2 | --- data/campaigns/tutorial01_basic_control.wmf/scripting/texts.lua 2017-03-04 08:23:06 +0000 |
3 | +++ data/campaigns/tutorial01_basic_control.wmf/scripting/texts.lua 2017-12-19 08:24:19 +0000 |
4 | @@ -41,7 +41,7 @@ |
5 | h1(_"Let’s dive right in!") .. |
6 | p(_[[There are three different tribes in Widelands: the Barbarians, the Empire and the Atlanteans. All tribes have a different economy, strength and weaknesses, but the general gameplay is the same for all. We will play the Barbarians for now.]]) .. |
7 | p(_[[You will usually start the game with one headquarters. This is the big building with the blue flag in front of it. The headquarters is a warehouse that stores wares, workers and soldiers. Some wares are needed for building houses, others for making other wares. Obviously, the wares in the headquarters will not last forever, so you must make sure to replace them. The most important wares in the early game are the basic construction wares: logs and granite. Let’s make sure that we do not run out of logs. For this, we need a lumberjack and a hut for him to stay in.]]) .. |
8 | - p(_[[We need to find a nice place for the lumberjack’s hut. To make this easier, we can activate ‘Show Building Spaces’. There are two ways you can do this, either by clicking on the ‘Show Building Spaces’ button at the bottom of the screen, which is the fourth one from the left. Or you can use the Space key to toggle it.]]) .. |
9 | + p(_[[We need to find a nice place for the lumberjack’s hut. To make this easier, we can activate ‘Show building spaces’. There are two ways you can do this, either by clicking on the ‘Show building spaces’ button at the bottom of the screen, which is the fourth one from the left. Or you can use the Space key to toggle it.]]) .. |
10 | paragraphdivider() .. |
11 | listitem_bullet(_[[Left-click the ‘OK’ button to close this box and then try it.]]) |
12 | ), |
13 | |
14 | === modified file 'data/campaigns/tutorial04_economy.wmf/scripting/texts.lua' |
15 | --- data/campaigns/tutorial04_economy.wmf/scripting/texts.lua 2016-09-20 17:01:35 +0000 |
16 | +++ data/campaigns/tutorial04_economy.wmf/scripting/texts.lua 2017-12-19 08:24:19 +0000 |
17 | @@ -89,12 +89,12 @@ |
18 | ) .. |
19 | rt( |
20 | h2(_[[Now it’s your turn]]) .. |
21 | - p(_[[This is enough explanation for now. Now try it out yourself. We want to know whether we still have taverns, so you have to choose the ‘Medium Buildings’ tab. Close the building statistics menu afterwards.]]) |
22 | + p(_[[This is enough explanation for now. Now try it out yourself. We want to know whether we still have taverns, so you have to choose the ‘Medium buildings’ tab. Close the building statistics menu afterwards.]]) |
23 | ), |
24 | obj_name = "check_taverns", |
25 | obj_title = _"Look up how many taverns you have.", |
26 | obj_body = rt( |
27 | - listitem_bullet(_[[Choose the ‘Medium Buildings’ tab in the building statistics window.]]) .. |
28 | + listitem_bullet(_[[Choose the ‘Medium buildings’ tab in the building statistics window.]]) .. |
29 | listitem_bullet(_[[Look up how many taverns you have.]]) .. |
30 | listitem_arrow(_[[Below every building, there are two lines. The first one shows the number of buildings you own and how many are under construction. The second line shows the average productivity if it is a production site or training site, or the stationed and desired soldiers in military buildings.]]) .. |
31 | listitem_bullet(_[[Close the building statistics window when you are done.]]) |
32 | @@ -272,7 +272,7 @@ |
33 | p(_[[In this menu window, you can select wares to see how their production or consumption has changed over time. Try it out with some wares.]]) .. |
34 | paragraphdivider() .. |
35 | listitem_bullet(_[[I’ll continue as soon as you click on the]])) .. |
36 | - rt("image=images/wui/stats/menu_tab_wares_econ_health.png",p(_[[third tab (‘Economy Health’).]]) |
37 | + rt("image=images/wui/stats/menu_tab_wares_econ_health.png",p(_[[third tab (‘Economy health’).]]) |
38 | ), |
39 | h = 250, |
40 | show_instantly = true, |
41 | |
42 | === modified file 'src/editor/editorinteractive.cc' |
43 | --- src/editor/editorinteractive.cc 2017-12-03 08:23:27 +0000 |
44 | +++ src/editor/editorinteractive.cc 2017-12-19 08:24:19 +0000 |
45 | @@ -75,7 +75,7 @@ |
46 | tools_(new Tools()), |
47 | history_(nullptr) // history needs the undo/redo buttons |
48 | { |
49 | - add_toolbar_button("wui/menus/menu_toggle_menu", "menu", _("Main Menu"), &mainmenu_, true); |
50 | + add_toolbar_button("wui/menus/menu_toggle_menu", "menu", _("Main menu"), &mainmenu_, true); |
51 | mainmenu_.open_window = [this] { new EditorMainMenu(*this, mainmenu_); }; |
52 | |
53 | add_toolbar_button( |
54 | @@ -83,7 +83,7 @@ |
55 | toolmenu_.open_window = [this] { new EditorToolMenu(*this, toolmenu_); }; |
56 | |
57 | add_toolbar_button( |
58 | - "wui/editor/editor_menu_set_toolsize_menu", "toolsize", _("Tool Size"), &toolsizemenu_, true); |
59 | + "wui/editor/editor_menu_set_toolsize_menu", "toolsize", _("Tool size"), &toolsizemenu_, true); |
60 | toolsizemenu_.open_window = [this] { new EditorToolsizeMenu(*this, toolsizemenu_); }; |
61 | |
62 | add_toolbar_button( |
63 | @@ -96,18 +96,18 @@ |
64 | toolbar()->add_space(15); |
65 | |
66 | toggle_buildhelp_ = add_toolbar_button( |
67 | - "wui/menus/menu_toggle_buildhelp", "buildhelp", _("Show Building Spaces (on/off)")); |
68 | + "wui/menus/menu_toggle_buildhelp", "buildhelp", _("Show building spaces (on/off)")); |
69 | toggle_buildhelp_->sigclicked.connect(boost::bind(&EditorInteractive::toggle_buildhelp, this)); |
70 | toggle_immovables_ = add_toolbar_button( |
71 | - "wui/menus/menu_toggle_immovables", "immovables", _("Show Immovables (on/off)")); |
72 | + "wui/menus/menu_toggle_immovables", "immovables", _("Show immovables (on/off)")); |
73 | toggle_immovables_->set_perm_pressed(true); |
74 | toggle_immovables_->sigclicked.connect([this]() { toggle_immovables(); }); |
75 | toggle_bobs_ = |
76 | - add_toolbar_button("wui/menus/menu_toggle_bobs", "animals", _("Show Animals (on/off)")); |
77 | + add_toolbar_button("wui/menus/menu_toggle_bobs", "animals", _("Show animals (on/off)")); |
78 | toggle_bobs_->set_perm_pressed(true); |
79 | toggle_bobs_->sigclicked.connect([this]() { toggle_bobs(); }); |
80 | toggle_resources_ = add_toolbar_button( |
81 | - "wui/menus/menu_toggle_resources", "resources", _("Show Resources (on/off)")); |
82 | + "wui/menus/menu_toggle_resources", "resources", _("Show resources (on/off)")); |
83 | toggle_resources_->set_perm_pressed(true); |
84 | toggle_resources_->sigclicked.connect([this]() { toggle_resources(); }); |
85 | |
86 | @@ -163,7 +163,7 @@ |
87 | std::unique_ptr<Widelands::MapLoader> ml(map->get_correct_loader(filename)); |
88 | if (!ml.get()) |
89 | throw WLWarning( |
90 | - _("Unsupported format"), |
91 | + _("Unsupported Format"), |
92 | _("Widelands could not load the file \"%s\". The file format seems to be incompatible."), |
93 | filename.c_str()); |
94 | ml->preload_map(true); |
95 | |
96 | === modified file 'src/editor/ui_menus/main_menu_load_map.cc' |
97 | --- src/editor/ui_menus/main_menu_load_map.cc 2017-01-25 18:55:59 +0000 |
98 | +++ src/editor/ui_menus/main_menu_load_map.cc 2017-12-19 08:24:19 +0000 |
99 | @@ -71,7 +71,7 @@ |
100 | boost::replace_first(display_dir, "MP_Scenarios", _("Multiplayer Scenarios")); |
101 | } |
102 | /** TRANSLATORS: The folder that a file will be saved to. */ |
103 | - directory_info_.set_text((boost::format(_("Current Directory: %s")) % display_dir).str()); |
104 | + directory_info_.set_text((boost::format(_("Current directory: %s")) % display_dir).str()); |
105 | } |
106 | |
107 | /** |
108 | |
109 | === modified file 'src/editor/ui_menus/main_menu_map_options.cc' |
110 | --- src/editor/ui_menus/main_menu_map_options.cc 2017-08-19 22:22:20 +0000 |
111 | +++ src/editor/ui_menus/main_menu_map_options.cc 2017-12-19 08:24:19 +0000 |
112 | @@ -106,7 +106,7 @@ |
113 | g_gr->images().get("images/ui_basic/but1.png"), |
114 | g_gr->images().get("images/ui_basic/but1.png")); |
115 | |
116 | - main_box_.add(new UI::Textarea(&main_box_, 0, 0, max_w_, labelh_, _("Map Name:"))); |
117 | + main_box_.add(new UI::Textarea(&main_box_, 0, 0, max_w_, labelh_, _("Map name:"))); |
118 | main_box_.add(&name_); |
119 | main_box_.add_space(indent_); |
120 | |
121 | |
122 | === modified file 'src/editor/ui_menus/main_menu_random_map.cc' |
123 | --- src/editor/ui_menus/main_menu_random_map.cc 2017-08-20 17:45:42 +0000 |
124 | +++ src/editor/ui_menus/main_menu_random_map.cc 2017-12-19 08:24:19 +0000 |
125 | @@ -189,7 +189,7 @@ |
126 | island_mode_(&box_, Vector2i::zero(), _("Island mode")), |
127 | // Geeky stuff |
128 | map_number_box_(&box_, 0, 0, UI::Box::Horizontal, 0, 0, margin_), |
129 | - map_number_label_(&map_number_box_, 0, 0, _("Random Number:")), |
130 | + map_number_label_(&map_number_box_, 0, 0, _("Random number:")), |
131 | map_number_edit_(&map_number_box_, |
132 | 0, |
133 | 0, |
134 | |
135 | === modified file 'src/editor/ui_menus/main_menu_save_map.cc' |
136 | --- src/editor/ui_menus/main_menu_save_map.cc 2017-12-02 11:41:19 +0000 |
137 | +++ src/editor/ui_menus/main_menu_save_map.cc 2017-12-19 08:24:19 +0000 |
138 | @@ -221,7 +221,7 @@ |
139 | curdir_ = filename; |
140 | directory_info_.set_text( |
141 | /** TRANSLATORS: The folder that a file will be saved to. */ |
142 | - (boost::format(_("Current Directory: %s")) % (_("My Maps") + curdir_.substr(basedir_.size()))) |
143 | + (boost::format(_("Current directory: %s")) % (_("My Maps") + curdir_.substr(basedir_.size()))) |
144 | .str()); |
145 | } |
146 | |
147 | |
148 | === modified file 'src/editor/ui_menus/tool_change_height_options_menu.cc' |
149 | --- src/editor/ui_menus/tool_change_height_options_menu.cc 2017-02-25 11:17:28 +0000 |
150 | +++ src/editor/ui_menus/tool_change_height_options_menu.cc 2017-12-19 08:24:19 +0000 |
151 | @@ -44,7 +44,7 @@ |
152 | increase_tool_.get_change_by(), |
153 | 1, |
154 | MAX_FIELD_HEIGHT_DIFF, |
155 | - _("Increase/Decrease Value:"), |
156 | + _("Increase/Decrease height by:"), |
157 | UI::SpinBox::Units::kNone, |
158 | g_gr->images().get("images/ui_basic/but1.png"), |
159 | UI::SpinBox::Type::kSmall), |
160 | @@ -56,7 +56,7 @@ |
161 | increase_tool_.set_tool().get_interval().min, |
162 | 0, |
163 | MAX_FIELD_HEIGHT, |
164 | - _("Set Value:"), |
165 | + _("Set height to:"), |
166 | UI::SpinBox::Units::kNone, |
167 | g_gr->images().get("images/ui_basic/but1.png"), |
168 | UI::SpinBox::Type::kSmall) { |
169 | |
170 | === modified file 'src/editor/ui_menus/tool_change_resources_options_menu.cc' |
171 | --- src/editor/ui_menus/tool_change_resources_options_menu.cc 2017-09-01 15:45:59 +0000 |
172 | +++ src/editor/ui_menus/tool_change_resources_options_menu.cc 2017-12-19 08:24:19 +0000 |
173 | @@ -46,7 +46,7 @@ |
174 | EditorInteractive& parent, |
175 | EditorIncreaseResourcesTool& increase_tool, |
176 | UI::UniqueWindow::Registry& registry) |
177 | - : EditorToolOptionsMenu(parent, registry, 350, 120, _("Resources")), |
178 | + : EditorToolOptionsMenu(parent, registry, 370, 120, _("Resources")), |
179 | increase_tool_(increase_tool), |
180 | box_(this, hmargin(), vmargin(), UI::Box::Vertical, 0, 0, vspacing()), |
181 | change_by_(&box_, |
182 | @@ -57,7 +57,7 @@ |
183 | increase_tool_.get_change_by(), |
184 | 1, |
185 | kMaxValue, |
186 | - _("Increase/Decrease Value:"), |
187 | + _("Increase/Decrease amount by:"), |
188 | UI::SpinBox::Units::kNone, |
189 | g_gr->images().get("images/ui_basic/but1.png"), |
190 | UI::SpinBox::Type::kSmall), |
191 | @@ -69,7 +69,7 @@ |
192 | increase_tool_.set_tool().get_set_to(), |
193 | 0, |
194 | kMaxValue, |
195 | - _("Set Value:"), |
196 | + _("Set amount to:"), |
197 | UI::SpinBox::Units::kNone, |
198 | g_gr->images().get("images/ui_basic/but1.png"), |
199 | UI::SpinBox::Type::kSmall), |
200 | @@ -82,7 +82,7 @@ |
201 | "Shift + Click on the map to decrease the amount of the selected resource")); |
202 | set_to_.set_tooltip( |
203 | /** TRANSLATORS: Editor set rseources access key. **/ |
204 | - _("Ctrl + Click on the map to set the amount of the selected resource")); |
205 | + _("Ctrl + Click on the map to set the amount of the selected resource. This will replace already set resources.")); |
206 | |
207 | change_by_.changed.connect( |
208 | boost::bind(&EditorToolChangeResourcesOptionsMenu::update_change_by, boost::ref(*this))); |
209 | @@ -94,16 +94,16 @@ |
210 | box_.set_size(get_inner_w() - 2 * hmargin(), change_by_.get_h() + set_to_.get_h() + vspacing()); |
211 | |
212 | // Add resource buttons |
213 | + resources_box_.add_inf_space(); |
214 | const Widelands::World& world = parent.egbase().world(); |
215 | - const Widelands::DescriptionIndex nr_resources = world.get_nr_resources(); |
216 | - |
217 | - for (Widelands::DescriptionIndex i = 0; i < nr_resources; ++i) { |
218 | + for (Widelands::DescriptionIndex i = 0; i < world.get_nr_resources(); ++i) { |
219 | const Widelands::ResourceDescription& resource = *world.get_resource(i); |
220 | radiogroup_.add_button(&resources_box_, Vector2i::zero(), |
221 | g_gr->images().get(resource.representative_image()), |
222 | resource.descname()); |
223 | resources_box_.add(radiogroup_.get_first_button(), UI::Box::Resizing::kFillSpace); |
224 | } |
225 | + resources_box_.add_inf_space(); |
226 | |
227 | box_.add_space(vspacing()); |
228 | box_.add(&resources_box_, UI::Box::Resizing::kFullSize); |
229 | |
230 | === modified file 'src/editor/ui_menus/tool_noise_height_options_menu.cc' |
231 | --- src/editor/ui_menus/tool_noise_height_options_menu.cc 2017-02-25 11:17:28 +0000 |
232 | +++ src/editor/ui_menus/tool_noise_height_options_menu.cc 2017-12-19 08:24:19 +0000 |
233 | @@ -47,7 +47,7 @@ |
234 | noise_tool_.get_interval().min, |
235 | 1, |
236 | MAX_FIELD_HEIGHT, |
237 | - _("Minimum Height:"), |
238 | + _("Minimum height:"), |
239 | UI::SpinBox::Units::kNone, |
240 | g_gr->images().get("images/ui_basic/but1.png"), |
241 | UI::SpinBox::Type::kSmall), |
242 | @@ -59,7 +59,7 @@ |
243 | noise_tool_.get_interval().max, |
244 | 0, |
245 | MAX_FIELD_HEIGHT, |
246 | - _("Maximum Height:"), |
247 | + _("Maximum height:"), |
248 | UI::SpinBox::Units::kNone, |
249 | g_gr->images().get("images/ui_basic/but1.png"), |
250 | UI::SpinBox::Type::kSmall), |
251 | @@ -71,7 +71,7 @@ |
252 | noise_tool_.set_tool().get_interval().min, |
253 | 0, |
254 | MAX_FIELD_HEIGHT, |
255 | - _("Set Value:"), |
256 | + _("Set height to:"), |
257 | UI::SpinBox::Units::kNone, |
258 | g_gr->images().get("images/ui_basic/but1.png"), |
259 | UI::SpinBox::Type::kSmall) { |
260 | @@ -93,14 +93,14 @@ |
261 | boost::bind(&EditorToolNoiseHeightOptionsMenu::update_set_to, boost::ref(*this))); |
262 | |
263 | UI::Textarea* label = |
264 | - new UI::Textarea(&box_, 0, 0, 0, 0, _("Random Height"), UI::Align::kCenter); |
265 | + new UI::Textarea(&box_, 0, 0, 0, 0, _("Random height"), UI::Align::kCenter); |
266 | label->set_fixed_width(get_inner_w() - 2 * hmargin()); |
267 | box_.add(label); |
268 | box_.add(&upper_); |
269 | box_.add(&lower_); |
270 | |
271 | box_.add_space(2 * vspacing()); |
272 | - label = new UI::Textarea(&box_, 0, 0, 0, 0, _("Fixed Height"), UI::Align::kCenter); |
273 | + label = new UI::Textarea(&box_, 0, 0, 0, 0, _("Fixed height"), UI::Align::kCenter); |
274 | label->set_fixed_width(get_inner_w() - 2 * hmargin()); |
275 | box_.add(label); |
276 | box_.add(&set_to_); |
277 | |
278 | === modified file 'src/logic/replay_game_controller.cc' |
279 | --- src/logic/replay_game_controller.cc 2017-08-19 22:22:20 +0000 |
280 | +++ src/logic/replay_game_controller.cc 2017-12-19 08:24:19 +0000 |
281 | @@ -94,7 +94,7 @@ |
282 | |
283 | void ReplayGameController::CmdReplayEnd::execute(Widelands::Game& game) { |
284 | game.game_controller()->set_desired_speed(0); |
285 | - UI::WLMessageBox mmb(game.get_ibase(), _("End of replay"), |
286 | + UI::WLMessageBox mmb(game.get_ibase(), _("End of Replay"), |
287 | _("The end of the replay has been reached and the game has " |
288 | "been paused. You may unpause the game and continue watching " |
289 | "if you want to."), |
290 | |
291 | === modified file 'src/ui_basic/button.h' |
292 | --- src/ui_basic/button.h 2017-11-27 08:21:32 +0000 |
293 | +++ src/ui_basic/button.h 2017-12-19 08:24:19 +0000 |
294 | @@ -59,6 +59,9 @@ |
295 | kUnscaled // Show the foreground image without any scaling |
296 | }; |
297 | |
298 | + /** |
299 | + * Text conventions: Title Case for the 'title_text', Sentence case for the 'tooltip_text' |
300 | + */ |
301 | Button /// for textual buttons |
302 | (Panel* const parent, |
303 | const std::string& name, |
304 | @@ -71,6 +74,9 @@ |
305 | const std::string& tooltip_text = std::string(), |
306 | UI::Button::Style init_style = UI::Button::Style::kRaised); |
307 | |
308 | + /** |
309 | + * Text conventions: Sentence case for the 'tooltip_text' |
310 | + */ |
311 | Button /// for pictorial buttons |
312 | (Panel* const parent, |
313 | const std::string& name, |
314 | |
315 | === modified file 'src/ui_basic/checkbox.h' |
316 | --- src/ui_basic/checkbox.h 2017-05-21 18:15:17 +0000 |
317 | +++ src/ui_basic/checkbox.h 2017-12-19 08:24:19 +0000 |
318 | @@ -104,6 +104,8 @@ |
319 | |
320 | /** |
321 | * Pictorial Checkbox |
322 | + * |
323 | + * Text conventions: Sentence case for the 'tooltip_text' |
324 | */ |
325 | Checkbox(Panel* const parent, |
326 | Vector2i const p, |
327 | @@ -116,6 +118,9 @@ |
328 | * Textual Checkbox |
329 | * If width is set to 0, the checkbox will set its width automatically. |
330 | * Otherwise, it will take up multiple lines if necessary (automatic height). |
331 | + * |
332 | + * |
333 | + * Text conventions: Sentence case both for the 'label_text' and the 'tooltip_text' |
334 | */ |
335 | Checkbox(Panel* const parent, |
336 | Vector2i const p, |
337 | |
338 | === modified file 'src/ui_basic/dropdown.h' |
339 | --- src/ui_basic/dropdown.h 2017-11-27 08:21:32 +0000 |
340 | +++ src/ui_basic/dropdown.h 2017-12-19 08:24:19 +0000 |
341 | @@ -132,6 +132,8 @@ |
342 | /// \param pic an image to illustrate the entry. Can be nullptr for textual dropdowns. |
343 | /// \param select_this whether this element should be selected |
344 | /// \param tooltip_text a tooltip for this entry |
345 | + /// |
346 | + /// Text conventions: Title Case for the 'name', Sentence case for the 'tooltip_text' |
347 | void add(const std::string& name, |
348 | uint32_t value, |
349 | const Image* pic = nullptr, |
350 | @@ -206,6 +208,8 @@ |
351 | /// \param type whether this is a textual or pictorial dropdown |
352 | /// \param background the background image for this dropdown |
353 | /// \param button_background the background image all buttons in this dropdown |
354 | + /// |
355 | + /// Text conventions: Title Case for all elements |
356 | Dropdown(Panel* parent, |
357 | int32_t x, |
358 | int32_t y, |
359 | |
360 | === modified file 'src/ui_basic/editbox.h' |
361 | --- src/ui_basic/editbox.h 2017-11-26 14:44:23 +0000 |
362 | +++ src/ui_basic/editbox.h 2017-12-19 08:24:19 +0000 |
363 | @@ -41,6 +41,8 @@ |
364 | * released and a callback function is called. |
365 | * If h == 0, height will be dynamic according to font set. |
366 | * If h > 0, margin_y has no effect. |
367 | + * |
368 | + * Text conventions: Sentence case for labels associated with the editbox |
369 | */ |
370 | struct EditBox : public Panel { |
371 | EditBox(Panel*, |
372 | |
373 | === modified file 'src/ui_basic/listselect.h' |
374 | --- src/ui_basic/listselect.h 2017-11-27 08:21:32 +0000 |
375 | +++ src/ui_basic/listselect.h 2017-12-19 08:24:19 +0000 |
376 | @@ -61,11 +61,17 @@ |
377 | |
378 | void clear(); |
379 | void sort(const uint32_t Begin = 0, uint32_t End = std::numeric_limits<uint32_t>::max()); |
380 | + /** |
381 | + * Text conventions: Title Case for the 'name', Sentence case for the 'tooltip_text' |
382 | + */ |
383 | void add(const std::string& name, |
384 | uint32_t value, |
385 | const Image* pic = nullptr, |
386 | const bool select_this = false, |
387 | const std::string& tooltip_text = std::string()); |
388 | + /** |
389 | + * Text conventions: Title Case for the 'name', Sentence case for the 'tooltip_text' |
390 | + */ |
391 | void add_front(const std::string& name, |
392 | const Image* pic = nullptr, |
393 | const bool select_this = false, |
394 | |
395 | === modified file 'src/ui_basic/messagebox.h' |
396 | --- src/ui_basic/messagebox.h 2017-02-23 19:38:51 +0000 |
397 | +++ src/ui_basic/messagebox.h 2017-12-19 08:24:19 +0000 |
398 | @@ -50,6 +50,8 @@ |
399 | * \note this function is named "WLMessageBox" instead of simply "MessageBox" |
400 | * because else linking on Windows (even with #undef MessageBox) will |
401 | * not work. |
402 | + * |
403 | + * Text conventions: Title Case for the 'caption', Sentence case for the 'text' |
404 | */ |
405 | struct WLMessageBox : public Window { |
406 | enum class MBoxType { kOk, kOkCancel }; |
407 | |
408 | === modified file 'src/ui_basic/multilineeditbox.h' |
409 | --- src/ui_basic/multilineeditbox.h 2017-08-18 14:27:26 +0000 |
410 | +++ src/ui_basic/multilineeditbox.h 2017-12-19 08:24:19 +0000 |
411 | @@ -32,6 +32,8 @@ |
412 | /** |
413 | * A panel that allows entering multi-line string, i.e. like a hybrid between |
414 | * @ref Editbox and @ref MultilineTextarea |
415 | + * |
416 | + * Text conventions: Sentence case for labels associated with thie editbox |
417 | */ |
418 | struct MultilineEditbox : public Panel { |
419 | MultilineEditbox( |
420 | |
421 | === modified file 'src/ui_basic/radiobutton.h' |
422 | --- src/ui_basic/radiobutton.h 2017-11-26 14:44:23 +0000 |
423 | +++ src/ui_basic/radiobutton.h 2017-12-19 08:24:19 +0000 |
424 | @@ -63,6 +63,9 @@ |
425 | boost::signals2::signal<void(int32_t)> changedto; |
426 | boost::signals2::signal<void()> clicked; // clicked without things changed |
427 | |
428 | + /** |
429 | + * Text conventions: Sentence case for the 'tooltip' |
430 | + */ |
431 | int32_t add_button(Panel* parent, |
432 | Vector2i, |
433 | const Image* pic, |
434 | |
435 | === modified file 'src/ui_basic/slider.h' |
436 | --- src/ui_basic/slider.h 2017-01-25 18:55:59 +0000 |
437 | +++ src/ui_basic/slider.h 2017-12-19 08:24:19 +0000 |
438 | @@ -37,6 +37,9 @@ |
439 | friend struct DiscreteSlider; |
440 | |
441 | protected: |
442 | + /** |
443 | + * Text conventions: Sentence case for the 'tooltip_text' |
444 | + */ |
445 | Slider(Panel* parent, |
446 | int32_t x, |
447 | int32_t y, |
448 | |
449 | === modified file 'src/ui_basic/spinbox.h' |
450 | --- src/ui_basic/spinbox.h 2017-11-27 21:21:06 +0000 |
451 | +++ src/ui_basic/spinbox.h 2017-12-19 08:24:19 +0000 |
452 | @@ -48,6 +48,9 @@ |
453 | |
454 | enum class Units { kNone, kPixels, kMinutes, kPercent }; |
455 | |
456 | + /** |
457 | + * Text conventions: Sentence case for the 'label_text' and for all values |
458 | + */ |
459 | SpinBox(Panel*, |
460 | int32_t x, |
461 | int32_t y, |
462 | |
463 | === modified file 'src/ui_basic/table.h' |
464 | --- src/ui_basic/table.h 2017-11-27 08:21:32 +0000 |
465 | +++ src/ui_basic/table.h 2017-12-19 08:24:19 +0000 |
466 | @@ -66,12 +66,15 @@ |
467 | boost::signals2::signal<void(uint32_t)> double_clicked; |
468 | |
469 | /// A column that has a title is sortable (by clicking on the title). |
470 | + /// |
471 | + /// Text conventions: Title Case for the 'title', Sentence case for the 'tooltip' |
472 | void add_column(uint32_t width, |
473 | const std::string& title = std::string(), |
474 | const std::string& tooltip = std::string(), |
475 | Align = UI::Align::kLeft, |
476 | TableColumnType column_type = TableColumnType::kFixed); |
477 | |
478 | + /// Text conventions: Title Case for the 'title' |
479 | void set_column_title(uint8_t col, const std::string& title); |
480 | |
481 | void clear(); |
482 | @@ -126,8 +129,10 @@ |
483 | struct EntryRecord { |
484 | explicit EntryRecord(void* entry); |
485 | |
486 | - void set_picture(uint8_t col, const Image* pic, const std::string& = std::string()); |
487 | - void set_string(uint8_t col, const std::string&); |
488 | + /// Text conventions: Title Case for the 'str' |
489 | + void set_picture(uint8_t col, const Image* pic, const std::string& str = std::string()); |
490 | + /// Text conventions: Title Case for the 'str' |
491 | + void set_string(uint8_t col, const std::string& str); |
492 | const Image* get_picture(uint8_t col) const; |
493 | const std::string& get_string(uint8_t col) const; |
494 | void* entry() const { |
495 | |
496 | === modified file 'src/ui_basic/tabpanel.h' |
497 | --- src/ui_basic/tabpanel.h 2017-06-11 20:09:05 +0000 |
498 | +++ src/ui_basic/tabpanel.h 2017-12-19 08:24:19 +0000 |
499 | @@ -42,7 +42,10 @@ |
500 | friend struct TabPanel; |
501 | |
502 | /** If title is not empty, this will be a textual tab. |
503 | - * In that case, pic will need to be the rendered title */ |
504 | + * In that case, pic will need to be the rendered title |
505 | + * |
506 | + * Text conventions: Title Case for the 'title', Sentence case for the 'gtooltip' |
507 | + */ |
508 | Tab(TabPanel* parent, |
509 | size_t id, |
510 | int32_t x, |
511 | @@ -91,13 +94,18 @@ |
512 | const Image* background, |
513 | TabPanel::Type border_type = TabPanel::Type::kNoBorder); |
514 | |
515 | - /** Add textual tab */ |
516 | + /** Add textual tab |
517 | + * |
518 | + * Text conventions: Title Case for the 'title', Sentence case for the 'tooltip' |
519 | +*/ |
520 | uint32_t add(const std::string& name, |
521 | const std::string& title, |
522 | Panel* panel, |
523 | const std::string& tooltip = std::string()); |
524 | |
525 | - /** Add pictorial tab */ |
526 | + /** Add pictorial tab |
527 | + * Text conventions: Sentence case for the 'tooltip' |
528 | + */ |
529 | uint32_t add(const std::string& name, |
530 | const Image* pic, |
531 | Panel* panel, |
532 | |
533 | === modified file 'src/ui_basic/window.h' |
534 | --- src/ui_basic/window.h 2017-09-04 15:02:05 +0000 |
535 | +++ src/ui_basic/window.h 2017-12-19 08:24:19 +0000 |
536 | @@ -53,6 +53,7 @@ |
537 | class Window : public NamedPanel { |
538 | public: |
539 | /// Do not use richtext for 'title'. |
540 | + /// Text conventions: Title Case for the 'title' |
541 | Window(Panel* parent, |
542 | const std::string& name, |
543 | int32_t x, |
544 | |
545 | === modified file 'src/ui_fsmenu/internet_lobby.cc' |
546 | --- src/ui_fsmenu/internet_lobby.cc 2017-12-17 14:45:23 +0000 |
547 | +++ src/ui_fsmenu/internet_lobby.cc 2017-12-19 08:24:19 +0000 |
548 | @@ -364,7 +364,7 @@ |
549 | _("Widelands was unable to get the IP address of the server in time. " |
550 | "There seems to be a network problem, either on your side or on the side " |
551 | "of the server.\n")); |
552 | - UI::WLMessageBox mmb(this, _("Connection timed out"), warning, |
553 | + UI::WLMessageBox mmb(this, _("Connection Timed Out"), warning, |
554 | UI::WLMessageBox::MBoxType::kOk, UI::Align::kLeft); |
555 | mmb.run<UI::Panel::Returncodes>(); |
556 | InternetGaming::ref().set_error(); |
557 | |
558 | === modified file 'src/ui_fsmenu/launch_mpg.cc' |
559 | --- src/ui_fsmenu/launch_mpg.cc 2017-12-02 12:43:38 +0000 |
560 | +++ src/ui_fsmenu/launch_mpg.cc 2017-12-19 08:24:19 +0000 |
561 | @@ -316,7 +316,7 @@ |
562 | if (g_fs->is_directory(filename)) { |
563 | // Send a warning |
564 | UI::WLMessageBox warning( |
565 | - this, _("Saved game is directory"), |
566 | + this, _("Saved Game is Directory"), |
567 | _("WARNING:\n" |
568 | "The saved game you selected is a directory." |
569 | " This happens if you set the option ‘nozip’ to " |
570 | |
571 | === modified file 'src/ui_fsmenu/options.cc' |
572 | --- src/ui_fsmenu/options.cc 2017-11-25 03:57:13 +0000 |
573 | +++ src/ui_fsmenu/options.cc 2017-12-19 08:24:19 +0000 |
574 | @@ -125,10 +125,10 @@ |
575 | 100, // 100 is arbitrary, will be resized in layout(). |
576 | 100, // 100 is arbitrary, will be resized in layout(). |
577 | 24, |
578 | - _("In-game resolution")), |
579 | + _("Window Size")), |
580 | |
581 | fullscreen_(&box_interface_left_, Vector2i::zero(), _("Fullscreen"), "", 0), |
582 | - inputgrab_(&box_interface_left_, Vector2i::zero(), _("Grab Input"), "", 0), |
583 | + inputgrab_(&box_interface_left_, Vector2i::zero(), _("Grab input"), "", 0), |
584 | sb_maxfps_(&box_interface_left_, 0, 0, 0, 0, opt.maxfps, 0, 99, _("Maximum FPS:")), |
585 | translation_info_(&box_interface_, 0, 0, 100, 100), |
586 | |
587 | @@ -162,8 +162,8 @@ |
588 | UI::SpinBox::Units::kPixels), |
589 | |
590 | // Sound options |
591 | - music_(&box_sound_, Vector2i::zero(), _("Enable Music"), "", 0), |
592 | - fx_(&box_sound_, Vector2i::zero(), _("Enable Sound Effects"), "", 0), |
593 | + music_(&box_sound_, Vector2i::zero(), _("Enable music"), "", 0), |
594 | + fx_(&box_sound_, Vector2i::zero(), _("Enable sound effects"), "", 0), |
595 | message_sound_(&box_sound_, Vector2i::zero(), _("Play a sound at message arrival"), "", 0), |
596 | |
597 | // Saving options |
598 | |
599 | === modified file 'src/wlapplication.cc' |
600 | --- src/wlapplication.cc 2017-11-25 20:29:26 +0000 |
601 | +++ src/wlapplication.cc 2017-12-19 08:24:19 +0000 |
602 | @@ -1204,7 +1204,7 @@ |
603 | NetAddress addr; |
604 | if (!ns.get_host_address(&addr)) { |
605 | UI::WLMessageBox mmb( |
606 | - &ns, _("Invalid address"), |
607 | + &ns, _("Invalid Address"), |
608 | _("The entered hostname or address is invalid and can’t be connected to."), |
609 | UI::WLMessageBox::MBoxType::kOk); |
610 | mmb.run<UI::Panel::Returncodes>(); |
611 | |
612 | === modified file 'src/wui/building_statistics_menu.cc' |
613 | --- src/wui/building_statistics_menu.cc 2017-12-02 11:41:19 +0000 |
614 | +++ src/wui/building_statistics_menu.cc 2017-12-19 08:24:19 +0000 |
615 | @@ -127,13 +127,13 @@ |
616 | |
617 | tab_panel_.add("building_stats_small", |
618 | g_gr->images().get("images/wui/fieldaction/menu_tab_buildsmall.png"), |
619 | - tabs_[BuildingTab::Small], _("Small Buildings")); |
620 | + tabs_[BuildingTab::Small], _("Small buildings")); |
621 | tab_panel_.add("building_stats_medium", |
622 | g_gr->images().get("images/wui/fieldaction/menu_tab_buildmedium.png"), |
623 | - tabs_[BuildingTab::Medium], _("Medium Buildings")); |
624 | + tabs_[BuildingTab::Medium], _("Medium buildings")); |
625 | tab_panel_.add("building_stats_big", |
626 | g_gr->images().get("images/wui/fieldaction/menu_tab_buildbig.png"), |
627 | - tabs_[BuildingTab::Big], _("Big Buildings")); |
628 | + tabs_[BuildingTab::Big], _("Big buildings")); |
629 | tab_panel_.add("building_stats_mines", |
630 | g_gr->images().get("images/wui/fieldaction/menu_tab_buildmine.png"), |
631 | tabs_[BuildingTab::Mines], _("Mines")); |
632 | |
633 | === modified file 'src/wui/game_options_sound_menu.cc' |
634 | --- src/wui/game_options_sound_menu.cc 2017-01-25 18:55:59 +0000 |
635 | +++ src/wui/game_options_sound_menu.cc 2017-12-19 08:24:19 +0000 |
636 | @@ -25,14 +25,14 @@ |
637 | GameOptionsSoundMenu::GameOptionsSoundMenu(InteractiveGameBase& gb, |
638 | UI::UniqueWindow::Registry& registry) |
639 | : UI::UniqueWindow(&gb, "sound_options_menu", ®istry, 160, 160, _("Sound Options")), |
640 | - ingame_music(this, Vector2i(hmargin(), vmargin()), _("Enable Music")), |
641 | + ingame_music(this, Vector2i(hmargin(), vmargin()), _("Enable music")), |
642 | ingame_sound(this, |
643 | Vector2i(hmargin(), vmargin() + kStateboxSize + vspacing()), |
644 | - _("Enable Sound Effects")), |
645 | + _("Enable sound effects")), |
646 | ingame_music_volume_label(this, |
647 | hmargin(), |
648 | vmargin() + 2 * (kStateboxSize + vspacing()) + vbigspacing(), |
649 | - _("Music Volume")), |
650 | + _("Music volume")), |
651 | ingame_music_volume(this, |
652 | hmargin(), |
653 | vmargin() + 2 * (kStateboxSize + vspacing()) + vbigspacing() + |
654 | @@ -47,7 +47,7 @@ |
655 | hmargin(), |
656 | vmargin() + 2 * (kStateboxSize + vspacing()) + vbigspacing() + |
657 | 2 * vspacing() + slideh() + ingame_music_volume_label.get_h(), |
658 | - _("Sound Effects Volume")), |
659 | + _("Sound effects volume")), |
660 | ingame_sound_volume(this, |
661 | hmargin(), |
662 | vmargin() + 2 * (kStateboxSize + vspacing()) + vbigspacing() + |
663 | |
664 | === modified file 'src/wui/game_statistics_menu.cc' |
665 | --- src/wui/game_statistics_menu.cc 2017-11-30 07:41:06 +0000 |
666 | +++ src/wui/game_statistics_menu.cc 2017-12-19 08:24:19 +0000 |
667 | @@ -37,11 +37,11 @@ |
668 | player_(plr), |
669 | windows_(windows), |
670 | box_(this, 0, 0, UI::Box::Horizontal, 0, 0, 5) { |
671 | - add_button("wui/menus/menu_general_stats", "general_stats", _("General Statistics"), |
672 | + add_button("wui/menus/menu_general_stats", "general_stats", _("General statistics"), |
673 | &windows_.general_stats); |
674 | add_button( |
675 | - "wui/menus/menu_ware_stats", "ware_stats", _("Ware Statistics"), &windows_.ware_stats); |
676 | - add_button("wui/menus/menu_building_stats", "building_stats", _("Building Statistics"), |
677 | + "wui/menus/menu_ware_stats", "ware_stats", _("Ware statistics"), &windows_.ware_stats); |
678 | + add_button("wui/menus/menu_building_stats", "building_stats", _("Building statistics"), |
679 | &windows_.building_stats); |
680 | add_button("wui/menus/menu_stock", "stock", _("Stock"), &windows_.stock); |
681 | box_.set_pos(Vector2i(10, 10)); |
682 | |
683 | === modified file 'src/wui/interactive_player.cc' |
684 | --- src/wui/interactive_player.cc 2017-10-24 05:38:53 +0000 |
685 | +++ src/wui/interactive_player.cc 2017-12-19 08:24:19 +0000 |
686 | @@ -205,7 +205,7 @@ |
687 | auto_roadbuild_mode_(global_s.get_bool("auto_roadbuild_mode", true)), |
688 | flag_to_connect_(Widelands::Coords::null()) { |
689 | add_toolbar_button( |
690 | - "wui/menus/menu_options_menu", "options_menu", _("Main Menu"), &options_, true); |
691 | + "wui/menus/menu_options_menu", "options_menu", _("Main menu"), &options_, true); |
692 | options_.open_window = [this] { new GameOptionsMenu(*this, options_, main_windows_); }; |
693 | |
694 | add_toolbar_button( |
695 | @@ -221,7 +221,7 @@ |
696 | minimap_registry().open_window = [this] { toggle_minimap(); }; |
697 | |
698 | toggle_buildhelp_ = add_toolbar_button( |
699 | - "wui/menus/menu_toggle_buildhelp", "buildhelp", _("Show Building Spaces (on/off)")); |
700 | + "wui/menus/menu_toggle_buildhelp", "buildhelp", _("Show building spaces (on/off)")); |
701 | toggle_buildhelp_->sigclicked.connect(boost::bind(&InteractiveBase::toggle_buildhelp, this)); |
702 | reset_zoom_ = add_toolbar_button("wui/menus/menu_reset_zoom", "reset_zoom", _("Reset zoom")); |
703 | reset_zoom_->sigclicked.connect([this] { |
704 | @@ -247,7 +247,7 @@ |
705 | "wui/menus/menu_toggle_oldmessage_menu", "messages", _("Messages"), &message_menu_, true); |
706 | message_menu_.open_window = [this] { new GameMessageMenu(*this, message_menu_); }; |
707 | |
708 | - add_toolbar_button("ui_basic/menu_help", "help", _("Tribal Encyclopedia"), &encyclopedia_, true); |
709 | + add_toolbar_button("ui_basic/menu_help", "help", _("Help"), &encyclopedia_, true); |
710 | encyclopedia_.open_window = [this] { |
711 | new TribalEncyclopedia(*this, encyclopedia_, &game().lua()); |
712 | }; |
713 | |
714 | === modified file 'src/wui/interactive_spectator.cc' |
715 | --- src/wui/interactive_spectator.cc 2017-09-01 14:12:58 +0000 |
716 | +++ src/wui/interactive_spectator.cc 2017-12-19 08:24:19 +0000 |
717 | @@ -45,16 +45,16 @@ |
718 | : InteractiveGameBase(g, global_s, OBSERVER, multiplayer) { |
719 | if (is_multiplayer()) { |
720 | add_toolbar_button( |
721 | - "wui/menus/menu_options_menu", "options_menu", _("Main Menu"), &options_, true); |
722 | + "wui/menus/menu_options_menu", "options_menu", _("Main menu"), &options_, true); |
723 | options_.open_window = [this] { new GameOptionsMenu(*this, options_, main_windows_); }; |
724 | |
725 | } else { |
726 | UI::Button* button = |
727 | - add_toolbar_button("wui/menus/menu_exit_game", "exit_replay", _("Exit Replay")); |
728 | + add_toolbar_button("wui/menus/menu_exit_game", "exit_replay", _("Exit replay")); |
729 | button->sigclicked.connect(boost::bind(&InteractiveSpectator::exit_btn, this)); |
730 | |
731 | add_toolbar_button( |
732 | - "wui/menus/menu_save_game", "save_game", _("Save Game"), &main_windows_.savegame, true); |
733 | + "wui/menus/menu_save_game", "save_game", _("Save game"), &main_windows_.savegame, true); |
734 | main_windows_.savegame.open_window = [this] { |
735 | new GameMainMenuSaveGame(*this, main_windows_.savegame); |
736 | }; |
737 | @@ -72,7 +72,7 @@ |
738 | minimap_registry().open_window = [this] { toggle_minimap(); }; |
739 | |
740 | toggle_buildhelp_ = add_toolbar_button( |
741 | - "wui/menus/menu_toggle_buildhelp", "buildhelp", _("Show Building Spaces (on/off)")); |
742 | + "wui/menus/menu_toggle_buildhelp", "buildhelp", _("Show building spaces (on/off)")); |
743 | toggle_buildhelp_->sigclicked.connect(boost::bind(&InteractiveBase::toggle_buildhelp, this)); |
744 | |
745 | reset_zoom_ = add_toolbar_button("wui/menus/menu_reset_zoom", "reset_zoom", _("Reset zoom")); |
746 | |
747 | === modified file 'src/wui/load_or_save_game.cc' |
748 | --- src/wui/load_or_save_game.cc 2017-12-03 10:28:16 +0000 |
749 | +++ src/wui/load_or_save_game.cc 2017-12-19 08:24:19 +0000 |
750 | @@ -269,7 +269,7 @@ |
751 | |
752 | UI::WLMessageBox confirmationBox( |
753 | parent_->get_parent()->get_parent(), |
754 | - ngettext("Confirm deleting file", "Confirm deleting files", no_selections), message, |
755 | + ngettext("Confirm Deleting File", "Confirm Deleting Files", no_selections), message, |
756 | UI::WLMessageBox::MBoxType::kOkCancel); |
757 | do_delete = confirmationBox.run<UI::Panel::Returncodes>() == UI::Panel::Returncodes::kOk; |
758 | } |
759 | |
760 | === modified file 'src/wui/shipwindow.cc' |
761 | --- src/wui/shipwindow.cc 2017-08-17 15:34:45 +0000 |
762 | +++ src/wui/shipwindow.cc 2017-12-19 08:24:19 +0000 |
763 | @@ -169,7 +169,7 @@ |
764 | UI::WLMessageBox messagebox( |
765 | get_parent(), |
766 | /** TRANSLATORS: Window label when an expedition can't be canceled */ |
767 | - _("Cancel expedition"), _("This expedition can’t be canceled, because the " |
768 | + _("Cancel Expedition"), _("This expedition can’t be canceled, because the " |
769 | "ship has no port to return to."), |
770 | UI::WLMessageBox::MBoxType::kOk); |
771 | messagebox.run<UI::Panel::Returncodes>(); |
772 | |
773 | === modified file 'src/wui/soldierlist.cc' |
774 | --- src/wui/soldierlist.cc 2017-11-24 21:34:17 +0000 |
775 | +++ src/wui/soldierlist.cc 2017-12-19 08:24:19 +0000 |
776 | @@ -398,10 +398,10 @@ |
777 | if (upcast(Widelands::MilitarySite, ms, &building)) { |
778 | soldier_preference_.add_button(buttons, Vector2i::zero(), |
779 | g_gr->images().get("images/wui/buildings/prefer_rookies.png"), |
780 | - _("Prefer Rookies")); |
781 | + _("Prefer rookies")); |
782 | soldier_preference_.add_button(buttons, Vector2i(32, 0), |
783 | g_gr->images().get("images/wui/buildings/prefer_heroes.png"), |
784 | - _("Prefer Heroes")); |
785 | + _("Prefer heroes")); |
786 | UI::Radiobutton* button = soldier_preference_.get_first_button(); |
787 | while (button) { |
788 | buttons->add(button); |
789 | |
790 | === modified file 'src/wui/ware_statistics_menu.cc' |
791 | --- src/wui/ware_statistics_menu.cc 2017-11-29 12:41:18 +0000 |
792 | +++ src/wui/ware_statistics_menu.cc 2017-12-19 08:24:19 +0000 |
793 | @@ -138,7 +138,7 @@ |
794 | Widelands::kStatisticsSampleTime, WuiPlotArea::Plotmode::kRelative); |
795 | |
796 | tabs->add( |
797 | - "economy_health", g_gr->images().get(pic_tab_economy), plot_economy_, _("Economy Health")); |
798 | + "economy_health", g_gr->images().get(pic_tab_economy), plot_economy_, _("Economy health")); |
799 | |
800 | plot_stock_ = |
801 | new WuiPlotArea(tabs, 0, 0, kPlotWidth, kPlotHeight + kSpacing, |
Continuous integration builds have changed state:
Travis build 2953. State: errored. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 315834498. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1736095_ improve_ text_for_ resources_ height- 2762.
Appveyor build 2762. State: success. Details: https:/