increase visibility for the docs provider
This commit is contained in:
parent
9c0aec3515
commit
61d5d63bf9
@ -16,6 +16,7 @@ import de.marhali.easyi18n.util.KeyPathConverter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.ResourceBundle;
|
||||
@ -76,10 +77,6 @@ abstract class AbstractDocumentationProvider implements DocumentationProvider, O
|
||||
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
builder.append(DocumentationMarkup.DEFINITION_START);
|
||||
builder.append(bundle.getString("documentation"));
|
||||
builder.append(DocumentationMarkup.DEFINITION_END);
|
||||
|
||||
if(results.size() == 1) { // Single value
|
||||
builder.append(DocumentationMarkup.CONTENT_START);
|
||||
builder.append("<strong>").append(results.values().toArray()[0]).append("</strong>");
|
||||
@ -99,6 +96,13 @@ abstract class AbstractDocumentationProvider implements DocumentationProvider, O
|
||||
builder.append(DocumentationMarkup.SECTIONS_END);
|
||||
}
|
||||
|
||||
String excerpt = MessageFormat.format(bundle.getString("documentation"),
|
||||
"<strong>'" + settings.getPreviewLocale() + "'</strong>");
|
||||
|
||||
builder.append(DocumentationMarkup.CONTENT_START).append(DocumentationMarkup.GRAYED_START);
|
||||
builder.append(excerpt);
|
||||
builder.append(DocumentationMarkup.GRAYED_END).append(DocumentationMarkup.CONTENT_END);
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
documentation=EasyI18n Translation
|
||||
documentation=Excerpt from the {0} translations
|
||||
view.tree.title=Tree View
|
||||
view.tree.collapse=Collapse Tree
|
||||
view.tree.expand=Expand Tree
|
||||
|
Loading…
x
Reference in New Issue
Block a user