PageFactory (Kirby Plugin)

Formal/Informal Language

Many languages distinguish betwen formal and informal speech.

Try it out:

Choose language:
Now selected:
en (langCode)   en (lang)
 

Variable {{ your-name }}: your name

 

Language Samples:

Language formal informal
German de:: Ihr Name
de:: Ihre Mutter
de2:: dein Name
de2:: deine Mutter
French fr:: votre nom
fr:: votre mère
fr2:: ton nom
fr2:: ta mère
English en:: your name
en:: your mother
en2:: your name
en2:: your mother
 

The corresponding Variable definitions look like this:

your-name:
    de:  Ihr Name
    de2: dein Name
    fr:  votre nom
    fr2: ton nom
    _:   your name

your-mother:
    de:  Ihre Mutter
    de2: deine Mutter
    fr:  votre mère
    fr2: ta mère
    _:   your mother

Then, to activate a language:

?lang=fr2

Using a variable:

{{ your-name }} → your name

Rendering an explicitly selected language:

{{ your-name.de2 }} → dein Name

PageFactory