Skip to content

Commit 0d56fa3

Browse files
author
Chris Park
committed
Merge branch 'SamHausmann-RCB-331' into develop
2 parents 2fecd23 + 9216277 commit 0d56fa3

File tree

7 files changed

+161
-177
lines changed

7 files changed

+161
-177
lines changed

docker/run_php.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ if [ "${match}" = "" ]; then
5757
exit 1
5858
fi
5959

60+
6061
#Checks if Rosette API key is valid
6162
function checkAPI {
6263
match=$(curl "${ping_url}/ping" -H "X-RosetteAPI-Key: ${API_KEY}" | grep -o "forbidden")
@@ -112,4 +113,4 @@ if [ ! -z ${GIT_USERNAME} ] && [ ! -z ${VERSION} ]; then
112113
git add .
113114
git commit -a -m "publish php apidocs ${VERSION}"
114115
git push
115-
fi
116+
fi

examples/base64_input.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ WORKDIR /php/examples
1515
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && composer require "rosette/api: ~0.8.0"
1616

1717
# allow interactive bash inside docker container
18-
CMD ./run_php.sh $API_KEY $ALT_URL
18+
CMD ./run_php.sh $API_KEY $ALT_URL; /bin/bash
1919

2020
VOLUME ["/source"]

examples/name_translation.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
$params->set('targetLanguage', 'eng');
2121
$params->set ('targetScript', 'Latn');
2222
$params->set ('targetScheme', 'IC');
23+
$params->set('sourceLanguageOfOrigin', 'ara');
24+
$params->set('sourceLanguageOfUse', 'ara');
25+
2326

2427
try {
2528
$result = $api->nameTranslation($params);

0 commit comments

Comments
 (0)