Latest post

Validate Python string translation in Transifex

Share on:

Transifex already supported validating translations of old styled Python strings, e.g., [sourcecode language=”python”] "A sample string with a %(keyword)s argument." % {‘keyword': ‘key word’} [/sourcecode] The validation is done by checking if all the positional and keyword arguments are present in the translation string and the translation string does not contain any extra ...

Continue reading

Regex pattern for c style comments

Share on:

Today, I am going to discuss my attempts to parse c style comments. For example, //This is a comment<br></br> * /***This is also<br></br> *** a comment ***/ * Initially, I came up with a regex for /…/ style comments : <strong>/*.**/</strong> Well, the above ...

Continue reading