How to change report locale

조회 수: 7 (최근 30일)
Achim Kern
Achim Kern 2019년 6월 18일
댓글: samir 2024년 9월 3일
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
Alberto Flores Martínez
Alberto Flores Martínez 2020년 9월 18일
R.Locale='english' worked for me

댓글을 달려면 로그인하십시오.

답변 (1개)

Suryaansh Mata
Suryaansh Mata 2019년 6월 18일
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 -:
  1. 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.
  2. Override the default value of Language by setting this property to your desired language; for example, en for English or it for Italian.
  댓글 수: 3
Alberto Flores Martínez
Alberto Flores Martínez 2020년 9월 18일
편집: Alberto Flores Martínez 2020년 9월 18일
R.Locale='english' worked for me
samir
samir 2024년 9월 3일
Hello Alberto
can you provide as all the matlab command please?
thank you

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Language Support에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by