Parameter handling in Avkon vs Qt

The available parameter formats in Qt are:

  • - %1, %2, %3… Used for text strings; can be replaced by any Unicode character or set of characters.

  • %L1, %L2, %L3… Used for number parameters. Enables the use of localized numerals; can be replaced by any Unicode character or set of characters.

  • %Ln Used for positive integers when plural support is required (see the section about plural support in this document for more information); enables the use of localized numerals. A string can only contain one parameter %Ln.

The use of %Ln and %L1 is preferred for all parameters that can have a numeral as their value. The attribute "L" makes it possible to display localized numerals in for example Arabic and Chinese. Functionally, %1 and %L1 are equivalent; if necessary, the translator can force the display of Latin characters by removing the attribute "L". This will not change the parameter's functioning in any way.

Do not use the numeral 1 in a string; always use the parameter %L1 in order to enable the use of localized numerals.

If layout data is used, localization tools can define the maximum space allowed for parameter %1 based on the layout data and the length of the translation. This works reasonably well, as long as the localizable text is not too long compared to text space and the layout data is accurate (and no other texts are included within the same layout). The parameter space varies in different languages and localization cannot ensure that enough space is always available.

If it is possible to predict the maximum length of the parameter, please mention the maximum length in a comment field. An example of this would be replacing %1 with a drive letter such as "C:", "E:" or "F:" (note that the colon ":" after the drive letter is localizable and must be placed after the parameter).

Do not use parameters for concatenating localized texts. Replacing %1 with another localized text causes clumsy syntax and severe grammar errors, and the most important pieces of information can get truncated.

Use %1, %2, %3, ... for string parameters, %L1, %L2, %L3, ... for numbers (integers and decimals), and %Ln for numbers indicating an amount. Presence or absence of L does not affect parameter numbering.

AVKON Qt

Add %U to chat contacts?

Add %1 to chat contacts?

Accept request from %0U to end this call and transfer you to %1U?

Accept request from %1 to end this call and transfer you to %2?

Group %N

Group %L1

Fastest lap: %U

Fastest lap: %L1

Shortcut %N

Shortcut %L1

Processing image %0U/%1U

Processing image %L1/%L2

%N-day meeting cannot be repeated daily

%L1-day meeting cannot be repeated daily

Enter %N-digit passcode for %U:

Enter %L1-digit passcode for %2:

Use %Ln for parameters that indicate an amount to trigger plural support. Use only one parameter %Ln per text. Create one text ID for both plural and singular.

AVKON Qt

%N video clips

%Ln video clips

1 video clip

%N files copied

%Ln files copied

1 file copied

Unable to delete %N folders

Unable to delete %Ln folders

Alarm snoozed for %N minutes

Alarm snoozed for %Ln minutes

Alarm snoozed for 1 minute

Lock code can be changed %N times an hour

Lock code can be changed %Ln times an hour

Captures an image every minute until the memory in use runs out

Captures an image every minute until the memory in use runs out

Captures an image every 5 minutes until the memory in use runs out

Captures an image every %Ln minutes until the memory in use runs out

Captures an image every 10 minutes until the memory in use runs out

Captures an image every 30 minutes until the memory in use runs out

If a text contains two parameters indicating an amount, use %L1 and %L2. Create four text IDs.

AVKON Qt

%0N contacts copied, %1N contacts not copied

%L1 contacts copied, %L2 contacts not copied

%N contacts copied, 1 contact not copied

%L1 contacts copied, %L2 contact not copied

1 contact copied, %N contacts not copied

%L1 contact copied, %L2 contacts not copied

1 contact copied, 1 contact not copied

%L1 contact copied, %L2 contact not copied

Use %L1 with units of measurement and percentages.

AVKON Qt

%U MHz

%L1 MHz

%U km/h

%L1 km/h

%N%

%L1%

Whenever possible, use parameters instead of numbers.

AVKON Qt

16 colours

%Ln colours

256 colours

4096 colours

65536 colours

10 seconds

%Ln seconds

20 seconds

Use for prints up to 7x5 in (18x13 cm)

Use for prints up to %L1x%L2 in (%L3x%L4 cm)

Use for prints up to 6x4 in (15x10 cm)

Up to 2 per page

Up to %L1 per page

Up to 4 per page

Up to 6 per page

Up to 9 per page

At least %N characters must be entered

At least %Ln characters must be entered

Enter first %N numbers of fingerprint for %U:

Enter first %Ln numbers of fingerprint for %1:

Theme 1

Theme %L1

Theme 2

Error 401. Server problem. Try again later.

Error %L1. Server problem. Try again later.

Error 410. Server problem. Try again later.

Error 411. Server problem. Try again later.

Error 412. Server problem. Try again later.

Error 413. Server problem. Try again later.

Error 414. Server problem. Try again later.

Error 415. Server problem. Try again later.

Error 461. Server problem. Try again later.

Error 501. Server problem. Try again later.

Error 551. Server problem. Try again later.

1 new voice messages on line 1

%Ln new voice messages on line %L1

%N new voice messages on line 1

1 new voice messages on line 2

%N new voice messages on line 2

This product includes software licensed from Nokia Ltd © 1998-%N

This product includes software licensed from Nokia Ltd © %L1-%L2

Zooming 100%

Zooming %L1%

Zooming 200%

Zooming 400%

Zooming 800%

Ringing tone, line 1

Ringing tone, line %L1

Ringing tone, line 2

Use numbers when referring to technical standards and version numbers.

AVKON Qt

PIN2 code

PIN2 code

PKCS#12 password:

PKCS#12 password:

802.1x

802.1x

Big 5

Big 5

GB 2312

GB 2312

Japanese (ISO 2022)

Japanese (ISO 2022)

Fingerprint (SHA1):

Fingerprint (SHA1):