turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 155 forks source link

How to ignore '[[[ ]]]' in comments in .cs file #223

Closed kenyeung128 closed 8 years ago

kenyeung128 commented 9 years ago

Hi, I have this code as comment in .cs. which contains [[[ and ]]]

    /// <summary>
    /// Transform translation text with [[[ => ((( and  ]]] => )))
    /// </summary>

however, msgid was interpreted as " => ((( and ", what can i do to ignore the translation in comments which export to .pot file?

turquoiseowl commented 9 years ago

At present, the library doesn't support such differentiation during nugget extraction, sorry.

We can mark this as a feature request if you like. Off the top of my head it could be done by tweaking the regular expression used to extract nuggets (NuggetParser.m_regexNuggetBreakdown); although anything that would complicate/slow that needs solid justification.

turquoiseowl commented 8 years ago

Closing a not going to implement. Please re-open to discuss further.