1. <i id='bYoJI'><tr id='bYoJI'><dt id='bYoJI'><q id='bYoJI'><span id='bYoJI'><b id='bYoJI'><form id='bYoJI'><ins id='bYoJI'></ins><ul id='bYoJI'></ul><sub id='bYoJI'></sub></form><legend id='bYoJI'></legend><bdo id='bYoJI'><pre id='bYoJI'><center id='bYoJI'></center></pre></bdo></b><th id='bYoJI'></th></span></q></dt></tr></i><div id='bYoJI'><tfoot id='bYoJI'></tfoot><dl id='bYoJI'><fieldset id='bYoJI'></fieldset></dl></div>
      <bdo id='bYoJI'></bdo><ul id='bYoJI'></ul>
  2. <tfoot id='bYoJI'></tfoot>

      <small id='bYoJI'></small><noframes id='bYoJI'>

      <legend id='bYoJI'><style id='bYoJI'><dir id='bYoJI'><q id='bYoJI'></q></dir></style></legend>

      在 Eclipse 插件的 plugin.xml 中外部化字符串

      Externalizing strings in plugin.xml for Eclipse plugin(在 Eclipse 插件的 plugin.xml 中外部化字符串)

          <tbody id='8bqTN'></tbody>
          <bdo id='8bqTN'></bdo><ul id='8bqTN'></ul>

            <legend id='8bqTN'><style id='8bqTN'><dir id='8bqTN'><q id='8bqTN'></q></dir></style></legend>
          • <small id='8bqTN'></small><noframes id='8bqTN'>

                <tfoot id='8bqTN'></tfoot>
                <i id='8bqTN'><tr id='8bqTN'><dt id='8bqTN'><q id='8bqTN'><span id='8bqTN'><b id='8bqTN'><form id='8bqTN'><ins id='8bqTN'></ins><ul id='8bqTN'></ul><sub id='8bqTN'></sub></form><legend id='8bqTN'></legend><bdo id='8bqTN'><pre id='8bqTN'><center id='8bqTN'></center></pre></bdo></b><th id='8bqTN'></th></span></q></dt></tr></i><div id='8bqTN'><tfoot id='8bqTN'></tfoot><dl id='8bqTN'><fieldset id='8bqTN'></fieldset></dl></div>
                本文介绍了在 Eclipse 插件的 plugin.xml 中外部化字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如何在我的 Eclipse 插件的 plugin.xml 中外部化字符串?

                How do I externalize strings in my Eclipse plugin's plugin.xml?

                右键单击插件项目 > PDE 工具 > 外部化字符串不会显示我的插件.

                Right-clicking on the plugin project > PDE Tools > Externalize Strings does not show up my plugin.

                我现在正在尝试手动执行此操作.我在 plugin.properties 中添加了条目,并将 plugin.xml 中的等效字符串替换为 % 符号,后跟字符串键.但这似乎不起作用.我在这里错过了什么?

                I'm trying to do this manually now. I added entries in plugin.properties and replaced the equivalent string in plugin.xml with a % sign followed by the string key. But that does not seem to work. What am I missing here?

                推荐答案

                我终于想通了如何手动外部化插件.

                I finally figured out how to manually externalize the plugin.

                事实证明,Eclipse 以这种方式将 plugin.xml 外部化:

                Eclipse, it turns out, externalizes plugin.xml this way:

                • 在插件清单 (META-INF/MANIFEST.MF) 中,添加以下行

                • In the plugin manifest (META-INF/MANIFEST.MF), add the following line

                Bundle-Localization: plugin
                

                您打算将外部化字符串存储在名为plugin.properties"的文件中(原来这是缺少的部分).

                where you intend to store the externalized strings in a file called "plugin.properties" (Turns out this was the missing piece).

                在plugin.properties中添加外部化字符串键值对.

                Add the externalized string key-value pairs in plugin.properties.

                将 plugin.xml 中的实际字符串替换为 plugin.properties 中的键(以 % 为前缀).

                Replace the actual strings in plugin.xml with the keys from plugin.properties (prefixed with %).

                这篇关于在 Eclipse 插件的 plugin.xml 中外部化字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                Maximum number of parameters in Java method declaration(Java 方法声明中的最大参数个数)
                Java verbose class loading(Java 详细类加载)
                Where can I find default -Xss (stack size) value for Oracle JVM?(在哪里可以找到 Oracle JVM 的默认 -Xss(堆栈大小)值?)
                <tfoot id='ZKNe0'></tfoot>
                  <bdo id='ZKNe0'></bdo><ul id='ZKNe0'></ul>

                  <small id='ZKNe0'></small><noframes id='ZKNe0'>

                        <tbody id='ZKNe0'></tbody>

                      <legend id='ZKNe0'><style id='ZKNe0'><dir id='ZKNe0'><q id='ZKNe0'></q></dir></style></legend>
                      • <i id='ZKNe0'><tr id='ZKNe0'><dt id='ZKNe0'><q id='ZKNe0'><span id='ZKNe0'><b id='ZKNe0'><form id='ZKNe0'><ins id='ZKNe0'></ins><ul id='ZKNe0'></ul><sub id='ZKNe0'></sub></form><legend id='ZKNe0'></legend><bdo id='ZKNe0'><pre id='ZKNe0'><center id='ZKNe0'></center></pre></bdo></b><th id='ZKNe0'></th></span></q></dt></tr></i><div id='ZKNe0'><tfoot id='ZKNe0'></tfoot><dl id='ZKNe0'><fieldset id='ZKNe0'></fieldset></dl></div>