Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Renaming bin commands from _ to hyphan based names
Browse files Browse the repository at this point in the history
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
ozten committed Jul 31, 2012
1 parent 118717f commit a4bbbb9
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions docs/L10n_README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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/

Expand Down
8 changes: 4 additions & 4 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a4bbbb9

Please sign in to comment.