Commit Graph

1879 Commits

Author SHA1 Message Date
Thierry Crozat
8c08e6e80c I18N: Do not translate 'English' in the language selection PopUpWidget.
svn-id: r52313
2010-08-23 22:46:05 +00:00
Thierry Crozat
bc821136fd i18n: Add support for context in translations.
This change means there can now be different translations for the same
english string depending on the context. It is based on gettext msgctxt feature.
There is a new macro _c(msg, ctxt) that should be used instead of _(msg) in
the source code when we want to add a context to the message. For the
moment I have added contexts to only one message ("None") so that I could
test the changes. Context could be added also to get shorter translations when
GUI is in 1x mode.

I have also added back the fuzzy option to msmerge since it is useful when
adding contexts to populate the translations for the new contexts.

svn-id: r52308
2010-08-23 19:45:14 +00:00
Thierry Crozat
769ad3109d GUI: fix crash when localized font could not be found
The ThemeEngine had a fallback implemented to use the
non-localized font if the localized one (e.g. for Hungarian) could not
be found. However the fallback was not working. Now it is working. 

svn-id: r52243
2010-08-20 21:50:58 +00:00
Eugene Sandulenko
6682659da0 i18n: add translations.dat file
svn-id: r52209
2010-08-19 11:48:27 +00:00
Eugene Sandulenko
ff8b296c29 Use tabs instead of spaces for indentation.
svn-id: r51997
2010-08-11 19:32:07 +00:00
Florian Kagerer
4a159bcb1e GUI: add music devices for c64, amiga and apple II gs
These devices are not able to create appropriate drivers.
The only purpose for now is having proper gui options and flags and music types for the device detector.
The corresponding GUIO flags for the new devices have been added, too.

svn-id: r51995
2010-08-11 18:54:56 +00:00
Florian Kagerer
2db12a1ae7 GUI: fix broken MT-32 tab
svn-id: r51953
2010-08-10 16:24:00 +00:00
Neeraj Kumar
8e7cce6e5b fixed a typo with hotkeys in ButtonWidget
svn-id: r51830
2010-08-07 12:13:12 +00:00
Johannes Schickel
ff2ad216b1 GUI: Fix classic theme's GMM in 320x200.
svn-id: r51756
2010-08-05 14:40:22 +00:00
Johannes Schickel
2b73c50a47 GUI: Fix valgrind warning.
svn-id: r51658
2010-08-02 20:43:42 +00:00
Thierry Crozat
575d38f602 i18n: Adding Spanish and Ukrainian translations
svn-id: r51596
2010-08-01 21:41:43 +00:00
Johannes Schickel
2095ce31bd GUI: Fix loading BDF fonts from theme archives.
svn-id: r51585
2010-08-01 19:31:18 +00:00
Eugene Sandulenko
af76912e87 i18n: Added Cyrillic fonts to theme packages
This fixes ScummVM startup on systems with Russian set as locale.

svn-id: r51571
2010-08-01 10:17:31 +00:00
Thierry Crozat
1c6b339bbc i18n: use user friendly language names in GUI
The GUI now uses the content of the Language field from the po file
header if it is present and not empty for the language selection
PopupWidget. If not present it uses the file name as before (e.g.
ru_RU).

Also update all the translation template and all the translation files.

svn-id: r51542
2010-07-31 15:46:43 +00:00
Eugene Sandulenko
5787c8bb88 GUI: Rename Font cache to match new font naming scheme
svn-id: r51388
2010-07-27 20:17:29 +00:00
Johannes Schickel
9be3c69438 GUI: Fix regression from r51265.
This makes the GMM's option dialog work again.

The fix itself is exactly the same like I made in r50468, which
also broke the GMM's option dialog.

svn-id: r51330
2010-07-26 18:41:19 +00:00
Johannes Schickel
dec30186eb GUI: Fix MIDI gain position in MIDI tab for lowres classic theme.
svn-id: r51277
2010-07-25 16:38:25 +00:00
Eugene Sandulenko
ccbb12b1cb GUI: Fix overdrawn tabs
If tabs are scrolled, do not draw those which are supposed to be invisible.

svn-id: r51268
2010-07-24 22:54:56 +00:00
Eugene Sandulenko
d88ffa1341 GUI: Update built-in theme
svn-id: r51266
2010-07-24 22:31:31 +00:00
Eugene Sandulenko
7457011a87 GUI: Fix bug #3027772 by adding MT-32 tab
Bug #3027772: "Can't switch between Text and Speech". The problem was in
overcrowded Audio tab in any resolution with height < 480.

Solved by adding new MT-32 tab and grouping all relevant widgets there.

TODO:
 - The problem still exists for 320x200 resolution where Subtitle speed
   control is not accessible
 - Apparently nobody tested tab control scrolling after switching to new
   GUI, and now there are artifacts

svn-id: r51265
2010-07-24 22:29:17 +00:00
Eugene Sandulenko
1867b44bf4 GUI: Fix bug #3024930
Bug #3024930: "GUI: GMM errors out in Hercules mode". Fixed by switching
Hercules resolutions to lowres GUI.

svn-id: r51226
2010-07-23 21:26:30 +00:00
Eugene Sandulenko
d6695e180c GUI: Fix tooltip drawing
With help of Tanoku tooltips were switched from widgets to dialogs
which helped to fix nasty bug with background not being restored.
Although it is basically a hack around inconsistent font backbuffering
in our GUI code, for the time being it is feasible.

The patch was extended with way to specify tooltip background in the
theme file.

svn-id: r51217
2010-07-23 19:36:47 +00:00
Johannes Schickel
41190f8a7b GUI: Properly show external MIDI devices.
Formerly in case a game only specified GUIO_MIDIMT32, only the MT-32 Emulator
was shown, since that is the only device which is of type MT_MT32. All
external MIDI devices are currently only flagged with MT_GM.

svn-id: r51107
2010-07-21 20:37:46 +00:00
Johannes Schickel
e5e94d4511 Strip trailing whitespaces in our common code base.
svn-id: r51094
2010-07-21 18:17:51 +00:00
Max Horn
9977e2db90 GUI: Enhance ThemeEngine to find theme .zip files using SearchMan
This is based on the Android specific patch found under:
backends/platform/android/scummvm-android-themeengine.patch
After some testing we should be able to get rid of that custom patch.

svn-id: r51028
2010-07-19 14:28:46 +00:00
Filippos Karapetis
48b288d9aa Fixing compilation with MSVC
svn-id: r50966
2010-07-17 19:11:59 +00:00
Max Horn
0b48a71c99 Remove PalmOS port
svn-id: r50964
2010-07-17 18:41:38 +00:00
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Torbjörn Andersson
992a8bfd3f Cleanup.
svn-id: r50925
2010-07-16 03:14:58 +00:00
Johannes Schickel
9644e7fe5f Properly add Matteo Angelino to our credits for his Italian translation.
svn-id: r50822
2010-07-12 15:50:48 +00:00
Johannes Schickel
ac268edafb Consistently use "MT-32" as short name of the Roland MT-32 in our GUI and credits files.
svn-id: r50821
2010-07-12 15:50:23 +00:00
Thierry Crozat
65d6ce4193 Replace _s(test ? "string1" : "string2") by test ? _("string1") : _("string2") in two places. With the old code the second string was not detected as being translatable.
svn-id: r50763
2010-07-09 17:22:02 +00:00
Florian Kagerer
47e59d8cc2 GUI/AUDIO: minor fix for the case that after enabling individual audio options for a target the gui tries to select the audio device from global options, but that particular device is unavailable due to GUIO flags settings
svn-id: r50684
2010-07-05 15:53:17 +00:00
Johannes Schickel
2f138f6055 Simplify audio device settings handling by using the device handle as tag instead of newly created id.
svn-id: r50651
2010-07-04 18:24:13 +00:00
Johannes Schickel
9cf1cff5fc Whoops, always increase midiId, not only when it's added to the GM Device popup.
svn-id: r50650
2010-07-04 18:07:34 +00:00
Johannes Schickel
9880017c11 Prevent the MT-32 Emulator from being displayed in the "GM Device" pop up.
svn-id: r50649
2010-07-04 18:03:18 +00:00
Johannes Schickel
da1a8535b4 More cleanup / readability fixes.
svn-id: r50648
2010-07-04 18:00:46 +00:00
Johannes Schickel
8f2c0c2ff0 Cleanup.
svn-id: r50647
2010-07-04 17:40:06 +00:00
Florian Kagerer
6c9e3b01da GUI/AUDIO: This change will make individual game audio settings take over the audio device from the global settings if no device config key is found for that game (This should fix the problem reported by LordHoto on devel. It might make sense to implement this behaviour to other settings, like subtitle mode etc.)
svn-id: r50646
2010-07-04 15:06:42 +00:00
Johannes Schickel
db01417447 Fix the size of the ScummVM logo in the launcher in the modern theme.
svn-id: r50642
2010-07-04 01:19:16 +00:00
Johannes Schickel
052d2ab6f1 Prevent GraphicsWidget from being assigned a surface which wouldn't fit in the widget.
svn-id: r50641
2010-07-04 01:18:49 +00:00
Johannes Schickel
336cde4b61 Always use kThumbnailHeight2 (i.e. 120) for the height of the thumbnail widget.
This fixes the thumbnails for games with resolutions != n*200 in the launcher.

svn-id: r50640
2010-07-04 01:11:37 +00:00
Johannes Schickel
acecfcaf69 Center the surface of a GraphicsWidget in case it is smaller than the widget's size.
svn-id: r50639
2010-07-04 01:11:18 +00:00
Robert Špalek
5e030bebcc enable reading ZIP archives even without USE_ZLIB
our module unzip.cpp can read uncompressed ZIP archives even without zlib.  if some of the files
inside are compressed and zlib is not linked in, an error is returned.

svn-id: r50483
2010-06-29 06:38:00 +00:00
Johannes Schickel
23fa2296c3 Fix regression from r50382, which triggered an assert when clicking "OK" in the GMM's options dialog.
The problem here is that our ConfigDialog uses "" as domain name,
this will result in the assert in common/config-manager.cpp:323
getting triggered, when using ConfMan.removeKey.

Since setting the domain to the game's domain does not seem save
according to the FIXME in gui/dialogs.cpp about this domain hackery,
I decided to adapt the OptionsDialog to only call ConfMan.removeKey
for "music_driver" etc., when the music driver widgets are present.
This is consistent with the over uses of removeKey in
OptionsDialog::close too.

svn-id: r50468
2010-06-28 23:41:43 +00:00
Martin Kiewitz
0a58cdb6e9 common console: also show prompt, if the engine wrote onto gui console since last call - fixes sci breakpoints
svn-id: r50449
2010-06-28 16:09:54 +00:00
Eugene Sandulenko
0e7ccb896d i18n: Add support for locale-dependent fonts
Currently it ws not decided where to put fonts, but if you put BDF files into
themepath, they will get picked up.

The font name has to contain same codepage specification as in the .po file,
i.e. fixed5x8-iso-8859-5.bdf for Cyrillic codepage. In case the font does not
exist, default will be used.

All built in fonts get proper names.

TODO: Currently there is a bug with our font cacher. Font clR6x12-iso-8859-5
is empty after loading from FCC file. Reason is unknown.

svn-id: r50448
2010-06-28 15:17:10 +00:00
Eugene Sandulenko
0d6efb2334 Fonts: More BDF font renames
svn-id: r50437
2010-06-28 12:20:15 +00:00
Eugene Sandulenko
84d43b9ab4 Fonts: Add Russian codepage fonts, renamed existing ones
svn-id: r50436
2010-06-28 12:16:53 +00:00
Thierry Crozat
945297a599 Add italian translation from the patch tracker (#3022046) and update credits.
svn-id: r50386
2010-06-27 18:19:37 +00:00