سؤال

in the "delete selected documents" action it is possible to specify a confirm message, so i can tranlsate this message in every language. But, if no document was selected, a dialog appears with the message "Please select one or more documents to delete.". Is there any way to translate this message?

Thanks Mario

هل كانت مفيدة؟

المحلول

Here are some instructions on setting up translation in XPages:

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/UsingLocalizationOptions.htm

you can use this with a action. What happens is you will have a property file with strings, these will be translated and then the correct one will be used. something like:

<xp:eventHandler>
    <xp:this.action>
        <xp:actionGroup>
            <xp:confirm>
                <xp:this.message><![CDATA[#{javascript:
                    //where "strings" is a variable pointing to the resource bundle
                    strings.getString("confirm.message.delete");
                }]]></xp:this.message>
            </xp:confirm>

            ... delete code ...
        </xp:actionGroup>
    </xp:this.action>
</xp:eventHandler>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top