Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Apr 2, 2019
1 parent 543178d commit 3b5db55
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ composer require sokil/php-isocodes

## Locale configuration

Before using IsoCodes database you need to setup valid locale to get transtions worked:
Before using IsoCodes database you need to setup valid locale to get translations worked:

```php
<?php
Expand Down Expand Up @@ -97,8 +97,8 @@ Generation complete.
Database and related gettext files located inside this repo in `databases` and `messages` directories.
This data periodically updated with package version increment.

If you want to update database more often, use script `update_db.sh`.
Call this script by cron, during deploy process or when build your docker image.
If you want to update database more often, use script `./bin/update_iso_codes_db.sh`.
Call this script by cron, during deploy process or when build your docker image.

```
/path/to/project/vendor/sokil/php-isocodes/bin/update_iso_codes_db.sh /var/isocodes
Expand Down
7 changes: 7 additions & 0 deletions bin/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env bash

#############################################
# #
# Update internal database for #
# publishing to GitHub #
# #
#############################################

CURRENT_DIR=$(dirname $(readlink -f $0))
PROJECT_DIR=$CURRENT_DIR/..
PKG_ISOCODES_DIR="${PROJECT_DIR}/build/iso-codes"
Expand Down
7 changes: 7 additions & 0 deletions bin/update_iso_codes_db.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env bash

#########################################################
# #
# Update database on specified place #
# Usage: ./bin/update_iso_codes_db.sh /var/isocodes #
# #
#########################################################

CURRENT_DIR=$(dirname $(readlink -f $0))
PROJECT_DIR=$CURRENT_DIR/..
PKG_ISOCODES_DIR="${PROJECT_DIR}/build/iso-codes"
Expand Down

0 comments on commit 3b5db55

Please sign in to comment.