5238 Commits

Author SHA1 Message Date
est31
77deb12da0 Remove wstrgettext
Everywhere where wstrgettext was used, its output was converted back
to utf8. As wstrgettext internally converts the return value
from utf8 to wstring, it has been a waste. Remove the function, and
use strgettext instead.
2015-10-18 02:29:06 +02:00
est31
8ac6039dbc Display sane output for empty descriptions
According to its man page, the function gettext(3)
"may return a nonempty string" when msgid is "".

This commit fixes a bug where the comment ""
for some settings caused gettext to return a
"nonempty string", in this case header info of the
po file.
2015-10-18 02:18:10 +02:00
Kahrl
2a385ab883 Fix GUITable selection issues with trees
- setOpenedTrees(): this internal function was calling setSelected()
  to update m_selected. Since setSelected() calls autoScroll(),
  this caused the scrollbar to scroll back to the selected row
  in some cases when that shouldn't be done.

  For example, clicking the "+" to open a tree caused autoscroll.

  Fix this by making setOpenedTrees() modify m_selected directly.

- setDynamicData(): set scrollbar position after calling
  setSelected(), not before. This avoids setSelected()'s autoscroll
  messing up the scrollbar position again.

- setSelected(): If an invisible row is selected, open all parents
  of the selected row in order to make the selected row visible.

  This fixes the issue where all the trees are closed again whenever
  you return from the setting edit dialog to the settings tab.
2015-10-17 23:57:28 +02:00
est31
9de2570cdb Re-add "file" type for --add-location for xgettext call
Passing line numbers in the comments is bad.

References:

* Commit 94961b3364f76d5861913af321e9be6200d080b3
* Previous commit
2015-10-17 22:20:47 +02:00
PilzAdam
65b81bc6d6 New settings tab contain all possible settings
Settings are automatically parsed from builtin/settingtypes.txt
The edit dialog automatically adjust based on the type of setting
2015-10-17 22:06:29 +02:00
Rui
31ef73dfb5 Fix == to = 2015-10-17 17:20:58 +01:00
kwolekr
6329e53c5f Fix missing include on AIX 2015-10-17 01:16:17 -04:00
kwolekr
dbb1dffa98 Refactor Thread class to improve readability and portability
- Fix some incompatibilities with obscure platforms (AIX and WinCE)
- Clean up Thread class interface
- Add m_ prefix to private member variables
- Simplify platform-dependent logic, reducing preprocessor
  conditional clauses and improving readibility
- Add Thread class documentation
2015-10-16 23:43:29 -04:00
kwolekr
5b30bbcc23 Refactor thread utility interface
- Add "thr_" prefix to thread utility functions
- Compare threadid_ts in a portable manner, where possible
2015-10-16 22:20:24 -04:00
est31
0d693d2a8c Fix crash regression when invsize formspec gets used
The invsize formspec element is outdated. Even though,
it is still supported, only a deprecation warning is shown,
introduced by commit [1]. The lua context passed to the
log_deprecated method added by commit [1] is NULL for the
invsize deprecation warning, as its run on the client and not
the server.

Commit [1] has removed checks for NULL inside the log_deprecated
method, resulting in a crash when a formspec with an invsize
element is parsed. This commit puts the check back.

Fixes #3260.

Referenced commits:

[1]: b5acec0a3c5701c53854ff7afdf4008863e6e8df "Add proper lua api deprecated handling"

[2]: 7b8d372947aae232ddf598155e972bb4dda157a "Use warningstream for deprecated field messages and refactor log_deprecated"
2015-10-17 01:29:05 +02:00
est31
0fbee84a99 Fix enforcing of nametag hiding
Commit

d2ca662569427d36642660314668e416bf68f3c8 "Enforce hiding nametag"

didn't fix the issue for "client" instances, where the nametag update
was received before the object was added to the scene. This resulted
in the grey shadow on the nametag that commit tried to fix.

Thanks to @neoascetic for pointing out that there still is a shadow.
2015-10-15 23:46:03 +02:00
Maksim Gamarnik
abf8f1c702 Compress textures and fonts
Used PNGOUT, OptiPNG and DeflOpt.
Removes ~350 KB without any loss in quality.
2015-10-15 01:45:59 -04:00
kwolekr
563372662c Add BufReader and vector-based serialization methods 2015-10-15 01:31:31 -04:00
ShadowNinja
2dd96c435e Clean up gettext initialization 2015-10-15 01:16:10 -04:00
ShadowNinja
4b6c6fc976 Use warningstream for deprecated field messages and refactor log_deprecated 2015-10-15 01:14:38 -04:00
ShadowNinja
16a5125fd1 Remove explicit syslog printing for uncaught exceptions on Android
All log operations are now added to the syslog implicitly.
Also, pass along mutable string to argument vector for main().
2015-10-15 00:47:43 -04:00
ShadowNinja
85dbe50ec1 Rename macros with two leading underscores
These names are reserved for the compiler/library implementations.
2015-10-14 02:39:37 -04:00
ShadowNinja
324f309a49 Always use errorstream for DEBUG_EXCEPTION_HANDLER 2015-10-14 02:33:30 -04:00
ShadowNinja
75ac59b248 Lower log level for benign socket errors 2015-10-14 02:22:04 -04:00
ShadowNinja
29e8adeadc Use warningstream for log messages with WARNING
Remove DTIME macro and its uses, too
2015-10-14 01:36:48 -04:00
ShadowNinja
677ab7463d Refactor logging
- Add warning log level
- Change debug_log_level setting to enumeration string
- Map Irrlicht log events to MT log events
- Encapsulate log_* functions and global variables into a class, Logger
- Unify dstream with standard logging mechanism
- Unify core.debug() with standard core.log() script API
2015-10-14 01:03:54 -04:00
Kahrl
9617bec79d Fix how address is logged when a wrong password is supplied
- SRP: print the address only once, not twice
- Legacy: previously the address was not printed at all
- Make both messages structurally the same, to facilitate log analyzers
2015-10-12 21:47:56 +02:00
Rui
8a77a994bb Localize digprop_err function 2015-10-12 02:05:11 +02:00
paramat
97adfc69c1 Mgfractal: Independant offset and slice params for mandelbrot and julia
Player now spawns on julia set due to julia offset
Add commented-out '#include profiler.h' for timetaker use
Use v3fs to reduce number of parameters
Tune tunnel width to match mgv7
2015-10-11 23:59:57 +01:00
paramat
bdc3ea710a Fractal mapgen: Fix mysterious bug 2015-10-10 21:27:44 +01:00
est31
65cbaaa53f Clear list rings when loading a new formspec
Fixes a bug where the old list ring remained when a new formspec
was displayed over the old one. This created the list-ring of the new formspec
to be partly ignored.

Thanks to @VanessaE to report the bug, and @DonBatman to produce the code that
exposed it.
2015-10-10 17:10:52 +02:00
paramat
5e267f055d Mapgen: Use mapgen-specific names for constants in headers
Update copyright years in all mapgens
Add myself to copyright notices in mgv5 and mgv7
2015-10-09 05:51:47 +01:00
paramat
28d614f4a1 Fractal mapgen: Add seabed and large pseudorandom caves 2015-10-07 06:43:46 +01:00
paramat
9fdc33b4f8 Android/Mapgen: Add fractal mapgen file to android makefiles 2015-10-06 22:32:13 +01:00
est31
a40205cc29 Correct SRP documentation
Previous statements were wrong.
2015-10-06 19:08:53 +02:00
kilbith
801202245c Add viewing range GUI setting 2015-10-06 19:00:26 +02:00
paramat
beaa87fb1c Mapgen: Add 4D fractal mapgen 2015-10-06 06:43:04 +01:00
paramat
a803cf6933 Mgv5: getGroundLevelAtPoint searches a larger range 2015-10-05 02:03:50 +01:00
OdnetninI
6053103e77 Translated using Weblate (Spanish)
Currently translated at 99.6% (277 of 278 strings)
2015-10-05 00:17:52 +02:00
pilino1234
a26b4c1bde Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:33 +02:00
Luca Gronmaier
4d68457a99 Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
pilino1234
0f599e46af Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Luca Gronmaier
76ba7e1ea7 Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
andrewgigena
ff2f4c21b3 Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Olexandr
79f7f650d9 Translated using Weblate (Ukrainian)
Currently translated at 81.6% (227 of 278 strings)
2015-10-05 00:17:08 +02:00
Olexandr
42475f9f7b Translated using Weblate (Ukrainian)
Currently translated at 78.0% (217 of 278 strings)
2015-10-05 00:17:08 +02:00
Laura Arjona Reina
ae9905fcca Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Christian Haug
5bde6d31d6 Translated using Weblate (Norwegian Bokmål)
Currently translated at 3.5% (10 of 278 strings)
2015-10-05 00:17:08 +02:00
way-hu
4386a7795d Translated using Weblate (Hungarian)
Currently translated at 92.8% (258 of 278 strings)
2015-10-05 00:17:08 +02:00
Laura Arjona Reina
aa7fa37f96 Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Laura Arjona Reina
846328cdd9 Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Olexandr
b98d70e7eb Translated using Weblate (Ukrainian)
Currently translated at 66.5% (185 of 278 strings)

Maybe it is better to describe allowed symbols instead of writing regex?
2015-10-05 00:17:08 +02:00
Olexandr
3f32491554 Translated using Weblate (Ukrainian)
Currently translated at 46.4% (129 of 278 strings)
2015-10-05 00:17:08 +02:00
pilino1234
5712afee88 Translated using Weblate (German)
Currently translated at 99.2% (276 of 278 strings)
2015-10-05 00:17:08 +02:00
Jeff Huang
104b40c325 Translated using Weblate (Chinese (Taiwan))
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:07 +02:00