Skip to content

Commit 141736a

Browse files
NickVolynkinalbertov05Abadzhev
committed
Apply suggestions from code review
Co-authored-by: Albert Totten <49917542+albertov05@users.noreply.github.com> Co-authored-by: Vladimir Abadzhev <vladimira@devexpress.com>
1 parent 1035f0a commit 141736a

2 files changed

Lines changed: 35 additions & 30 deletions

File tree

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@
99

1010
This example localizes DevExpress VCL Reports components in Delphi and C++ Builder projects.
1111

12-
The [DevExpress Reporting Platform](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports)
13-
fully supports UI localization. Projects in this repository give users a choice between English (default) and German (localized) versions of two built-in dialogs: [Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) and
12+
The [DevExpress Reporting Platform](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports) fully supports UI localization.
13+
The localization example in this repository gives users a choice between English (default) and German (localized) versions of two built-in dialogs:
14+
[Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) and
1415
[Report Designer](https://docs.devexpress.com/XtraReports/119176/web-reporting/web-end-user-report-designer).
15-
The repository has example projects in [Delphi](./Delphi) and [C++ Builder](./CPB).
16+
The example includes projects for both [Delphi](./Delphi) and [C++ Builder](./CPB).
1617

1718
**To localize the DevExpress Report Designer and Report Viewer interface** in your Delphi or C++ Builder project, refer to the following guide:
1819
[Report Viewer and Designer UI Localization](https://docs.devexpress.com/VCL/405598/ExpressReports/localization/vcl-report-viewer-and-designer-localization).
1920

2021
**To localize the report contents**, refer to the following guide:
2122
[Report Localization](https://docs.devexpress.com/VCL/405599/ExpressReports/localization/vcl-report-localization).
2223

23-
![Starting screen of the localization example, offering to select between English and German, and to display Report Designer and Report Viewer dialogs](./images/Lokalisierungsbeispiel.png)
24+
![Start screen of the localization example, offering to select between English and German, and to display Report Designer and Report Viewer dialogs](./images/Lokalisierungsbeispiel.png)
2425

2526
## Prerequisites
2627

@@ -45,16 +46,16 @@ Learn more about the localization files required for each component from the fol
4546
[Localize Core Reporting Components: Use JSON Files](https://docs.devexpress.com/XtraReports/400932/web-reporting/common-features/localization/localization-in-asp-net-core-reporting-applications#use-json-files).
4647

4748
To download localization files for various locales, you can use the [DevExpress Localization Service](https://localization.devexpress.com/).
48-
Learn more from the following guide: [DevExpress UI Localization Service](https://docs.devexpress.com/GeneralInformation/16235/localization/localization-service).
49+
For additional information, see the following help topic: [DevExpress UI Localization Service](https://docs.devexpress.com/GeneralInformation/16235/localization/localization-service).
4950

5051
> **Note:** The localization mechanism demonstrated in this example applies only to DevExpress Report Designer and Report Viewer components.
5152
> The DevExpress VCL library components support localization using [resource files and the Localizer Editor](https://docs.devexpress.com/VCL/154039/ExpressCrossPlatformLibrary/how-to/localize-an-application).
5253
5354
## Files to Review
5455

55-
- [`Delphi\uMainForm.pas`](./Delphi/uMainForm.pas) loads an example report from the file `ExampleReport.repx`.
56+
- [`Delphi\uMainForm.pas`](./Delphi/uMainForm.pas) loads an example report from `ExampleReport.repx`.
5657
Event handlers assigned to `TcxRadioButton` components switch localization language between English and German.
57-
- Files in the [`Localization`](./Localization/) contain localized UI strings.
58+
- Files in the [`Localization`](./Localization/) folder contain localized UI strings.
5859

5960
## Documentation
6061

@@ -68,11 +69,11 @@ Learn more from the following guide: [DevExpress UI Localization Service](https:
6869

6970
Localized Report Designer:
7071

71-
![VCL Report Designer dialog with interface localized in German language](./images/Berichtsdesigner.png)
72+
![VCL Report Designer dialog with interface localized into German](./images/Berichtsdesigner.png)
7273

7374
Localized Report Viewer:
7475

75-
![VCL Report Viewer dialog with interface localized in German language](./images/Berichtsanzeige.png)
76+
![VCL Report Viewer dialog with interface localized into German](./images/Berichtsanzeige.png)
7677

7778
<!-- feedback -->
7879
## Does this example address your development requirements/objectives?

README2.md

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77

88
# DevExpress VCL Reports - Localize the Report Viewer and Report Designer
99

10-
This example localizes DevExpress VCL Reports components in Delphi and C++ Builder projects.
10+
This example localizes DevExpress VCL Reports components. Delphi and C++ Builder projects are included.
1111

1212
The [DevExpress Reporting Platform](https://docs.devexpress.com/VCL/405469/ExpressReports/vcl-reports) fully supports UI localization.
13-
Projects in this repository give users a choice between English (default) and German (localized) versions of two built-in dialogs: [Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) and
13+
The localization example in this repository gives users a choice between English (default) and German (localized) versions of two built-in dialogs:
14+
[Report Viewer](https://docs.devexpress.com/XtraReports/401850/web-reporting/web-document-viewer) and
1415
[Report Designer](https://docs.devexpress.com/XtraReports/119176/web-reporting/web-end-user-report-designer).
15-
The repository has example projects in [Delphi](./Delphi) and [C++ Builder](./CPB).
16+
The example includes projects for both [Delphi](./Delphi) and [C++ Builder](./CPB).
1617

17-
![Starting screen of the localization example, offering to select between English and German, and to display Report Designer and Report Viewer dialogs](./images/Lokalisierungsbeispiel.png)
18+
![Start screen of the localization example, offering to select between English and German, and to display Report Designer and Report Viewer dialogs](./images/Lokalisierungsbeispiel.png)
1819

1920
## Prerequisites
2021

@@ -26,37 +27,40 @@ The repository has example projects in [Delphi](./Delphi) and [C++ Builder](./CP
2627
## Implementation Details
2728

2829
To localize the DevExpress Report Designer and Report Viewer in your Delphi or C++ Builder application,
29-
use the following steps:
30-
31-
1. Determine the localization files you need, consulting the guide [Localize Core Reporting Components: Use JSON Files](https://docs.devexpress.com/XtraReports/400932/web-reporting/common-features/localization/localization-in-asp-net-core-reporting-applications#use-json-files).
32-
2. Sign up for the [DevExpress Localization Service](https://localization.devexpress.com/) and request to download localization files.
33-
To learn more, [refer to the corresponding guide](https://docs.devexpress.com/GeneralInformation/16235/localization/localization-service).
34-
3. Create a `Localization` folder in the same folder as your compiled application executable.
35-
Projects in this repository use `..` as the output path, so that both projects can use the same `Localization` folder.
36-
Extract the downloaded localization files to the `Localization` folder.
37-
4. To switch the Report Designer and Report Viewer interface to a specific language,
38-
assign the language code to the [`Language`](https://docs.devexpress.com/VCL/dxReport.TdxReport.Language) property of a [`TdxReport`](https://docs.devexpress.com/VCL/dxReport.TdxReport) component:
30+
do the following:
31+
32+
1. Use the [DevExpress UI Localization Service](https://docs.devexpress.com/GeneralInformation/16235/localization/localization-service)
33+
to obtain localization files for DevExpress VCL Report Viewer and Designer.
34+
These files contain UI string translations for a specific language/locale.
35+
Refer to the following guide for step-by-step instructions:
36+
[Localize Core Reporting Components: Use JSON Files](https://docs.devexpress.com/XtraReports/400932/web-reporting/common-features/localization/localization-in-asp-net-core-reporting-applications#use-json-files).
37+
1. Extract downloaded files to a `Localization` folder next to your compiled application executable.
38+
Note that projects in this repository output their executables to the same location.
39+
This allows both projects to use the same localization files.
40+
1. Assign a language code to the
41+
[`TdxReport.Language`](https://docs.devexpress.com/VCL/dxReport.TdxReport.Language)
42+
property to switch the Report Designer and Report Viewer interface to a specific language.
3943

4044
```delphi
4145
dxReport1: TdxReport;
4246
// Switch to German Localization
4347
dxReport1.Language := 'de-DE'
4448
```
4549
46-
For a more detailed step-by-step guide to localizing your applications, refer to the documentation:
50+
For a more detailed step-by-step guide to localizing your applications, refer to the following help topic:
4751
[Report Viewer and Designer UI Localization](https://docs.devexpress.com/VCL/405598/ExpressReports/localization/vcl-report-viewer-and-designer-localization).
4852
49-
Localizing the contents of specific reports is out of scope for this example.
50-
Refer to the following guide to learn more: [Report Localization](https://docs.devexpress.com/VCL/405599/ExpressReports/localization/vcl-report-localization).
53+
This example doesn't localize report content.
54+
To localize report content in your project, refer to the following guide: [Report Localization](https://docs.devexpress.com/VCL/405599/ExpressReports/localization/vcl-report-localization).
5155
5256
> **Note:** The localization mechanism demonstrated in this example applies only to DevExpress Report Designer and Report Viewer components.
5357
> The DevExpress VCL library components support localization using [resource files and the Localizer Editor](https://docs.devexpress.com/VCL/154039/ExpressCrossPlatformLibrary/how-to/localize-an-application).
5458
5559
## Files to Review
5660
57-
- [`Delphi\uMainForm.pas`](./Delphi/uMainForm.pas) loads an example report from the file `ExampleReport.repx`.
61+
- [`Delphi\uMainForm.pas`](./Delphi/uMainForm.pas) loads an example report from `ExampleReport.repx`.
5862
Event handlers assigned to `TcxRadioButton` components switch localization language between English and German.
59-
- Files in the [`Localization`](./Localization/) contain localized UI strings.
63+
- Files in the [`Localization`](./Localization/) folder contain localized UI strings.
6064
6165
## Documentation
6266
@@ -70,11 +74,11 @@ Refer to the following guide to learn more: [Report Localization](https://docs.d
7074
7175
Localized Report Designer:
7276
73-
![VCL Report Designer dialog with interface localized in German language](./images/Berichtsdesigner.png)
77+
![VCL Report Designer dialog with interface localized into German](./images/Berichtsdesigner.png)
7478
7579
Localized Report Viewer:
7680
77-
![VCL Report Viewer dialog with interface localized in German language](./images/Berichtsanzeige.png)
81+
![VCL Report Viewer dialog with interface localized into German](./images/Berichtsanzeige.png)
7882
7983
<!-- feedback -->
8084
## Does this example address your development requirements/objectives?

0 commit comments

Comments
 (0)