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
