NOTE: THIS IS TRANSLATION OF NAVIGATION SO LOCATION FOR COMMIT IS DIFFERENT!'; $commit = 'web/www/trunk/_nav/langs/' . $file . ' and for now to the web/nav/langs/' . $file . ' too'; } else { $file = _lang_file_switch($source_file, $target_lang); $note = ''; $commit = 'web/www/trunk/langs/' . $file . ''; } $source_file = realpath($source_file); $target_file = realpath($target_file); if (false === strstr($source_file, '/langs/') || false == strstr($target_file, '/langs/')) { die('no sorry'); } $diff = _lang_diff($source_file, $target_file); $issues = array( 'missing' => 'missing strings', 'notrans' => 'untranslated strings', 'extra' => 'unused (old) strings', 'dup_str' => 'duplicate strings', ); $s = '« back to the report page for ' . $langs[$target_lang] . ''; $s .= sprintf('
You can find it in svn. '; $constitution_results = aproximate_number_of_untranslated_constitution_lines(APP_ROOT, 'en'); $unique_lines_in_eng_constitution = $constitution_results['unique_lines_in_constitution']; $lang_constitution_results = aproximate_number_of_untranslated_constitution_lines(APP_ROOT, $target_lang, $unique_lines_in_eng_constitution); $constitution_readable = $lang_constitution_results['constitution_readable']; $diff['untranslated_lines_in_constitution'] = $lang_constitution_results['untranslated_lines_in_constitution']; // add untranslated license sentences $dest_constitution = sprintf('%s/%s_%s.md', 'href="//svnweb.mageia.org/web/www/trunk/en/about/constitution', 'mageia.org_statutes', ($constitution_readable ? $target_lang : 'en')); $issues['untranslated_lines_in_constitution'] = 'of all untranslated lines in constitution (in svn)'; } if($license) { require_once('../en/about/license/license.php'); $license_array = read_license_from_vcs($target_lang); $license_numbers = array_pop($license_array); $num_of_untranslated_strings = $license_numbers["untran"]; // number of all license sentences $diff['untranslated_sentences_in_license'] = $license_numbers['untranslated_sentences']; // add untranslated license sentences $s .= '
You can find it in git. ', $target_lang); // git doesn't work yet on https $issues['untranslated_sentences_in_license'] = 'untranslated msgid strings in ' . $num_of_untranslated_strings . ' sentences in separate license file (in git)'; } if($constitution || $license) { $s .= 'Please read page on wiki for more information about that.
'; } $s .= 'After translation:
' . $commit . '
. ' . $note . 'mageia-i18n
, #mageia-i18n on Freenode).'; if ($type == 'untranslated_lines_in_constitution') { $prefix = ''; } else if ($type == 'untranslated_sentences_in_license') { $prefix = 'msgid: '; } else { $prefix = ';'; } foreach ($diff[$type] as $l) $s .= sprintf("%s%s\n\n", $prefix, rtrim(htmlspecialchars($l))); $s .= ''; } } header('Content-Type: text/html;charset=utf-8'); ?> Differences between %s source and %s target', substr($source_file, strpos($source_file, '/langs/')+7), $target_lang); ?>