Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333064

Summary: Globalization of generated code from xText
Product: [Modeling] TMF Reporter: Ashwani Kr Sharma <ashw.kumar>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: ashw.kumar, chanskw, sven.efftinge
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ashwani Kr Sharma CLA 2010-12-22 04:59:31 EST
Build Identifier: 

Hi,

There is no easy way to have strings in generated code as non-nls.
The description is in this forum post: http://www.eclipse.org/forums/index.php?t=rview&th=202141&notify=1&opt=off

Quoted from forum post:
---------------------------------
Hi,

I have a grammer, mwe files defined and i am able to generate the emf model and other code.
The emf model and other code gets generated in src-gen folder.

The generated code in src-gen have many strings which are not marked as non-nls. Correcting them manually will not be good because changes will get reverted on re-generation.
I can change the genmodel also, to mark strings as non-nls but genmodel itself is part of src-gen.

What do i have to do to mark that generated code and emf model should have non-nls flags marked correctly ?

---------------------------------

Regards,
Ashwani Kr Sharma

Reproducible: Always

Steps to Reproduce:
.
Comment 1 Sven Efftinge CLA 2011-03-26 16:03:50 EDT
Please list precisely which strings you think should be externalized.