Previous: , Up: Individual Programming Languages   [Contents][Index]


15.5.25 YCP - YaST2 scripting language

RPMs

libycp, libycp-devel, yast2-core, yast2-core-devel

Ubuntu packages

File extension

ycp

String syntax

"abc"

gettext shorthand

_("abc")

gettext/ngettext functions

_() with 1 or 3 arguments

textdomain

textdomain statement

bindtextdomain

setlocale

Prerequisite

Use or emulate GNU gettext

use

Extractor

xgettext

Formatting with positions

sformat "%2 %1"

Portability

fully portable

po-mode marking

An example is available in the examples directory: hello-ycp.