Is there an easy way to localize an output (set the language)

5 views (last 30 days)
Clemens on 4 Jul 2011
Mostly I keep my output in english - but quite often I'm asked to produce tables and plots in german.
Till now I was changing the strings in all my scripts. But almost everytime I also add other changes which I would like to reuse. So I end up translating the same lines over and over again.
I wonder - is there an easier way to do it?

Accepted Answer

Gerd on 4 Jul 2011
Hi Clemens,
I often use a cell arrays to do the language change, e.g.
string{2} = 'Hallo';
language = 1
language = 2
When you change the language setting the result is different

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!