---
name: "XmStringCreateLocalized"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmStringCreateLocalized"
---

# XmStringCreateLocalized(3)

A compound string function that creates a compound string in the current locale

## NAME

**XmStringCreateLocalized** — A compound string function that creates a compound string in the current locale

## SYNOPSIS

```
#include <Xm/Xm.h>
XmString XmStringCreateLocalized(
char *text);
```

## DESCRIPTION

**XmStringCreateLocalized** creates a compound string containing the specified text in the current language environment. An identical compound string would result from the function **XmStringCreate** called with **XmFONTLIST\_DEFAULT\_TAG** explicitly as the tag component.

The function will allocate space to hold the returned compound string. The application is responsible for managing the allocated space. The application can recover the allocated space by calling **XmStringFree**.

- *text*

  Specifies a NULL-terminated string of text encoded in the current language environment to be used as the text component of the compound string

## RETURN

Returns a new compound string.

## RELATED

[**XmStringCreate**(3)](/XmStringCreate/3.md).
