Skip to content
This repository
Browse code

Renaming bin commands from _ to hyphan based names

check_l10n_config.js -> check-l10n-config.js
check_po.sh -> check-po.sh
compile_json.sh -> compile-json.sh
compile_mo.sh -> compile-mo.sh
every_locale.js -> every-locale.js
extract_po.sh -> extract-po.sh
merge_po.sh -> merge-po.sh
  • Loading branch information...
commit a4bbbb9aa6584aef38ceaf36f479a52c5cd62759 1 parent 118717f
Austin King ozten authored
8 README.md
Source Rendered
@@ -59,10 +59,10 @@ i18n-abide provides ``lib/gettext.js`` and you can do the same in ``.js`` and ``
59 59 ## Setup Gettext
60 60
61 61 $ mkdir -p locale/templates/LC_MESSAGES
62   - # Get a local copy of extract_po.sh, and edit to to match your source code layout
63   - $ cp node_modules/i18n-abide/bin/extract_po.sh bin/
64   - $ emacs bin/extract_po.sh (or vim or whatever)
65   - $ ./bin/extract_po.sh
  62 + # Get a local copy of extract-po.sh, and edit to to match your source code layout
  63 + $ cp node_modules/i18n-abide/bin/extract-po.sh bin/
  64 + $ emacs bin/extract-po.sh (or vim or whatever)
  65 + $ ./bin/extract-po.sh
66 66
67 67 If you look in ``locale/templates/LC_MESSAGES/messages.pot`` you will see your strings have been extracted.
68 68 Edit this file and make sure ``charset`` is set to ``UTF-8``.
0  bin/check_l10n_config.js → bin/check-l10n-config.js
File renamed without changes
0  bin/check_po.sh → bin/check-po.sh
File renamed without changes
0  bin/compile_json.sh → bin/compile-json.sh
File renamed without changes
0  bin/compile_mo.sh → bin/compile-mo.sh
File renamed without changes
0  bin/every_locale.js → bin/every-locale.js
File renamed without changes
0  bin/extract_po.sh → bin/extract-po.sh
File renamed without changes
0  bin/merge_po.sh → bin/merge-po.sh
File renamed without changes
8 docs/L10n_README.md
Source Rendered
... ... @@ -1,11 +1,11 @@
1 1 These po files are scripts are for the BrowserID project and work along
2 2 with scripts from the browserid github repo under the scripts directory.
3 3
4   - scripts/extract_po.sh - Creates template POT file
  4 + scripts/extract-po.sh - Creates template POT file
5 5
6 6 This script examines EJS and JavaScript files for strings, extracts them, and puts them into POT files.
7 7
8   - scripts/merge_po.sh - Takes new or changed strings and updates PO files
  8 + scripts/merge-po.sh - Takes new or changed strings and updates PO files
9 9
10 10 Additionally, if possible, generates a db_LB language translation.
11 11
@@ -36,8 +36,8 @@ You should now have a complete environment for working with strings.
36 36
37 37 git fetch upstream
38 38 git checkout train-YYYY.MM.DD
39   - ./scripts/extract_po.sh
40   - ./scripts/merge_po.sh locale/
  39 + ./scripts/extract-po.sh
  40 + ./scripts/merge-po.sh locale/
41 41
42 42 ./locale/compile-json.sh locale/ resources/static/i18n/
43 43
8 docs/USAGE.md
Source Rendered
@@ -31,14 +31,14 @@ The request object and the response's template context have the following variab
31 31
32 32 ## Tools
33 33
34   -``scripts/every_locale.js`` - will output a list of every locale under the locale directory. This can
  34 +``scripts/every-locale.js`` - will output a list of every locale under the locale directory. This can
35 35 be copied into ``config/l10n-all.json``.
36 36
37   -``scripts/check_l10n_config.js`` - Run with the ``CONFIG_FILES`` environment variable set to the one json
  37 +``scripts/check-l10n-config.js`` - Run with the ``CONFIG_FILES`` environment variable set to the one json
38 38 config file which you'll like to validate. Examples:
39 39
40   - CONFIG_FILES=/home/ozten/Projects/browserid/config/l10n-prod.json node ./scripts/check_l10n_config.js
41   - CONFIG_FILES=/home/ozten/Projects/browserid/config/l10n-all.json node ./scripts/check_l10n_config.js
  40 + CONFIG_FILES=/home/ozten/Projects/browserid/config/l10n-prod.json node ./scripts/check-l10n-config.js
  41 + CONFIG_FILES=/home/ozten/Projects/browserid/config/l10n-all.json node ./scripts/check-l10n-config.js
42 42
43 43 ## Debugging
44 44

0 comments on commit a4bbbb9

Please sign in to comment.
Something went wrong with that request. Please try again.