unicorn commit: ~ fixed locale in language filenames

changeset:   1463:b6edc11943a5
tag:         tip
user:        Thomas Gambet <tgambet@w3.org>
date:        Thu Aug 12 11:35:14 2010 -0400
files:       src/org/w3c/unicorn/action/LanguageAction.java
description:
~ fixed locale in language filenames


diff -r 92e02bd47a32 -r b6edc11943a5 src/org/w3c/unicorn/action/LanguageAction.java
--- a/src/org/w3c/unicorn/action/LanguageAction.java	Thu Aug 12 11:12:38 2010 -0400
+++ b/src/org/w3c/unicorn/action/LanguageAction.java	Thu Aug 12 11:35:14 2010 -0400
@@ -312,13 +312,13 @@
 			
 			OutputFormater fileOutputFormater;
 			if (interfaceChanged) {
-				fileOutputFormater = new FileOutputFormater("language.properties", Property.get("DEFAULT_LANGUAGE"), "text/plain", languageParameter + ".properties");
+				fileOutputFormater = new FileOutputFormater("language.properties", Property.get("DEFAULT_LANGUAGE"), "text/plain", languageParameter.replace("_", "-") + ".properties");
 				outputFormaters.add(fileOutputFormater);
 			}
 			
 			OutputFormater fileOutputFormater2;
 			if (tasklistChanged) {
-				fileOutputFormater2 = new FileOutputFormater("tasklist.properties", Property.get("DEFAULT_LANGUAGE"), "text/plain", languageParameter + ".tasklist.properties");
+				fileOutputFormater2 = new FileOutputFormater("tasklist.properties", Property.get("DEFAULT_LANGUAGE"), "text/plain", languageParameter.replace("_", "-") + ".tasklist.properties");
 				outputFormaters.add(fileOutputFormater2);
 			}
 			

Received on Thursday, 12 August 2010 15:36:33 UTC