Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:41 Go to next message
Daniel FitzGerald is currently offline Daniel FitzGeraldFriend
Messages: 6
Registered: October 2016
Junior Member
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 18:10 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

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: Fri Apr 19 11:00:27 GMT 2024

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

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

Back to the top