GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
JGMENU-I18N(1) JGMENU-I18N(1)

jgmenu-i18n - support translation of jgmenu flavoured CSV menu data

jgmenu_run i18n <translation-file>

jgmenu_run i18n --init [<translation-file>]

jgmenu_run i18n reads jgmenu flavoured CSV menu data from stdin and either translates it, or creates a po style translation file

The <translation-file> argument can be a file or directory. If it is the latter, translation files will be searched for in this directory based on the environment variable $LANG, which will be assumed to be in the format ll_CC.UTF8 where ll is an ISO 639 two-letter language code and CC is an ISO 3166 two-letter country code. Files named ll_CC and ll will be used in said order.

--init
Create a template po style translation file with blank msgid entries

Modules jgmenu-apps(1) and jgmenu-ob(1) have built-in i18n support. In order to use this features, a translation file is required. Here follow examples of how a translation file can be created:

Example 1.


jgmenu_run ob | jgmenu_run i18n --init >sv

    

Example 2.


jgmenu_run i18n --init <prepend.csv >sv

    

The result of the above commands would be a skeleton translation file (sv in this case) containing entries like this:


msgid "Web Browser"
msgstr ""

    

Manually translate the empty msgstr fields.

If using modules jgmenu-apps(1) or jgmenu-ob(1), just set csv_i18n in jgmenurc to directly point to a translation-file or a directory containing translation files.

In special circumstances, you may wish to include i18n in command plumbing. Here follow an example of how this could be constructed:


<csv-generating-command> \
    | jgmenu_run i18n <translation-file> \
    | jgmenu --vsimple

    

Johan Malm.
15 February, 2020

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.