Commit 01a459b3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Service name takes in consideration current locale. JM-826

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5401 b35dd754-fafc-0310-a699-88a17e54d16e
parent d2072eba
......@@ -932,7 +932,13 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
}
public String getName() {
return "Public Chatrooms";
// Check if there is a system property that overrides the default value
String serviceName = JiveGlobals.getProperty("muc.service-name");
if (serviceName != null && serviceName.trim().length() > 0) {
return serviceName;
}
// Return the default service name based on the current locale
return LocaleUtils.getLocalizedString("muc.service-name");
}
public String getAction() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment