71528 Commits

Author SHA1 Message Date
pentarctagon
5e386ef43b Make UTF8 checks fail the build if they find anything.
Also fixes a comment typo in docker_run.sh.

(cherry-picked from commit c456d4b288ca6df59cca3663c10131f2c75e8574)
2018-10-07 03:18:08 +00:00
pentarctagon
14089528e7 Removes a couple scripts that are not used.
utils/travis/install_deps.sh - no longer executes anything outside of the osx if block.
utils/travis/exit_wrapper.sh - I honestly don't know why this exists.
utils/travis/test_wrapper.sh - No longer used as of 7ca5a0df6449b4b895842566d33a38872f1f507e.

(cherry-picked from commit 344b5c56b90cffcbc9638bcb7535bb3e0f073da7)
2018-10-07 03:18:07 +00:00
pentarctagon
55ec77b7c4 Add the updated Dunefolk race description.
See: https://forums.wesnoth.org/viewtopic.php?f=32&t=47721&start=375#p624668
[ci skip]

(cherry-picked from commit 3b5cbc3e3c5e7529412ba38e64145b9303474da3)
2018-10-07 03:18:07 +00:00
pentarctagon
0c69e40d52 Remove deprecated Khalifate references.
(cherry-picked from commit 994e6efa796681e0952d4aeb623adcf3cf75d1ef)
2018-10-07 03:18:07 +00:00
Charles Dang
5a017b5ef1 0 -> nullptr in 2 places
(cherry-picked from commit 3be39a98fe753123ae4685d124876e7a7eb93160)
2018-10-07 03:18:07 +00:00
Nils Kneuper
aa1c926065 updated Spanish translation
(cherry-picked from commit 0bab3fb4d385a326c79bc1f0a27afe399a481d37)
2018-10-07 03:18:06 +00:00
Charles Dang
a386e1a6a3 Cleaned up unnecessary instances of emplace_back(config {})
No need to invoke the copy ctor.

(cherry-picked from commit c2fd4f48f912c48e71382c61e4012ec7fae2f930)
2018-10-07 03:18:06 +00:00
Charles Dang
c41d0ff7bf MP Create Game: attempt to fix RFM type labels being untranslated (#2709)
Since these are defined in their MAKE_ENUM enum with N_, we need to manually un-not-translate
them here.

(cherry-picked from commit 2e502334f23447609e2553cbbbae8b251f9796bc)
2018-10-07 03:18:06 +00:00
pentarctagon
2e76d2fe40 Remove debugging symbols from Travis xcode build.
This removes the -g option from the xcode travis build, since debugging information isn't needed and the increased size was causing the cache to timeout when compressing and uploading it.  ccache max cache size is also decreased from 2 GBs to 200 MBs, which matches the linux+cmake builds.  Fixes #2670.

(cherry-picked from commit b801140344c7cbf86980ff54ef963f9ec2122897)
2018-10-07 03:18:06 +00:00
Iris Morelle
ecc0e8a36d Update the changelog
[ci skip]

(cherry-picked from commit 9d76278e71375257d528df91e82a6156b61f5a45)
2018-10-07 03:18:05 +00:00
Iris Morelle
a9fc823845 i18n: Remove no-op translation::init() function
This function only ever had an implementation when building the i18n API
to use libintl instead of Boost.Locale was possible, in which case its
implementation would be a std::setlocale() call specific to POSIX
systems.

I'm not backporting this to 1.14 since it's an inconsequential cosmetic
thing, or so I'd like to think. Last time someone tried to remove a
similarly empty "init" function elsewhere, things went south pretty
quickly.

(cherry-picked from commit 94c5f64cc62452f420a9886eefc75d5e4af121fc)
2018-10-07 03:18:05 +00:00
Iris Morelle
824f8363af i18n: Make VGETTEXT()/VNGETTEXT() always require a GETTEXT_DOMAIN to be defined
This drops a preprocessor conditional branch that is dead code now that
the file pulls gettext.hpp and the GETTEXT_DOMAIN defaults with it.

See also PR #2711.

(cherry-picked from commit a60239116863ea7592d27f2819017b57a34e0ce5)
2018-10-07 03:18:05 +00:00
Iris Morelle
dfc7c41cb6 i18n: Forcefully pull gettext.hpp into formula/string_utils.hpp
There are cases (deprecation.cpp for one) where string_utils.hpp is
included first, which causes the VGETTEXT/VNGETTEXT definition to use
the textdomain-less (a.k.a. forced wesnoth-lib textdomain) overloads of
vgettext() and vngettext(), because GETTEXT_DOMAIN has not yet been
defined by anything. This again results in strings being looked up in
catalogues where xgettext is not adding them.

This is a companion for PR #2711 I should've noticed sooner. Without it,
there were still cases where interpolated strings would not be
translated due to vgettext() using the wrong textdomain for them.

I ran a quick scan on the codebase to make sure there aren't any files
including formula/string_utils.hpp before defining their own
GETTEXT_DOMAIN instead of the gettext.hpp default.

(cherry-picked from commit 5c28dcaab66e34af718c7ceff6ccc9e33b58b039)
2018-10-07 03:18:04 +00:00
Iris Morelle
1ef6c5b2c0 Replace all instances of naked vgettext() calls with VGETTEXT()
The vgettext() function, while declared in src/formula/string_utils.hpp,
actually has its implementation out-of-line in
src/formula/string_utils.cpp where GETTEXT_TEXTDOMAIN is defined to
"wesnoth-lib". Because vgettext() is implemented in terms of the _()
function (an inline wrapper around translation::dsgettext()), it passes
the textdomain defined in the file where it was implemented as a
parameter.

This means that every case of vgettext() being used in other code units
where GETTEXT_TEXTDOMAIN is not defined to "wesnoth-lib", is broken if
the string being looked upon doesn't coincidentally exist in the
wesnoth-lib textdomain.

Ages ago, to work around this limitation, an overload of vgettext() that
takes the textdomain name as a parameter was introduced (see commit
0ba3d05204abff72f7d95cf11a91536dab5aa20a). Since this form of vgettext()
is rather unwieldy to use (and in particular, the xgettext message
extraction tool mistakes the first argument for the msgid, see below), a
VGETTEXT() macro was also added that uses the GETTEXT_TEXTDOMAIN symbol
defined in the file where the call is made, and thus we get the correct
string from the correct textdomain.

Switching all cases of naked vgettext() in mainline to VGETTEXT() fixes
a myriad of situations where an interpolated string that has an extant
translation does not actually get translated in practice because of the
mismatched textdomain reference (see issue #2709 for an example with MP
game titles). I couldn't find any cases of the companion vngettext()
function (which handles plurals) being used in the wild naked, but for
future reference it also has a companion VNGETTEXT() macro to pass the
correct textdomain to its textdomain-parameter overload.

One caveat is that this commit DOES break the string freeze in one
particular case -- src/units/unit.cpp has a case where the
textdomain-parameter version of naked vgettext() was in use with
"wesnoth" as the first parameter, and xgettext misidentified this as a
translation entry for a "wesnoth" string in the file's assigned
textdomain (which is the default textdomain, wesnoth). So this will
result in the next pot-update both removing the spurious "wesnoth"
string AND adding the correct string to the relevant catalogue template
("<span color=\"$color\">$number_or_percent</span> HP").
to that textdomain.

Other than that, I believe this does not break the string freeze in any
other fashion and it shouldn't result in any regressions for i18n.

It might be worth considering in the future renaming vgettext() and
vngettext() to names that make people less likely to misidentify them as
functions they can freely call directly without regard to the textdomain
assignment issue.

(cherry-picked from commit c5b3947e4a837dc98868e3b2c3fa55668fec27a4)
2018-10-07 03:18:04 +00:00
Charles Dang
6f1263d34d Used UNUSED macro instead of (void) where applicable
(cherry-picked from commit 7a9ed8d3631cecc7053ed91b2501d6d145d7a4cd)
2018-10-07 03:18:04 +00:00
Charles Dang
3fce0c3816 Used stdlib math functions instead of global C versions
(cherry-picked from commit 410398a70b37d6cf4a75ff1e3abd43225413c9d2)
2018-10-07 03:18:04 +00:00
Charles Dang
d5227d8fab Added two missing textdomain headers
[ci skip]

Should fix two of the issues mentioned in 2709.

(cherry-picked from commit 8d1ec6216bb336f29f5e213df5b1418703cdc0a0)
2018-10-07 03:18:03 +00:00
Lari Nieminen
fa1e37d71d EI: Fix Lua syntax error from 3783693cbe95
[ci skip]

(cherry-picked from commit 4d86af796ca46f204f958b712465a05bdfa0de75)
2018-10-07 03:18:03 +00:00
ln-zookeeper
733d8ff979 EI S03: Changed Mal-Kallat back to male
He was changed to female in f4d67031a436 even though he's addressed as "brother" in dialogue. Reported on the forums.

(cherry-picked from commit 3be2ff518781c7a7104e810707be64567cc26e27)
2018-10-07 03:18:03 +00:00
Sofartin
ccf6998d2b Fixed Xcode Project
(cherry-picked from commit 00dac71a9036c2bc897bb4adf3ea510dfe37ee12)
2018-10-07 03:18:03 +00:00
Charles Dang
69efae7427 Cleaned up MSVC 2013 compatibility code
We no longer support that compiler.

(cherry-picked from commit 1e9f2548a6fe83f933a4e45c398093fa6cb2746b)
2018-10-07 03:18:02 +00:00
Iris Morelle
1ab0301064 wam: Update description and name for Modifications
They are no longer just for multiplayer mode (see issue #1475, commit
a09e2bb8583c6125f8c4e3157d6eba8bbd800b62).

[ci skip]

(cherry-picked from commit 39b05dd0dbc1fc14e50e7db19401651ec3eae154)
2018-10-07 03:18:02 +00:00
gfgtdf
e14f712e73 update INSTALL.md for c++14 requirement
clang 3.8 is needed for "Money, Time, and hexfloat I/O manipulators (N2071)" (a c++11 feature)

(cherry-picked from commit 439340ce787415d9f8cb48a2ecf1280f28c63db2)
2018-10-07 03:18:02 +00:00
Charles Dang
a082cf1493 Updated VS projectfile for 5022a38
[ci skip]

(cherry-picked from commit 6ea405174e8574bc0b64ddbc3489a3103f67ba02)
2018-10-07 03:18:02 +00:00
Sofartin
b58003b5f8 Fixed Xcode Project
(cherry-picked from commit 1e96d9c87b0905cbb90c7d52f928ffe223d45301)
2018-10-07 03:18:01 +00:00
Wedge009
42fc801e41 Update VC project files.
* Switch libeay32 to libcrypto for OpenSSL 1.1.0 update in https://github.com/aquileia/external/
* Added recent source additions not yet present in MSVC projects.
* Miscellaneous minor tidying/sorting in filters and build configurations.

[ci skip]

(cherry-picked from commit 899b4b73b2b1819ffa41b35f7a276959e179c46e)
2018-10-07 03:18:01 +00:00
Sofartin
934c34f426 Fixed Xcode project
(cherry-picked from commit 9e73b49d867ba6c63b817979b0295669da317d59)
2018-10-07 03:18:01 +00:00
Jyrki Vesterinen
21b1ea778c Restore ability to recruit full keep of one unit by holding Ctrl+Alt+R
(cherry-picked from commit e43d1f5430f209b1c13b549e07d2ed832f7a90a7)
2018-10-07 03:18:01 +00:00
lundberg
c04d542e55 Suppress upstream variable-hide-variable errors.
(cherry-picked from commit c187f069e8d0133976b3e0dafaecad2af09a8ed0)
2018-10-07 03:18:00 +00:00
Sofartin
4f97d6794b Fixed campaignd Xcode target
(cherry-picked from commit a766c00b7e79f1746c8390b0b73a76b5f4394e3e)
2018-10-07 03:18:00 +00:00
Sofartin
7eb172b7e9 Fix InfoPlist.strings encoding
(cherry-picked from commit d584ebded602a8ae5957feea2c3eb09620e87d34)
2018-10-07 03:18:00 +00:00
Charles Dang
ec4967351a Updated VS projectfile for recent changes
[ci skip]

(cherry-picked from commit bb3d5b9a9d247c07238af9817356df0dd8fecccf)
2018-10-07 03:17:59 +00:00
Charles Dang
45f871067f Use std::size_t everywhere instead of plain size_t
Excludes:
* spirit_po/
* xBRZ/

(cherry-picked from commit fc2a58f6935176b70a035d3e1c03080f79687f94)
2018-10-07 03:17:59 +00:00
Charles Dang
2c623ecc92 Used std::exchange for a thing
Note we don't really need to set the other object's renderer ptr to null since
the canvas dtor doesn't destroy it anymore, but still. Good to do.

(cherry-picked from commit 68f4bd14d6eaf546cec3c49d04b14b5d50ac6ebd)
2018-10-07 03:17:59 +00:00
Celtic Minstrel
d849dfcf89 Add the advanced prefs entry for the deprecation setting
(cherry-picked from commit 9902a2df31aaa0755c10d2dbf8ea2954087e6a43)
2018-10-07 03:17:58 +00:00
Celtic Minstrel
ea63a148cb Document --log-none command line option
This reverts commit e1ac4298eaf5bee6c885263e179588a051de24a8.

(cherry-picked from commit 49ad25fc696112aaa8f7b840abeded7d0660aaaa)
2018-10-07 03:17:58 +00:00
pentarctagon
7f0827b848 Stop hard-coding cmake's -std version.
Adds the CXX_STD variable which can be set.  Currently defaults to 14.  This also now makes cmake honor the CXXSTD env variable set on travis.

(cherry-picked from commit 983045718aa13a2b7b1b45bb37baa76a88a1d47e)
2018-10-07 03:17:58 +00:00
Gunter Labes
5e0d9b3310 Enable lobby message logging again
Also re-enable flood protection and truncating too long messages.

(cherry-picked from commit b115be99e15d01506cbff6a78d823a02dba63ac2)
2018-10-07 03:17:58 +00:00
Jyrki Vesterinen
efb193a446 Attempted fix for AppVeyor build failures on VS2015
Apparently AppVeyor uses VS2013 tools by default
_even in the VS2015 image_, which makes approximately zero sense.

(cherry-picked from commit 950d4f86e5c4878c9a73bf06bd70aa46c16d84f5)
2018-10-07 03:17:57 +00:00
pentarctagon
e8bce7762c Set travis use c++14.
(cherry-picked from commit 503e921d2ffa0ed3991e037dfa38de7dfe926277)
2018-10-07 03:17:57 +00:00
Gregory A Lundberg
cc5fe2adc1 Change SCons and CMake to C++14
(cherry-picked from commit 2a17ecccfcbf30f0d966db74c176cae87648c6d6)
2018-10-07 03:17:57 +00:00
Sofartin
0da9c0ab62 Fixed Xcode Project for new Wesnoth 1.15
(cherry-picked from commit 4764dcaf5e84d1bcf30d64d0cd6624d2d3c72bce)
2018-10-07 03:17:57 +00:00
Celtic Minstrel
8d1611c322 Update gitignore for VC project file update
(cherry-picked from commit b27c4c651273a8eed8a029be7bfe374dff03b35e)
2018-10-07 03:17:56 +00:00
Jyrki Vesterinen
a2d5d15916 Fix #2681: minimap buttons don't do anything
Regression from commit ecc0dca665737bcb411fbd355edd37df8a9038b8.

(cherry-picked from commit 750d558cd9c771a7d2dae528f8e25a2b5d534fc6)
2018-10-07 03:17:56 +00:00
Charles Dang
0546b5162f Improved console output on IPF fail
Yes, I know the duplicate code should be consolidated.

(cherry-picked from commit b746829692b702b7c3fc83726c16b0c789ad8651)
2018-10-07 03:17:56 +00:00
Charles Dang
56406aeedc Added a getter for a static pango_text object
The reason I added this was so I can refactor some temporary pango_text objects out of the display class.
styled_widget doesn't use this for reasons explained in the comment.

(cherry-picked from commit 770664d1f34a274dd8da70af589719d30b44263b)
2018-10-07 03:17:56 +00:00
Charles Dang
7785d711ed Removed the type trait alias wrappers
This completely removes the wrappers for aliases included in c++14. It also enables
use of the value alias wrappers, since we now have variable templates.

(cherry-picked from commit c1fcba17b75362d1639361fdd4ade7b1a85c0575)
2018-10-07 03:17:55 +00:00
Charles Dang
4f1c4dcafd Used std::put time everywhere
The utils::put_time wrapper was only for GCC 4.x.

(cherry-picked from commit 80c2d1a405111f4cd2f3cb7a50768e9ffdc8ee5b)
2018-10-07 03:17:55 +00:00
Charles Dang
24cc0b01d4 Used constexpr and noexcept keywords directly
We can do this now since were bumping min compiler support.

(cherry-picked from commit 8120843b2ef6ff2348d76e962d40d8f4d83d9ca6)
2018-10-07 03:17:55 +00:00
ln-zookeeper
9b7e1ed383 UtBS: Corrected Sun Singer movetype from float to foot
(cherry-picked from commit 3cea4790b872803063854e28bffa40999ae00258)
2018-10-07 03:17:55 +00:00