Quantcast
Channel: ProZ.com Translation Forums
Viewing all articles
Browse latest Browse all 29905

Studio 2014 incorrectly localizes currency symbol | These things...

$
0
0
Forum: SDL Trados support
Topic: Studio 2014 incorrectly localizes currency symbol
Poster: SDL Support
Post title: These things...

... are indeed irritating and I too would like to see a better built in solution. But I would like to offer a solution if that's ok?

There is a tool on the OpenExchange, it's free, and it allows you to search and replace across your project in a very simple way. It's called the SDLXLIFF Toolkit as described here : [url removed]

So the idea would be that you allow Studio to correctly handle the numbers the way it thinks is right so you at least get the numerical part right as you work. Then at the end you do a search and replace.

If it was just one file you could use the search and replace in Studio but if it's several files across a project then use the Toolkit and do the same thing.

There is probably a less complicated expression but I wanted to make sure I caught as many variations of where your numbers might be as possible as I can't see your text. So search for this:

\$([0-9]*[.,]?[0-9]*[.,]?[0-9]*[.,]?[0-9]+\b)

Replace with this:

$1 ð

This will find numbers like these and correctly replace them:

This was $50 and this was $0,359 whilst this one was $1.000,00 but this as $99 and that's it.
$50
$0,359, $1.000,00, $99, $44, some more $4.345.456,77

If you know the largest number, and if they are number only segments or never followed by a comma for example, then it could be much simpler. No doubt some of the clever guys in here could suggest something else, but this seems fairly effective anyway.

Regards

Paul

Viewing all articles
Browse latest Browse all 29905

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>