Skip to content

Commit

Permalink
default region
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Aug 12, 2023
1 parent 4756bee commit 9711bf2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,21 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci --ansi phpunit --coverage-text --coverage-clover

- name: coveralls
- name: privacy
if: ${{ always() }}
run: moodle-plugin-ci coveralls-upload
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: vendor/bin/phpunit --colors --no-coverage --testsuite tool_dataprivacy_testsuite,tool_policy_testsuite,core_privacy_testsuite
working-directory: moodle

- name: behat
- name: extra
if: ${{ always() }}
run: moodle-plugin-ci --ansi behat --profile=chrome
run: vendor/bin/phpunit --colors --no-coverage --filter test_admin_output_new_settings_by_page
working-directory: moodle

- name: classic
- name: coveralls
if: ${{ always() }}
run: moodle-plugin-ci --ansi behat --suite="classic" --profile=chrome
run: moodle-plugin-ci coveralls-upload
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: AWS engine
if: ${{ always() }}
Expand All @@ -148,3 +150,21 @@ jobs:
- name: Deepl engine
if: ${{ always() }}
run: moodle-plugin-ci --ansi phpunit --coverage-text moodle/admin/tool/translate/engine/deepl

- name: behat
if: ${{ always() }}
run: moodle-plugin-ci --ansi behat --profile=chrome

- name: classic
if: ${{ always() }}
run: moodle-plugin-ci --ansi behat --suite="classic" --profile=chrome

- name: admin bookmarks
if: ${{ always() }}
run: moodle-plugin-ci --ansi behat --auto-rerun=0 --profile chrome blocks/admin_bookmarks
working-directory: moodle

- name: admin xmldb
if: ${{ always() }}
run: moodle-plugin-ci --ansi behat --auto-rerun=0 --profile chrome admin/tool/xmldb
working-directory: moodle
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ But language pairs can have better translation performance with other engines, s
From the command line, it is possible to translate a complete

- course: php admin/tool/translate/cli/translate_course.php --engine=aws --courseid=22 --from=en --to=fr
- plugin: php admin/tool/translate/cli/translate_component.php --engine=aws --component=tool_translate --from=en --to=fr
- plugin: php admin/tool/translate/cli/translate_component.php --engine=aws --component=tool_translate --from=en --to=nl

## Admin tools ##

Expand Down Expand Up @@ -78,7 +78,7 @@ We are always interested to read about your feature proposals or even get a pull

- implement Active Custom Translation (Extra parallel data to customize the machine translated output)
- implement Custom Terminology so specific terms get translated better
- better Moodle 4.00 question handling
- Moodle 4.00 question handling
- support translation of Microsoft Word / PDF documents

## Status ##
Expand Down
2 changes: 1 addition & 1 deletion engine/aws/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$settings->add($setting);
$setting = new admin_setting_configpasswordunmask("$s/secret_key", $t->secret_key, '', '');
$settings->add($setting);
$setting = new admin_setting_configselect("$s/region", $t->region, '', '', $regions);
$setting = new admin_setting_configselect("$s/region", $t->region, '', 'us-west-1', $regions);
$settings->add($setting);
}
}

0 comments on commit 9711bf2

Please sign in to comment.