Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Can strings in introContent be externalized?
Can strings in introContent be externalized? [message #1808557] Wed, 26 June 2019 15:41 Go to next message
Eclipse UserFriend
I am working on externalizing strings used in an RCP application. I wanted to know if it was possible to externalize string values used inside an introContent XML file. For instance, is something the following code possible where overview.label and tutorial.label are externalized strings?

<?xml version="1.0" encoding="utf-8" ?>
<introContent>
	<!-- STANDBY PAGE  -->
	<page style="css/standby.css" id="standby">
		<group id="page-links-standby">
			<anchor id="beginAnchor" />
			<link label="%overview.label"
				url="http://org.eclipse.ui.intro/showPage?id=overview&amp;standby=false"
				id="overview">
				<text>Provides information for the quick start.</text>
			</link>
			<link label="%tutorial.label"
				url="http://org.eclipse.ui.intro/showPage?id=tutorials&amp;standby=false"
				id="tutorials">
				<text> Offers several step-by-step tutorials for quick access.
				</text>
			</link>
			<anchor id="endAnchor" />
		</group>
	</page>
</introContent>
Re: Can strings in introContent be externalized? [message #1811021 is a reply to message #1808557] Fri, 23 August 2019 14:10 Go to previous message
Eclipse UserFriend
I don't think you can. You have to create a fragment for each language that you want to support and do some search and replace magic yourself in your build process.

https://help.eclipse.org/2019-06/topic/org.eclipse.jdt.doc.user/concepts/concept-string-externalization.htm?cp=1_2_14

http://eclipse.org/articles/Article-Internationalization/how2I18n.html


Previous Topic:RCP works in Eclipse fails after build
Next Topic:Fragment with resource
Goto Forum:
  


Current Time: Mon Jul 07 19:01:25 EDT 2025

Powered by FUDForum. Page generated in 0.06489 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top