diff --git a/src/main/kotlin/com/wilinz/globalization/translator/action/android/TranslateSelectedAction.kt b/src/main/kotlin/com/wilinz/globalization/translator/action/android/TranslateSelectedAction.kt
index c374622..fe52a5e 100644
--- a/src/main/kotlin/com/wilinz/globalization/translator/action/android/TranslateSelectedAction.kt
+++ b/src/main/kotlin/com/wilinz/globalization/translator/action/android/TranslateSelectedAction.kt
@@ -7,6 +7,7 @@ import com.intellij.openapi.actionSystem.PlatformDataKeys
import com.wilinz.globalization.translator.i18n.message
import com.wilinz.globalization.translator.util.isStringsXmlFile
import org.dom4j.io.SAXReader
+import java.io.StringReader
class TranslateSelectedAction : AnAction() {
override fun actionPerformed(e: AnActionEvent) {
@@ -18,7 +19,7 @@ class TranslateSelectedAction : AnAction() {
e = e,
file = file,
getDocument = {
- SAXReader().read(xml)
+ StringReader(xml).use { SAXReader().read(it) }
},
)
}
diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml
index 90a5af3..23463ea 100644
--- a/src/main/resources/META-INF/plugin.xml
+++ b/src/main/resources/META-INF/plugin.xml
@@ -7,27 +7,47 @@
+ 1.Intellij platform i18n plugin,Auto translate 133 languages for your application with one click,Support Android
+ strings.xml and java .properties file.
+
+ 2.This plugin supports translate Android.xml and java .properties file, which can preserve the placeholders such as
+
+ 3.Advantages of this plugin compared to other plugins: fast translation speed, translate files into 131 languages in
+ less than two minutes, support for retaining placeholders, support for incremental translation.
+Intellij platform i18n plugin,Generate 131 languages for your application with one click,Support Android strings.xml
- and java properties file
+
+ Intellij platform i18n plugin,Generate 131 languages for your application with one click,Support Android strings.xml
+ and java properties file
+
+Dependencies:Compose for IDE Plugin Development (Experimental)
+
- GitHub
+ More information: GitHub
-Usage:
-1. Translate the entire document
+
+
+%1$s
, %2$d
, {0}
,{1}
and can Reserved escape characters like
+ \n
,\"
,\'
, etc., support string, string-array, plurals
+ tag.
+Usage:
+1. Translate the entire document
-2. Incremental translation
+2. Incremental translation
- ]]>
+ 1.Intellij platform i18n plugin,Auto translate 133 languages for your application with one click,Support Android + strings.xml and java .properties file. +
+
+ 2.This plugin supports translate Android.xml and java .properties file, which can preserve the placeholders such as
+ %1$s
, %2$d
, {0}
,{1}
and can Reserved escape characters like
+ \n
,\"
,\'
, etc., support string, string-array, plurals
+ tag.
+
+ 3.Advantages of this plugin compared to other plugins: fast translation speed, translate files into 131 languages in + less than two minutes, support for retaining placeholders, support for incremental translation. +
+