Commit Graph

930 Commits

Author SHA1 Message Date
Thierry Crozat
b77434c415 I18N: Fix create_translation tool when string contain special characters
The english or translated strings in the PO file might have representations of special characters (e.g. '\n') or protected characters (e.g. '\"') visible as
in the source code. However at run time ScummVM expects them to be
the special characters and not their visible representations. Now the
create_translations tool does the substitution if it finds such characters.

svn-id: r52739
2010-09-15 23:12:29 +00:00
Arnaud Boutonné
1edd47c9ff TOOLS: Add staticfont.h to create_hugo
This file was supposed to be committed in r52696...

svn-id: r52709
2010-09-13 16:01:23 +00:00
Arnaud Boutonné
f656ed2974 TOOLS: Add fonts in hugo.dat for DOS version
svn-id: r52696
2010-09-12 22:54:37 +00:00
Jordi Vilalta Prat
b92c329fa5 I18N: Don't use fuzzy translations.
- Tweaked create_translations to ignore fuzzy translations.
- Fixed some formatting and removed extra whitespaces.

svn-id: r52638
2010-09-08 17:01:21 +00:00
Willem Jan Palenstijn
29afa3094d CREDITS: Fix typo
svn-id: r52624
2010-09-07 17:45:36 +00:00
Eugene Sandulenko
771d2274dd CREDITS: Thanked for Drascula and Hugo sources
svn-id: r52622
2010-09-07 17:38:21 +00:00
Arnaud Boutonné
be53141091 HUGO: Clean up creation tool
Fix typos and suppress all identical noun arrays. 

svn-id: r52596
2010-09-06 16:09:56 +00:00
Arnaud Boutonné
2bea43357f HUGO: Add hints in DOS versions
In DOS versions, display hints when mouse is over a
hotspot. This behavior is based on the one of Hugo Win
versions.

svn-id: r52590
2010-09-06 12:09:11 +00:00
Arnaud Boutonné
054a95498e TOOLS: Suppress some dead code reported by Cppcheck
svn-id: r52496
2010-09-02 12:52:03 +00:00
Arnaud Boutonné
ca74eb3e8b HUGO: Fix labyrinth bug in Hugo 2 for Windows
svn-id: r52485
2010-09-01 22:11:01 +00:00
Thierry Crozat
fc05e8a4ff I18N: Modify create-translations tool to remove duplicate translations
The TranslationManager in ScummVM will pick up the translation associated
to no context if present and if a translation could not be found for a specific
context. Based on this, the create_translations tool will now remove the
translation associated to a specific context if the same message has the
same translation associated to no context. This generate a smaller
translation.dat file, and this should also slightly improve performances (less
strings to load from the file and smaller list in which to look for a translated
message).

svn-id: r52459
2010-08-30 22:10:32 +00:00
Sven Hesse
1185c2b8be HUGO: Remove executable flag in create_hugo source
svn-id: r52421
2010-08-28 07:42:54 +00:00
Arnaud Boutonné
51b88a69b8 HUGO: Some fixes for the create_hugo tool
svn-id: r52420
2010-08-28 00:47:17 +00:00
Arnaud Boutonné
234b8e4f79 HUGO: Fix GCC warnings in objects_xx initialization
svn-id: r52418
2010-08-27 23:11:29 +00:00
Arnaud Boutonné
32734897a8 HUGO: Fix some action types in the creation tool
svn-id: r52417
2010-08-27 22:29:51 +00:00
Johannes Schickel
2444957986 HUGO: Fix "UNIX" redefinition on Unix-like systems in create_hugo.
svn-id: r52416
2010-08-27 22:24:15 +00:00
Johannes Schickel
0650872203 HUGO: Silence some const cast warnings in create_hugo.
svn-id: r52415
2010-08-27 22:13:30 +00:00
Arnaud Boutonné
c4db714e35 HUGO: Fix a bug in creation tool in act14 (H1 Dos)
Fix a bug (missing character id in initialization) in creation tool
and silent some more warnings.

svn-id: r52414
2010-08-27 21:13:47 +00:00
Arnaud Boutonné
91f567427c TOOLS: Fix some warnings in create_hugo
svn-id: r52410
2010-08-27 14:03:20 +00:00
Andre Heider
2506560bda TOOLS: const correctness to fix compilation.
svn-id: r52394
2010-08-25 19:41:59 +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
083faee7c1 i18n: Formatting fixes.
svn-id: r52285
2010-08-22 19:47:07 +00:00
Thierry Crozat
c89462c2a6 i18n: Implement po file parsing in create_translations tool
Until now the parsing was done by the po2c perl script, which
generated a messages.h file. The create_translations executable
had then to be recompiled before being executed. This commit
removes the po2c perl script. The parsing is now directly done by
the create_translations tool.

The parsing has also been extended to support the msgctxt strings.
This is not dumped yet in translations.dat but will be once I have
finished implementing context support for the translations.

svn-id: r52284
2010-08-22 18:49:19 +00:00
Arnaud Boutonné
0b4fef3aa7 Hugo - Move DOS hardcoded inventory strings to Hugo.dat
svn-id: r52226
2010-08-20 15:30:30 +00:00
Eugene Sandulenko
040dfff8ce i18n: Move translations to standalone file. Patch #3044975
svn-id: r52208
2010-08-19 11:46:55 +00:00
Arnaud Boutonné
ef21077b81 create_hugo - Add MSVC9 files
svn-id: r52141
2010-08-17 10:09:50 +00:00
Eugene Sandulenko
06960d33e1 HUGO: Adding engine to the main tree
svn-id: r52137
2010-08-17 09:28:20 +00:00
Florian Kagerer
f4d38ccd40 LOL: added english floppy version
svn-id: r51834
2010-08-07 14:38:07 +00:00
Johannes Schickel
b7aa748dd2 KYRA: Append newline in help string of create_kyradat.
svn-id: r51771
2010-08-05 23:04:57 +00:00
Johannes Schickel
e82194e4c5 KYRA: Fix compilation of create_kyradat.
svn-id: r51769
2010-08-05 22:39:54 +00:00
Florian Kagerer
9c8b465505 KYRA: FM-Towns audio driver rewrite
- FM-Towns euphony driver completely rewritten based on KYRA FM-Towns and LOOM towns disasm.

- Split all the emu and driver code from sound_towns.cpp into different files to make things a bit less confusing.

- Move the driver code to common space since the exact same euphony driver is used by LOOM which means we could get rid of the outdated and incomplete ym2612 driver/emu implementation (which doesn't even do things like instrument loading, pan position, etc). I haven't tried to add this to the Scumm engine yet, since I am not  familiar with it and my priority was to get the driver finished first. But from the look of disasm it shouldn't be difficult to do.

- Introduce a generic FM-Towns audio interface based on FM-Towns system file disasm which was necessary for the euphony driver rewrite. Every FM-Towns game I have seen so far seems to access the audio hardware via these system functions. This interface implementation will also allow reasonably simple creation of new FM-Towns audio drivers (e.g. this could be used for Kings Quest 5 FM-Towns or others).

- Move the PC98 driver to common space, too, since I have a strong feeling that this driver is also used in the PC98 version of Future Wars

- This also improves KYRA FM-Towns music quality, sound effects accuracy and music fading.

svn-id: r51645
2010-08-02 18:30:25 +00:00
Thierry Crozat
575d38f602 i18n: Adding Spanish and Ukrainian translations
svn-id: r51596
2010-08-01 21:41:43 +00:00
Johannes Schickel
f2838316cb create_msvc: Fix SCUMMVM_LIBS support for MSVC2010.
svn-id: r51595
2010-08-01 21:30:15 +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
0e5aa06db0 TOOLS: Formatting fixes.
svn-id: r51216
2010-07-23 19:20:28 +00:00
Johannes Schickel
824a3c3ca1 TOOLS: Preliminary SCUMMVM_LIBS support for msvc8/9.
Currently %(SCUMMVM_LIBS)/bin is not added to the executable path, since I can not find any easy way to do that. The libs and include setting should be fine though.

svn-id: r51214
2010-07-23 19:06:38 +00:00
Johannes Schickel
deef8bb650 TOOLS: Fix MSVC 2010 project files.
Formerly the MSVC 2010 project files did not respect the global include/library/executable directories of the user, but used custom paths for that. This resulted in headers and libraries not be found by the MSVC, in case they were not stored in %(SCUMMVM_LIBS).

Additionally it overwrote the executable MSVC used when compiling for x64, thus breaking the x64 target.

svn-id: r51213
2010-07-23 18:42:54 +00:00
Max Horn
0b48a71c99 Remove PalmOS port
svn-id: r50964
2010-07-17 18:41:38 +00:00
Johannes Schickel
9522e68f76 Whops. Also now properly add Matteo's nickname to our credits.
svn-id: r50824
2010-07-12 15:53:24 +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
Travis Howell
be399485cd Add Nintendo Wii (PAL) versions of Freddi Fish: Kelp Seed Mystery.
svn-id: r50367
2010-06-27 05:30:18 +00:00
Johannes Schickel
ce111a39df Add flag to set USE_DETECTLANG in create_msvc.
svn-id: r50350
2010-06-26 22:45:53 +00:00
Jordi Vilalta Prat
4102b4a682 GUI: Add the catalan translation
svn-id: r50327
2010-06-26 15:59:06 +00:00
Max Horn
7d4d58bab4 SCUMM: Set some more detection file sizes
svn-id: r50270
2010-06-25 16:08:34 +00:00
Thierry Crozat
dfd8ecc55c Gives proper credits for the Hungarian translation. Also remembered to update the website credits this time (it was also missing the Android credits by the way).
svn-id: r50251
2010-06-24 22:56:32 +00:00
Thierry Crozat
ff47de5cd1 Add credits for the translations.
svn-id: r50248
2010-06-24 22:37:30 +00:00
Johannes Schickel
17a96b3bd2 Yet another slight variable renaming to match our conventions.
svn-id: r50242
2010-06-24 22:00:45 +00:00
Johannes Schickel
968e10795f Do not include any headers from common/messages.cpp, since that file might be included into an namespace.
svn-id: r50241
2010-06-24 22:00:20 +00:00
Johannes Schickel
a5fb4fec2e Some more cleanup of po2c's output.
svn-id: r50240
2010-06-24 21:59:50 +00:00