4D v14.3Get localized string |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Get localized string
|
Get localized string ( resName ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
resName | String |
![]() |
Name of resname attribute | |||||
Function result | String |
![]() |
Value of string designated by resName in current language | |||||
The Get localized string command returns the value of the string designated by the resName attribute for the current language.
This command only works within an XLIFF architecture. For more information about this type of architecture, please refer to the description of XLIFF support in the Design Reference manual.
Note: The Get database localization command can be used to find out the language used by the application.
Pass the resource name of the string for which you want to get the translation into the current target language in resName.
Note that XLIFF is diacritical.
Here is an extract from an .xlf file:
<file source-language="en-US" target-language="fr-FR"> [...] <trans-unit resname="Show on disk"> <source>Show on disk</source> <target>Montrer sur le disque</target> </trans-unit>
After executing the following statement:
$FRvalue:=Get localized string("Show on disk")
... if the current language is French, $FRvalue contains “Montrer sur le disque”.
If the command is executed correctly, the OK variable is set to 1. If resName is not found, the command returns an empty string and the OK variable is set to 0.
Product: 4D
Theme: String
Number:
991
Created: 4D v11 SQL
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)
Inherited from : Get localized string ( 4D v11 SQL Release 6)