[Scummvm-cvs-logs] SF.net SVN: scummvm:[52260] scummvm/trunk/common

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Aug 21 15:38:08 CEST 2010


Revision: 52260
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52260&view=rev
Author:   lordhoto
Date:     2010-08-21 13:38:08 +0000 (Sat, 21 Aug 2010)

Log Message:
-----------
i18n: Formatting fixes.

Modified Paths:
--------------
    scummvm/trunk/common/translation.cpp
    scummvm/trunk/common/translation.h

Modified: scummvm/trunk/common/translation.cpp
===================================================================
--- scummvm/trunk/common/translation.cpp	2010-08-21 13:36:09 UTC (rev 52259)
+++ scummvm/trunk/common/translation.cpp	2010-08-21 13:38:08 UTC (rev 52260)
@@ -161,9 +161,9 @@
 	while (rightIndex >= leftIndex) {
 		const int midIndex = (leftIndex + rightIndex) / 2;
 		const PoMessageEntry * const m = &_currentTranslationMessages[midIndex];
-		
+
 		const int compareResult = strcmp(message, _messageIds[m->msgid].c_str());
-		
+
 		if (compareResult == 0)
 			return m->msgstr.c_str();
 		else if (compareResult < 0)
@@ -238,7 +238,7 @@
 	int nbTranslations = in.readUint16BE();
 	
 	// Skip all the block sizes
-	for (int i = 0 ; i < nbTranslations + 2 ; ++i)
+	for (int i = 0; i < nbTranslations + 2; ++i)
 		in.readUint16BE();
 
 	// Read list of languages
@@ -291,7 +291,7 @@
 
 	// Get size of blocks to skip.
 	int skipSize = 0;
-	for (int i = 0 ; i < index + 2 ; ++i)
+	for (int i = 0; i < index + 2; ++i)
 		skipSize += in.readUint16BE();
 	// We also need to skip the remaining block sizes
 	skipSize += 2 * (nbTranslations - index);
@@ -317,12 +317,12 @@
 	}
 }
 
-bool TranslationManager::checkHeader(File& in) {
+bool TranslationManager::checkHeader(File &in) {
 	char buf[13];
 	int ver;
 
 	if (!in.isOpen()) {
-		warning("You're missing the 'translations.dat' file. GUI translation will not be available");
+		warning("You re missing the 'translations.dat' file. GUI translation will not be available");
 		return false;
 	}
 

Modified: scummvm/trunk/common/translation.h
===================================================================
--- scummvm/trunk/common/translation.h	2010-08-21 13:36:09 UTC (rev 52259)
+++ scummvm/trunk/common/translation.h	2010-08-21 13:38:08 UTC (rev 52260)
@@ -139,12 +139,12 @@
 	 *
 	 * @param index of the language in the list of languages
 	 */
-	void loadLanguageDat(int);
+	void loadLanguageDat(int index);
 
 	/**
 	 * Check the header of the given file to make sure it is a valid translations data file.
 	 */
-	bool checkHeader(File&);
+	bool checkHeader(File &in);
 
 	String _syslang;
 	StringArray _langs;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list