Norwegian Nynorsk translation + a few bugfixes

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@75 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2010-10-27 09:25:35 +00:00
parent e4eafbf87c
commit b415705e47
15 changed files with 338 additions and 24 deletions

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2009 by Henrik Just
* Copyright: 2002-2010 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.2 (2009-06-05)
* Version 1.2 (2010-10-27)
*
*/
@ -89,11 +89,25 @@ public class ExportNameCollection{
}
}
String sExportName=outbuf.toString();
// the result may exist in the collecion; add a's at the end
while (exportNames.containsValue(sExportName)){
sExportName+="a";
if (sExportName.length()==0) {
// Do not accept empty export names
sExportName = "qwerty";
}
if (!exportNames.containsValue(sExportName)) {
// Everything's fine, we can use the stripped name directly
exportNames.put(sName,sExportName);
}
else {
// Otherwise add letters at the end until a unique export name is found
int i=1;
while (true) {
String sSuffix = Misc.int2alph(i++, false);
if (!exportNames.containsValue(sExportName+sSuffix)) {
exportNames.put(sName,sExportName+sSuffix);
break;
}
}
}
exportNames.put(sName,sExportName);
}
public String getExportName(String sName) {