Permalink
Browse files

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

0 comments on commit a4bbbb9

Please sign in to comment.