Chapter 22: Controller: /nodeworx/ipv6 Up Part II: NodeWorx API Spec Chapter 24: Controller: /nodeworx/logout 

23 Controller: /nodeworx/lang

Required Permissions "LANGUAGES"
Action: add
Added in version 4.7.0-339
Description Add a new language.
Input Parameters
Name Type Notes Required?
code string Example Values
, ab, aa, af, sq, am, ar, hy, as, ay, az, ba, eu, bn, dz, bh, bi, br, bg, my, be, km, ca, zh, co, hr, cs, da, nl, en-uk, en-us, eo, et, fo, fj, fi, fr, fy, gd, gl, ka, de, el, kl, gn, gu, ha, iw, hi, hu, ...
Yes
lang_file string Yes
Action: changeCurrentUserLanguage
Added in version 4.8.0-393
Description Change the current language.
Action: delete
Added in version 4.7.0-339
Description Delete a language file.
Input Parameters
Name Type Notes Required?
code string Example Values
pl, de, ru, it, tr, hu, sv, sk, es, zh, da, nl, fr, cs, pt
Yes
Action: fail
Added in version 4.7.0-339
Description Magic function - test for failure mechanism.
Action: listLanguages
Added in version 4.8.0-393
Description List languages available for use in interworx.
Sample output
array (
’status’ => 0,
’payload’ =>
array (
0 =>
array (
’code’ => ’pl’,
’language’ => ’Polish’,
’status’ => ’unused’,
),
1 =>
array (
’code’ => ’de’,
’language’ => ’German’,
’status’ => ’unused’,
),
2 =>
array (
’code’ => ’ru’,
’language’ => ’Russian’,
’status’ => ’unused’,
),
),
)
Action: queryChangeCurrentUserLanguage
Added in version 5.1.0-838
Description Displays the information available to the action "changeCurrentUserLanguage".
Sample output
array (
’status’ => 0,
’payload’ =>
array (
’language_copy’ => ’en-us’,
’language’ => ’en-us’,
),
)
Action: reroute
Added in version n/a
Description Action to re-route from the current controller to a different one.
Input Parameters
Name Type Notes Required?
controller string Example Values
Index, Overview, Users, Lang, Themes, Apikey, Plugins, Twofactorauth, Notice, Siteworx, Shell, Packages, Backup, Import, Simplescripts, Reseller, ResellerPackages, ResellerBandwidthhistory, Http, Ftp, Sshd, MailMta, MailSmtp, MailSmtp2, MailSend, MailMda, MailPop3, MailSpop3, MailImap, MailSimap, MailSpam, MailVirus, MailQueue, Mysql, MysqlRemote, MysqlPhpmyadmin, Dns, DnsZone, DnsRecord, DnsSync, Nfs, NfsExport, NfsMount, Health, Cron, Firewall, Ssl, Logs, Settings, Updates, ...
Yes
Action: syncLanguage
Added in version 4.7.0-339
Description Trigger language synchronization for a node.
Input Parameters
Name Type Notes Required?
code string Example Values
pl, de, ru, it, tr, en-us, hu, sv, sk, es, zh, da, nl, fr, cs, pt
Yes
Action: win
Added in version n/a
Description Magic function - test for testing success mechanism.
 Chapter 22: Controller: /nodeworx/ipv6 Up Part II: NodeWorx API Spec Chapter 24: Controller: /nodeworx/logout 

(C) 2018 by InterWorx LLC