diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/OrderEntryAppearanceServiceImpl.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/OrderEntryAppearanceServiceImpl.java index fe8ce129033e..ddabaf3f419a 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/OrderEntryAppearanceServiceImpl.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/OrderEntryAppearanceServiceImpl.java @@ -110,7 +110,8 @@ public class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService } final String url = StringUtil.trimEnd(files[0], JarFileSystem.JAR_SEPARATOR); - return SimpleTextCellAppearance.regular(PathUtil.getFileName(url), PlatformIcons.LIBRARY_ICON); + String text = ProjectBundle.message("library.unnamed.text", PathUtil.getFileName(url), files.length - 1); + return SimpleTextCellAppearance.regular(text, PlatformIcons.LIBRARY_ICON); } @NotNull diff --git a/platform/projectModel-impl/src/messages/ProjectBundle.properties b/platform/projectModel-impl/src/messages/ProjectBundle.properties index 7243782922bd..fbe5a824a831 100644 --- a/platform/projectModel-impl/src/messages/ProjectBundle.properties +++ b/platform/projectModel-impl/src/messages/ProjectBundle.properties @@ -198,6 +198,7 @@ library.sources.node=Sources project.order.entry.project= jdk.missing.item= library.empty.library.item=Empty Library +library.unnamed.text={0} and {1, choice, 1#one more file|2#{1} more files} module.type.java.name=Java Module module.type.java.description=Java modules are used for developing JVM-based desktop and web applications, including applications that use Java EE and other enterprise development frameworks. module.type.unknown.name=Unknown module type. Used \"{0}\" as a substitute