internationalization.md: Fix section levels

This commit is contained in:
Karol Lewandowski 2024-12-06 17:25:01 +01:00
parent 53e883beb5
commit 74f15451f8

View File

@ -390,21 +390,21 @@ It adds an appropriate ending to numbers, so it turns into `1st`, `2nd`, `3rd`,
parameter.cast.fix=Cast {0,number,ordinal} parameter to {1} parameter.cast.fix=Cast {0,number,ordinal} parameter to {1}
``` ```
#### Formatting Non-Textual Values ### Formatting Non-Textual Values
Different countries and languages display numbers, dates and times, durations, file sizes, and other values, in a localized way. Different countries and languages display numbers, dates and times, durations, file sizes, and other values, in a localized way.
The IntelliJ Platform provides some utils to display them properly. The IntelliJ Platform provides some utils to display them properly.
##### Date and Time #### Date and Time
- [`DateFormatUtil`](%gh-ic%/platform/platform-api/src/com/intellij/util/text/DateFormatUtil.java) ([IDE's locale](providing_translations.md#getting-the-current-locale-programmatically) is supported since 2024.1) - [`DateFormatUtil`](%gh-ic%/platform/platform-api/src/com/intellij/util/text/DateFormatUtil.java) ([IDE's locale](providing_translations.md#getting-the-current-locale-programmatically) is supported since 2024.1)
- [`NlsMessages.formatDateLong()`](%gh-ic%/platform/ide-core-impl/src/com/intellij/ide/nls/NlsMessages.java) - [`NlsMessages.formatDateLong()`](%gh-ic%/platform/ide-core-impl/src/com/intellij/ide/nls/NlsMessages.java)
##### Durations #### Durations
- [`NlsMessages.formatDuration()`](%gh-ic%/platform/ide-core-impl/src/com/intellij/ide/nls/NlsMessages.java) - [`NlsMessages.formatDuration()`](%gh-ic%/platform/ide-core-impl/src/com/intellij/ide/nls/NlsMessages.java)
##### File Sizes #### File Sizes
- [`Formats.formatFileSize()`](%gh-ic%/platform/util/base/src/com/intellij/openapi/util/text/Formats.java) (the units are not localized and the default JVM locale is used instead of the [IDE's locale](providing_translations.md#getting-the-current-locale-programmatically)) - [`Formats.formatFileSize()`](%gh-ic%/platform/util/base/src/com/intellij/openapi/util/text/Formats.java) (the units are not localized and the default JVM locale is used instead of the [IDE's locale](providing_translations.md#getting-the-current-locale-programmatically))