Commit Graph

2136 Commits

Author SHA1 Message Date
Yotam Barnoy
efdbb076a2 COMMON: implemented BufferedWriteStream and fixed bug in BufferedReadStream
I need the write buffering for the new version of the PSP streams and thought the simplest way to implement it would be along the lines of BufferedReadStream. Sadly, I found a nasty little bug in BRS but that's taken care of.
Also, I adapted these streams for target-specific memory allocation by using virtual functions for allocation/deallocation.

svn-id: r52325
2010-08-24 11:18:48 +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
Max Horn
db7e69b258 CONFIG: Always sort 'scummvm' and keymapper domains first
svn-id: r52296
2010-08-23 10:00:40 +00:00
Johannes Schickel
ff06f0c9d5 i18n: Changed wording of messages about translations.dat file.
svn-id: r52261
2010-08-21 14:05:38 +00:00
Johannes Schickel
7fd7689370 i18n: Formatting fixes.
svn-id: r52260
2010-08-21 13:38:08 +00:00
Johannes Schickel
a53d4dde66 i18n: Style fixes.
svn-id: r52257
2010-08-21 13:21:09 +00:00
Paul Gilbert
5c30303794 COMMON: Added equality operators to Common::Rect
svn-id: r52249
2010-08-21 08:17:06 +00:00
Thierry Crozat
9015a14531 i18n: Fix previous commit when translation support is disabled
Previous commit of translation.cpp introduced a defined but not
implemented operator when the translation support was disabled.
This was probably fine since it was not used, but not very clean.

svn-id: r52241
2010-08-20 21:04:39 +00:00
Thierry Crozat
d00b8a5753 i18n: Sort the list of available languages alphabetically
svn-id: r52239
2010-08-20 20:42:13 +00:00
Eugene Sandulenko
26dc4c2425 DINGOO: new port. Patch #3039277
svn-id: r52210
2010-08-19 12:43:37 +00:00
Eugene Sandulenko
040dfff8ce i18n: Move translations to standalone file. Patch #3044975
svn-id: r52208
2010-08-19 11:46:55 +00:00
Eugene Sandulenko
2bd5077d2e COMMON: Add caching to ZipArchive. Patch #3048388
Based on patch #3048388: "Hash map for ZipArchive class", though
I made the hashing by default and removed the old code.

It is a really good thing and will speed up any archive operations.

svn-id: r52204
2010-08-19 10:15:12 +00:00
Florian Kagerer
b480f0f2f0 COMMON: fix MSVC assert when using umlauts (or other characters > 127) in the global save/load menu
svn-id: r52173
2010-08-17 20:58:01 +00:00
Eugene Sandulenko
7dfd8f9ce2 COMMON: Remove redundant include from str.cpp
If it is needed for your specific platform, then readd it,
but for that platform. Although to me it looks all redundant.

svn-id: r52155
2010-08-17 12:47:18 +00:00
Max Horn
861e520579 COMMON: Try to clarify and update some Common::Archive docs
svn-id: r52131
2010-08-16 19:58:20 +00:00
Eugene Sandulenko
eff2623f10 OSYSTEM: revert r52120 and r52121. Introduced regressions
svn-id: r52127
2010-08-16 18:07:21 +00:00
Johannes Schickel
7b51537be2 Common: Fix bug in lastPathComponent.
Prior to this change lastPathComponent would not create a correct result,
when the input of lastPathComponent did not contain a single separator.

I also added a test case for this in our unit tests.

svn-id: r52123
2010-08-16 16:01:31 +00:00
Eugene Sandulenko
535d8e12bd OSYSTEM: Add directories to archive list just as in other variants
svn-id: r52121
2010-08-16 13:19:21 +00:00
Eugene Sandulenko
bfabe2af97 OSYSTEM: Fix file archive for non-flat directories
svn-id: r52120
2010-08-16 13:00:41 +00:00
Matthew Hoops
d882661aec COMMON: Cleanup MacResManager::convertCrsrCursor a bit
It's now a static function since it doesn't require any local variables and is really separate from the resource fork code. Also, actually assigning the keycolor (which was just being ignored).

svn-id: r52075
2010-08-14 04:03:36 +00:00
Eugene Sandulenko
05e139dd02 i18n: Update Russian translation
svn-id: r52062
2010-08-13 09:56:07 +00:00
Thierry Crozat
797012eb5c i18n: Fix link error when localization is disabled
This fix a regression introduced in revision 50448 ("Add support for
locale-dependant font'). When disabling localization a function was
declared, called but not implemented.

svn-id: r52048
2010-08-12 23:09:38 +00:00
Thierry Crozat
629042a07c i18n: Update German translation
svn-id: r52014
2010-08-11 23:21:53 +00:00
Thierry Crozat
53f11373d4 i18n: Update all translations.
Template and all translations were updated from source code. The
German and French translations contain additional changes.

svn-id: r52008
2010-08-11 21:51:34 +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
Thierry Crozat
575d38f602 i18n: Adding Spanish and Ukrainian translations
svn-id: r51596
2010-08-01 21:41:43 +00:00
Eugene Sandulenko
a0c58778f1 i18n: Update Russian translation
svn-id: r51574
2010-08-01 11:23:04 +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
Johannes Schickel
f75d84cbdd JANITORIAL: Some small explanation about stability of sorting algorithms.
Special thanks to lskovlun for his suggestion to add this.

svn-id: r51524
2010-07-30 23:42:50 +00:00
Johannes Schickel
8e8023d7cc JANITORIAL: Add comment about the stability of Common::sort.
svn-id: r51522
2010-07-30 23:24:22 +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
0b48a71c99 Remove PalmOS port
svn-id: r50964
2010-07-17 18:41:38 +00:00
Johannes Schickel
8d7bc0eab5 Some documentation fixes.
svn-id: r50830
2010-07-12 20:17:42 +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
e3d48dc9c2 Update German translation.
svn-id: r50808
2010-07-11 21:15:24 +00:00
Thierry Crozat
abd2057408 Update template and all translation files following the addition of a new translatable string. French and German translations also have additional updates.
svn-id: r50764
2010-07-09 17:25:45 +00:00
Willem Jan Palenstijn
a3202eab7c Note Common::String's behaviour may be undefined with \0 characters.
Also make operator=(char) and String(char) behave the same.

svn-id: r50712
2010-07-05 21:29:52 +00:00
Johannes Schickel
1443a2721c Fix update of GUI options, which only differ in the language setting.
svn-id: r50706
2010-07-05 20:10:56 +00:00
Johannes Schickel
73e51735a4 Formatting fixes.
svn-id: r50705
2010-07-05 20:10:28 +00:00
Thierry Crozat
31df21be75 Commit improved italian translation.
Also update the template file and all the other translation files (there is quite a lot of line numbers that have changed).

svn-id: r50540
2010-06-30 22:27:34 +00:00
Robert Špalek
02fb3f88e2 unzip.cpp can read uncompressed ZIP archives even when zlib is not linked in
svn-id: r50482
2010-06-29 06:33:31 +00:00
Thierry Crozat
32a192b79a Update German translation.
svn-id: r50461
2010-06-28 21:56:25 +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
7078655de0 i18n: Sync all translation with sources
svn-id: r50394
2010-06-27 20:38:05 +00:00
Eugene Sandulenko
f5bc8be952 i18n: Update Russian translation
svn-id: r50393
2010-06-27 20:36:39 +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
Thierry Crozat
006197e5bd Update the french translation.
svn-id: r50381
2010-06-27 16:53:08 +00:00
Johannes Schickel
4ec0827551 Add some explanation why we can not just use setlocale on Win32.
svn-id: r50354
2010-06-26 23:01:12 +00:00
Johannes Schickel
b7ab6ca3f1 Use "C" on Win32 as syslang in case the locale could not be determined.
svn-id: r50353
2010-06-26 22:51:13 +00:00