Commit Graph

5119 Commits

Author SHA1 Message Date
est31
f3d82567c9 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
c4d1862344 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
6b408248a1 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
006ef5b4a5 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
06e5d0f5c5 Fix == to = 2015-10-17 17:20:58 +01:00
kwolekr
6ba9d6545d Fix missing include on AIX 2015-10-17 01:16:17 -04:00
kwolekr
765a834cd0 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
6be74d17df 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
836486a98e 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
b600bc30a9 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
5d88501a57 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
1a5b4b38f3 Add BufReader and vector-based serialization methods 2015-10-15 01:31:31 -04:00
ShadowNinja
e067ceacb8 Clean up gettext initialization 2015-10-15 01:16:10 -04:00
ShadowNinja
7b8d372947 Use warningstream for deprecated field messages and refactor log_deprecated 2015-10-15 01:14:38 -04:00
ShadowNinja
659922fd30 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
6f2d785d0f Rename macros with two leading underscores
These names are reserved for the compiler/library implementations.
2015-10-14 02:39:37 -04:00
ShadowNinja
6f4d6cb574 Always use errorstream for DEBUG_EXCEPTION_HANDLER 2015-10-14 02:33:30 -04:00
ShadowNinja
4236792b87 Lower log level for benign socket errors 2015-10-14 02:22:04 -04:00
ShadowNinja
96cc5b34fe Use warningstream for log messages with WARNING
Remove DTIME macro and its uses, too
2015-10-14 01:36:48 -04:00
ShadowNinja
2139d7d45f 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
e0b57c1140 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
7f2cefa093 Localize digprop_err function 2015-10-12 02:05:11 +02:00
paramat
bda2f56503 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
3a4bcf35a1 Fractal mapgen: Fix mysterious bug 2015-10-10 21:27:44 +01:00
est31
41d896d5c2 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
7504cdcfbf 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
706e7cebea Fractal mapgen: Add seabed and large pseudorandom caves 2015-10-07 06:43:46 +01:00
paramat
d152b55971 Android/Mapgen: Add fractal mapgen file to android makefiles 2015-10-06 22:32:13 +01:00
est31
8edc8a14e4 Correct SRP documentation
Previous statements were wrong.
2015-10-06 19:08:53 +02:00
kilbith
caf0df8924 Add viewing range GUI setting 2015-10-06 19:00:26 +02:00
paramat
e62eac49d5 Mapgen: Add 4D fractal mapgen 2015-10-06 06:43:04 +01:00
paramat
ce1a70c703 Mgv5: getGroundLevelAtPoint searches a larger range 2015-10-05 02:03:50 +01:00
OdnetninI
94464fce70 Translated using Weblate (Spanish)
Currently translated at 99.6% (277 of 278 strings)
2015-10-05 00:17:52 +02:00
pilino1234
8373df623b Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:33 +02:00
Luca Gronmaier
7521d15bf2 Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
pilino1234
d441159fb7 Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Luca Gronmaier
8b7860ec70 Translated using Weblate (German)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
andrewgigena
31c2f03451 Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Olexandr
58ec4482ce Translated using Weblate (Ukrainian)
Currently translated at 81.6% (227 of 278 strings)
2015-10-05 00:17:08 +02:00
Olexandr
66f6b4ca59 Translated using Weblate (Ukrainian)
Currently translated at 78.0% (217 of 278 strings)
2015-10-05 00:17:08 +02:00
Laura Arjona Reina
a77b980c94 Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Christian Haug
a576823917 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
1472b25a58 Translated using Weblate (Hungarian)
Currently translated at 92.8% (258 of 278 strings)
2015-10-05 00:17:08 +02:00
Laura Arjona Reina
51cb2fd269 Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Laura Arjona Reina
4cd7e46c63 Translated using Weblate (Spanish)
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:08 +02:00
Olexandr
bcf03e0ff5 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
9a3dce3b88 Translated using Weblate (Ukrainian)
Currently translated at 46.4% (129 of 278 strings)
2015-10-05 00:17:08 +02:00
pilino1234
8518ec2861 Translated using Weblate (German)
Currently translated at 99.2% (276 of 278 strings)
2015-10-05 00:17:08 +02:00
Jeff Huang
1d628a5858 Translated using Weblate (Chinese (Taiwan))
Currently translated at 100.0% (278 of 278 strings)
2015-10-05 00:17:07 +02:00
Tim
a3ca8854a8 Translated using Weblate (German)
Currently translated at 98.9% (275 of 278 strings)
2015-10-05 00:17:07 +02:00