Skip to content

Instantly share code, notes, and snippets.

@Krasnyanskiy
Last active August 29, 2015 14:22
Show Gist options
  • Save Krasnyanskiy/e616e47c6b5dd20fb68a to your computer and use it in GitHub Desktop.
Save Krasnyanskiy/e616e47c6b5dd20fb68a to your computer and use it in GitHub Desktop.

How to set locale in JRSH

  1. Set locale for Tool mode
  2. Set locale for Interactive mode
  3. Set locale for Script mode

Tool Mode

To set locale for Tool mode you need to add --set-locale option and locale name just before your main operation, as in example below:

$> jrsh.sh "user%pass@localhost" --set-locale "fr" export repository "/public/Samples"
                                   ^^^^^^^^^^  ^^
                                   option     value

Shell Mode

You can set as well the locale for Shell mode:

$> jrsh.sh "user%pass@localhost" --set-locale "fr"

Or if you are already in the interactive mode you could run the next operation:

$> set locale "de"
   ^^^ ^^^^^^  ^^

Script Mode

To set locale for Script mode you just need to specify a key --set-locale and the locale name right after your script name:

$> jrsh.sh --script "/Users/alex/test_script.jrs" --set-locale "il"
                                                    ^^^^^^^^^^  ^^                                                                                                         
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment