How to change report locale
Afficher commentaires plus anciens
Hi,
how is it possible to change the report locale from German (default in my case) to english?
I create a pdf report out of my skript like these:
R = Report('report','pdf');
open(R);
1 commentaire
Alberto Flores Martínez
le 18 Sep 2020
R.Locale='english' worked for me
Réponses (1)
Suryaansh Mata
le 18 Juin 2019
0 votes
One can change the language or the Report Locale directly in Java from the MATLAB command line. The following example sets the language to Italian:
java.util.Locale.setDefault(java.util.Locale.ITALY)
Alternatively, you can set the preferred language directly in your .rpt file using -:
- Right-click the Report component and select Send to Workspace.This displays the properties of the report, which are stored in the variable ans. Access the report's Language property from the command line through this variable. By default, Language is auto, which indicates that the system's default language is in use.
- Override the default value of Language by setting this property to your desired language; for example, en for English or it for Italian.
3 commentaires
Achim Kern
le 18 Juin 2019
Alberto Flores Martínez
le 18 Sep 2020
Modifié(e) : Alberto Flores Martínez
le 18 Sep 2020
R.Locale='english' worked for me
samir
le 3 Sep 2024
Hello Alberto
can you provide as all the matlab command please?
thank you
Catégories
En savoir plus sur Generate Reports dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!