Sorry for the delay in replying. Yes I have the Model Tooling installed. I was trying to get your example working but I have errors in the dependency's. I am not sure what is causing this. My project that I am working on I was using the v4.0 and now I am having difficulty trying to import it and get rid of the errors in v4.1. The reason I am trying to get it to work in 4.1 is for the localization. The errors in v4.1 seems to be coming when I try to create a new application model? I understand localization cannot be used in v4.0 but is there any long way around getting localization to work in v4.0? even writing the properties files myself?
Regards, Deirdre. On Sun, Jun 5, 2011 at 8:33 AM, Tom Schindl <[email protected]>wrote: > Hi, > > So you have the Model Tooling installed right? If you bring up the > context menu on the tree on the left you should see an "Externalize > String" menu entry. > > The rest is done by tooling: > a) it replaces strings in your file using %key, ... > b) creates an OSGI-INF/l10n/bundle.properties > > If you now want to add a german translation, copy bundle.properties to > bundle_de.properties and translate the strings, then launch the > application e.g. using -nl de and the UI comes up with strings > translated in German. > > For the content in your parts you are responsible your own but if you'd > like to make it easy for you can use the stuff found in > "org.eclipse.e4.tools.services". You can see how the services in there > are used in "org.eclipse.e4.tools.emf.ui" in the "ModelEditor"-class > (look out for @Translation, Messages and Messages.properties). > > If you still have problems and your sources are available in a public > VCS like e.g. github, googlecode I could take a look later today or some > time next week. > > Tom > > Am 04.06.11 22:43, schrieb Deidre Stankard: > > Hi, > > > > I am currently having problems trying to get tom's tutorial on > > localization working on my pc and I am wondering would anybody know of a > > step by step tutorial on localization in eclipse v4.1 as I cannot find > > anything on the web? > > On tom's tutorial I am getting errors on some of the projects I have > > only E4 tools and E4 UI software installed, do I need others installed > > for it to run?? > > > > I would be very grateful if you could help as I am trying to get it > > working for a project for my Masters degree which I have been working on > > in eclipse v4. > > > > Kind Regards, > > Deirdre Stankard. > > > > > > > > _______________________________________________ > > e4-dev mailing list > > [email protected] > > https://dev.eclipse.org/mailman/listinfo/e4-dev > > _______________________________________________ > e4-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/e4-dev >
_______________________________________________ e4-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/e4-dev
