Localization Component
Fnd_Loc_LanguageCode
Fnd_Loc_LanguageCode ({code}) -> Text
Parameters
| Parameter | Type | Description |
|---|---|---|
| code | Text | The language code to use (optional) |
| Function Result | Text | The current language code |
Description
If no parameters are passed, this routine returns the current language code that Foundation is using for localization.
$languageCode:=Fnd_Loc_LanguageCode
If a language code is passed to this routine, it is set as the new localization code.
Fnd_Loc_LanguageCode ("FR")
If you are working with a database that may not have the Foundation Language component installed, you can just call the Fnd_Gen_ComponentInfo routine like this:
$languageCode:=Fnd_Gen_ComponentInfo ("Fnd_Loc";"language")
The Foundation General component will then test to see if the Localization component is installed, and if so, return the current language code. If the Localization component is not installed, “Component Not Available” will be returned.
Extracted source text
Fnd_Loc_LanguageCode ({code}) ➜ Text
Parameter Type Description
code Text The language code to use (optional)
Function Result Text The current language code
If no parameters are passed, this routine returns the current language code that Foundation is using for
localization.
$languageCode:=Fnd_Loc_LanguageCode
If a language code is passed to this routine, it is set as the new localization code.
Fnd_Loc_LanguageCode ("FR")
If you are working with a database that may not have the Foundation Language component installed, you
can just call the Fnd_Gen_ComponentInfo routine like this:
$languageCode:=Fnd_Gen_ComponentInfo ("Fnd_Loc";"language")
The Foundation General component will then test to see if the Localization component is installed, and
if so, return the current language code. If the Localization component is not installed, “Component Not
Available” will be returned.