diff --git a/CHANGES.md b/CHANGES.md index 9963830..0c54558 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +Changes in version 2015-12-31 (4) (2015123104) +------------------------------------------------------------------ +- Fix translations check at translate.php + Changes in version 2015-12-31 (3) (2015123103) ------------------------------------------------------------------ - Fix at backup. diff --git a/lang/en/game.php b/lang/en/game.php index 6c5b7c7..bd2fb0d 100755 --- a/lang/en/game.php +++ b/lang/en/game.php @@ -17,9 +17,7 @@ // Translated by Vasilis Daloukas. // File bookquiz/importodt.php. -$string[ 'bookquiz_import_odt'] = 'Import from an OpenOffice file (odt)'; $string[ 'bookquiz_not_select_book'] = 'You have not select book'; -$string[ 'bookquiz_subchapter'] = 'Create subchapters'; // File bookquiz/play.php. $string[ 'bookquiz_empty'] = 'The book is empty'; @@ -238,13 +236,11 @@ $string[ 'cross_max_attempts'] = 'Maximum number of attempts'; $string[ 'cross_maxwords'] = 'Maximum number of words'; $string[ 'cross_minwords'] = 'Minimum number of words'; $string[ 'cross_options'] = 'Crossword options'; -$string[ 'cross_showprint'] = 'Show print button'; $string[ 'cryptex_maxtries'] = 'Max tries'; $string[ 'cryptex_options'] = 'Cryptex options'; $string[ 'disablesummarize'] = 'Disable summarize'; $string[ 'gameclose'] = 'Close the game'; $string[ 'gameopen'] = 'Open the game'; -$string[ 'gameopenclose'] = 'Open and close dates'; $string[ 'gameopenclose_help'] = 'Students can only start their attempt(s) after the open time and they must complete their attempts before the close time.'; $string[ 'grademethod'] = 'Grading method'; $string[ 'hangman_allowspaces'] = 'Allow spaces in words'; diff --git a/translate.php b/translate.php index fdea7a2..b2b0bf5 100755 --- a/translate.php +++ b/translate.php @@ -34,8 +34,7 @@ require( 'locallib.php');
id); +$context = game_get_context_course_instance( $COURSE->id); if (!has_capability('mod/game:viewreports', $context)) { error( get_string( 'only_teachers', 'game')); } @@ -55,10 +54,12 @@ $langname['lt'] = 'Lietuviškai (lt)'; $langname['nl'] = 'Nederlands (nl)'; $langname['no'] = 'Norsk - bokmål (no)'; $langname['pl'] = 'Polski (pl)'; +$langname['pt_br'] = 'Português - Brasil (pt_br)'; +$langname['ro'] = 'Română (ro)'; $langname['ru'] = 'Русский (ru)'; $langname['sq'] = 'Shqip (sq)'; +$langmane['sr_cr'] = 'Српски (sr_cr)'; $langname['uk'] = 'Українська (uk)'; -$langname['pt_br'] = 'Português - Brasil (pt_br)'; $langname['zh_cn'] = '简体中文 (zh_cn)'; ksort( $langname); $a = read_dir( $CFG->dirroot.'/mod/game', 'php'); @@ -82,6 +83,7 @@ $strings[ 'game:preview'] = '/db/access.php * game:preview'; $strings[ 'game:reviewmyattempts'] = '/db/access.php * game:reviewmyattempts'; $strings[ 'game:view'] = '/db/access.php * game:view'; $strings[ 'game:viewreports'] = '/db/access.php * game:viewreports'; +$strings[ 'game:addinstance'] = '/db/access.php * game:viewreports'; $strings[ 'pluginname'] = 'index.php * pluginname'; $strings[ 'pluginadministration'] = 'index.php * pluginadministration'; $strings[ 'convertfrom'] = 'locallib.php * convertfrom'; @@ -99,11 +101,12 @@ $strings[ 'helpmillionaire'] = 'index.php * helpmillionaire'; $en = readlangfile( 'en', $header); unset( $en[ 'convertfrom']); unset( $en[ 'convertto']); -$langs = computelangs(); +$langs = array_keys( $langname); $sum = array(); $destdir = game_export_createtempdir(); +$auntranslated = array(); foreach ($langs as $lang) { - if ($lang != 'en' and $lang != 'CVS' and strpos( $lang, '_utf8') == 0 and strpos( $lang, '_uft8') == 0) { + if ($lang != 'en') { computediff( $en, $lang, $strings, $langname, $sum, $destdir, $untranslated); $auntranslated[ $lang] = $untranslated; } @@ -119,7 +122,7 @@ foreach ($sum as $s) { } echo ""; -echo "Word1 | Word2 | Translation |