Skip to content

Commit

Permalink
Fix to using most recent development translation set on development d…
Browse files Browse the repository at this point in the history
…emo.

Github can not serve text files are 10MB, so needed a work around. The
development demo now serves this file; this is not ideal since it goes down
for about 20 minutes a day while resetting, but it at least works for now.
Will also direct the wiki link for most recent translation development set
to this file.
  • Loading branch information
bradymiller committed Jan 8, 2014
1 parent f001cc6 commit 884a77e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/util/installScripts/InstallerAuto.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
// no_root_db_access -> if set to anything, will use pre-created and pre-configured login/pass/dbname and
// will disable cloning / migration since that generally requires root access to the db
// development_translations -> If set to anything, will then download and use the development set (updated daily)
// of translations from the github repository.
// of translations (indirectly) from the github repository.
//
// Examples of use:
// 1) Install using default configuration settings
Expand Down
12 changes: 12 additions & 0 deletions contrib/util/installScripts/cvsDemoInstall
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# Logs errors.
#

# OPTIONS
#flag for the isntance to serve as the developer translation set server
translationServe=true

# PATH VARIABLES
WEB=/var/www/html
OPENEMR=$WEB/openemr
Expand All @@ -21,6 +25,8 @@ CVS=/home/openemr/cvs
GITMAIN=/home/openemr/git
GIT=$GITMAIN/openemr
TMPDIR=/tmp/openemr-tmp
TRANSSERVEDIR=$WEB/translations
GITTRANS=$GITMAIN/translations_development_openemr

# PATH OF INSTALL SCRIPT
INST=$OPENEMR/contrib/util/installScripts/InstallerAuto.php
Expand Down Expand Up @@ -66,6 +72,12 @@ if ! [ -d $GITMAIN ]; then
mkdir -p $GITMAIN
cd $GITMAIN
git clone git://github.com/openemr/openemr.git
if $translationServe ; then
# download the translations git repo and place the set sql file for serving
git clone git://github.com/openemr/translations_development_openemr.git
mkdir -p $TRANSSERVEDIR
cp $GITTRANS/languageTranslations_utf8.sql $TRANSSERVEDIR/
fi
else
echo "The OpenEMR git repository already exist"
echo "The OpenEMR git repository already exist" >> $LOG
Expand Down
2 changes: 1 addition & 1 deletion library/classes/Installer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct( $cgi_variables )
// Record names of sql table files
$this->main_sql = dirname(__FILE__) . '/../../sql/database.sql';
$this->translation_sql = dirname(__FILE__) . '/../../contrib/util/language_translations/currentLanguage_utf8.sql';
$this->devel_translation_sql = "http://github.com/openemr/translations_development_openemr/raw/master/languageTranslations_utf8.sql";
$this->devel_translation_sql = "http://demo.open-emr.org:2089/translations/languageTranslations_utf8.sql";
$this->ippf_sql = dirname(__FILE__) . "/../../sql/ippf_layout.sql";
$this->icd9 = dirname(__FILE__) . "/../../sql/icd9.sql";
$this->cvx = dirname(__FILE__) . "/../../sql/cvx_codes.sql";
Expand Down

0 comments on commit 884a77e

Please sign in to comment.