(007分享的方法)fastreport 默认为英文,将英文改为默认中文挺简单的:
1、打开Sources\FastLocalization\FPC\Sources\frLanguageDefault.pas
将frLanguageEnglish改为frLanguageChinese
{******************************************} { } { FastReport VCL/FMX/LCL } { Localization Library } { } { Copyright (c) 1998-2022 } { by Fast Reports Inc. } { } {******************************************} {$IFNDEF FMX} unit frLanguageDefault; {$ENDIF} interface {$I frVer.inc} type { TfrLanguageDefault } TfrLanguageDefault = class public class function Name: string; static; end; implementation uses {$IFNDEF FMX} frLanguageChinese;//lbz默认为中文 //frLanguageEnglish; {$ELSE} FMX.frLanguageEnglish; {$ENDIF} { TfrLanguageDefault } class function TfrLanguageDefault.Name: string; begin Result := {$IFNDEF FMX}frLanguageChinese{$ELSE}FMX.frLanguageEnglish{$ENDIF}.frsLanguageName; // Result := {$IFNDEF FMX}frLanguageEnglish{$ELSE}FMX.frLanguageEnglish{$ENDIF}.frsLanguageName; end; end.
2、将Sources\FastLocalization\FPC\Sources\Chinese\frLanguageChinese.pas添加到frLocalizationLibrary.lpk
3、重新编译frLocalizationLibrary.lpk
打开设计器已显示中文:
标签:中文,TfrLanguageDefault,FMX,fastreport,2024,Sources,ENDIF,frLanguageChinese,frLang From: https://www.cnblogs.com/qiufeng2014/p/18602486