Index: /CKLangTool/trunk/_source/includes/cklangtool.js
===================================================================
--- /CKLangTool/trunk/_source/includes/cklangtool.js	(revision 7299)
+++ /CKLangTool/trunk/_source/includes/cklangtool.js	(revision 7300)
@@ -131,9 +131,16 @@
 					fileNameWithoutExt = stripExtension(file.getName());
 
-				if ( languageCode.toLowerCase() != fileNameWithoutExt.toLowerCase() && ( !CKLANGTOOL.txLangMap[languageCode] || CKLANGTOOL.txLangMap[languageCode] != fileNameWithoutExt ) )
-				{
-					throw ( "ERROR: Language file does not seem to be valid.\n" +
+				if ( languageCode.toLowerCase() != fileNameWithoutExt.toLowerCase() )
+				{
+					if ( !CKLANGTOOL.txLangMap[languageCode] || CKLANGTOOL.txLangMap[languageCode] != fileNameWithoutExt )
+					{
+						throw ( "ERROR: Language file does not seem to be valid.\n" +
 							"Language code (" + languageCode + ") and the name of the file (" + file.getName() + ") do not match.\n" +
 							"Is the following file valid: " + file.getAbsolutePath() + " ?\n" );
+					}
+					else
+					{
+						languageCode = CKLANGTOOL.txLangMap[languageCode];
+					}
 				}
 
