[Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1798297-locale-C into lp:widelands
GunChleoc has proposed merging lp:~widelands-dev/widelands/bug-1798297-locale-C into lp:widelands. Commit message: Fix fetching of translations when user locale is set to C. If the desired Widelands locale does not exist, try to fall back to en_US.utf8 to make libintl happy. Requested reviews: Widelands Developers (widelands-dev) Related bugs: Bug #1798297 in widelands: "Language selection broken if locale is set to C" https://bugs.launchpad.net/widelands/+bug/1798297 For more details, see: https://code.launchpad.net/~widelands-dev/widelands/bug-1798297-locale-C/+merge/358364 -- Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1798297-locale-C into lp:widelands. === modified file 'src/base/i18n.cc' --- src/base/i18n.cc 2018-08-12 06:47:11 + +++ src/base/i18n.cc 2018-11-06 08:51:14 + @@ -290,15 +290,26 @@ found = alt_str.find(',', 0); } if (leave_while) { - setenv("LANG", locale.c_str(), 1); + setenv("LC_ALL", locale.c_str(), 1); +setenv("LANG", locale.c_str(), 1); setenv("LANGUAGE", locale.c_str(), 1); } else { - log("No corresponding locale found - trying to set it via LANGUAGE=%s, LANG=%s\n", - lang.c_str(), lang.c_str()); + log("No corresponding locale found\n"); +log(" - Set LANGUAGE, LANG and LC_ALL to '%s'\n", + lang.c_str()); + setenv("LANGUAGE", lang.c_str(), 1); setenv("LANG", lang.c_str(), 1); - SETLOCALE(LC_MESSAGES, ""); // set locale according to the env. variables - // --> see $ man 3 setlocale +setenv("LC_ALL", lang.c_str(), 1); + +try { +SETLOCALE(LC_MESSAGES, "en_US.utf8"); // set locale according to the env. variables + // --> see $ man 3 setlocale +log(" - Set system locale to 'en_US.utf8' to make '%s' accessible to libintl\n", lang.c_str()); +} catch (std::exception&) { +SETLOCALE(LC_MESSAGES, ""); // set locale according to the env. variables + // --> see $ man 3 setlocale +} // assume that it worked // maybe, do another check with the return value (?) locale = lang; ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
[Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1800818 into lp:widelands
TiborB has proposed merging lp:~widelands-dev/widelands/bug-1800818 into lp:widelands. Commit message: When IA finds that it has more than one barrack, it will disassemble abundant barracks. Should happen only after human player. Requested reviews: Widelands Developers (widelands-dev) Related bugs: Bug #1800818 in widelands: "AI does not cope with two barracks after human player" https://bugs.launchpad.net/widelands/+bug/1800818 For more details, see: https://code.launchpad.net/~widelands-dev/widelands/bug-1800818/+merge/358368 -- Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1800818 into lp:widelands. === modified file 'src/ai/defaultai.cc' --- src/ai/defaultai.cc 2018-10-12 10:02:20 + +++ src/ai/defaultai.cc 2018-11-06 10:30:11 + @@ -4278,6 +4278,19 @@ // Barracks if (site.bo->is(BuildingAttribute::kBarracks)) { + // If we somehow have more than one barracks we will dismantle current one + if (site.bo->total_count() > 1) { + log("%2d: We have %d barracks, that is not supported by AI and if caused by AI it is an error; dismantling the barracks at %3dx%3d\n", + player_number(), site.bo->total_count(), site.site->get_position().x, site.site->get_position().y); + if (connected_to_wh) { +game().send_player_dismantle(*site.site); + } else { +game().send_player_bulldoze(*site.site); + } + return true; + } + + assert(site.bo->total_count() == 1); for (auto& queue : site.site->inputqueues()) { if (queue->get_max_fill() > 4) { ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/empire04_unused_key_return_on_dismantle_no_ui into lp:widelands
Ok I will try to find some time next week. -- https://code.launchpad.net/~widelands-dev/widelands/empire04_unused_key_return_on_dismantle_no_ui/+merge/358305 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/empire04_unused_key_return_on_dismantle_no_ui into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
[Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
Toni Förster has proposed merging lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. Commit message: always set background for progresswindow to left bottom Requested reviews: Widelands Developers (widelands-dev) Related bugs: Bug #1801340 in widelands: "Picture in loading-screen does not sit on the bottom left" https://bugs.launchpad.net/widelands/+bug/1801340 For more details, see: https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 -- Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. === modified file 'src/ui_basic/progresswindow.cc' --- src/ui_basic/progresswindow.cc 2018-07-08 13:53:45 + +++ src/ui_basic/progresswindow.cc 2018-11-06 12:51:42 + @@ -84,7 +84,7 @@ clear_overlays(); if (!file_name.empty() && g_fs->file_exists(file_name)) { add_overlay_image( - file_name, FullscreenWindow::Alignment(UI::Align::kCenter, UI::Align::kCenter)); + file_name, FullscreenWindow::Alignment(UI::Align::kLeft, UI::Align::kBottom)); } else { add_overlay_image("images/loadscreens/progress.png", FullscreenWindow::Alignment(UI::Align::kLeft, UI::Align::kBottom)); ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
Scenarios can have a custom background image. Those are screen-filling and should be centered (that´s the reason for the different alignment in the if-else I think). Did you test what they look like now (e.g. campaign maps in bar and emp campaigns, photographs in fri campaign)? -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
Will do this later. Didn't consider those, though. So I guess they'll look worse now... -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
Barbarians look good in 1280x800 but that's the maximum resolution I can test. Any way to unlock all campaigns without playing them? -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
You can either edit your ~/.widelands/save/campvis file or start WL with the commandline option --scenario=campaigns/fri01.wmf You can also test higher resolutions using --xres=4000 --yres=3000 --fullscreen=false and then move the window around the screen to see it all. (The result when the resolution is significantly larger than the image size is important because a glitch here would be a bug for players with a very large screen) -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
I agree that the campaign scenario backgrounds should stay centered. -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1800818 into lp:widelands
Review: Approve Code LGTM, not tested yet -- https://code.launchpad.net/~widelands-dev/widelands/bug-1800818/+merge/358368 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1800818. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
[Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1800818 into lp:widelands
The proposal to merge lp:~widelands-dev/widelands/bug-1800818 into lp:widelands has been updated. Commit message changed to: When An AI finds that it has more than one barracks, it will disassemble the additional barracks. Should happen only after taking over from a human player. For more details, see: https://code.launchpad.net/~widelands-dev/widelands/bug-1800818/+merge/358368 -- Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1800818. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1800182-focus-save-menu into lp:widelands
Can you open up a new bug report for the problem with the passing on of keypresses? Let's target that one to Build 21, since it's an old issue. -- https://code.launchpad.net/~widelands-dev/widelands/bug-1800182-focus-save-menu/+merge/358284 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1800182-focus-save-menu. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
The problem seems to be in gamehost.cc: UI::ProgressWindow* loader_ui = new UI::ProgressWindow("images/loadscreens/progress.png"); and gameclient.cc loader_ui.reset(new UI::ProgressWindow("images/loadscreens/progress.png")); Since they provide a file-name, only the if-clause is called. Have to test this thoroughly. -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
[Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
The proposal to merge lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands has been updated. Commit message changed to: don't provide the filename for the standard background image For more details, see: https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 -- Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
Okay that did the trick. Only images that cam be centered should be passed as an argument. -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug_1801340_loading_screen into lp:widelands
Review: Approve Looking good :) @bunnybot merge -- https://code.launchpad.net/~widelands-dev/widelands/bug_1801340_loading_screen/+merge/358378 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug_1801340_loading_screen. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1800182-focus-save-menu into lp:widelands
Bug report is up. -- https://code.launchpad.net/~widelands-dev/widelands/bug-1800182-focus-save-menu/+merge/358284 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1800182-focus-save-menu. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp
[Widelands-dev] [Merge] lp:~widelands-dev/widelands/bug-1800814-update-script into lp:widelands
GunChleoc has proposed merging lp:~widelands-dev/widelands/bug-1800814-update-script into lp:widelands. Commit message: Copy the version file instead of moving it, so that the update script can be run twice in a row. Requested reviews: Widelands Developers (widelands-dev) Related bugs: Bug #1800814 in widelands: "update.sh script broken since at least bzr8903[trunk]" https://bugs.launchpad.net/widelands/+bug/1800814 For more details, see: https://code.launchpad.net/~widelands-dev/widelands/bug-1800814-update-script/+merge/358419 -- Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1800814-update-script into lp:widelands. === modified file 'compile.sh' --- compile.sh 2018-10-30 14:04:11 + +++ compile.sh 2018-11-07 06:36:36 + @@ -212,7 +212,7 @@ rm -f ../wl_map_object_info || true rm -f ../wl_map_info || true -mv VERSION ../VERSION +cp VERSION ../VERSION mv src/widelands ../widelands if [ $BUILD_WEBSITE = "ON" ]; then @@ -249,7 +249,7 @@ $buildtool rm ../VERSION || true rm ../widelands || true -mv VERSION ../VERSION +cp VERSION ../VERSION mv src/widelands ../widelands cd .. ___ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp