Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1 align="center">OpenCms</h1>

<p align="center">
<a href="http://opencms.org/" alt="OpenCms">
<img src="https://www.alkacon.com/export/shared/web/logos/opencms-logo.svg" alt="OpenCms logo" width="340" height="84">
Expand Down
3 changes: 2 additions & 1 deletion src/org/opencms/i18n/CmsLocaleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import org.apache.commons.logging.Log;

import com.cybozu.labs.langdetect.DetectorFactory;
import org.springframework.web.util.HtmlUtils;

/**
* Manages the locales configured for this OpenCms installation.<p>
Expand Down Expand Up @@ -305,7 +306,7 @@ public static List<String> getLocaleVariants(
result.add(basename);
}
if (wantDefaultAsBase) {
result.add(basename + "_" + getDefaultLocale().toString());
result.add(basename + "_" + HtmlUtils.htmlEscape(HtmlUtils.htmlUnescape(getDefaultLocale().toString())));
}
return result;
}
Expand Down