diff options
author | filip <filip.komar@gmail.com> | 2013-11-30 22:27:14 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2013-11-30 22:27:14 +0100 |
commit | 31980cbdcab1068ac43941dd111b3608a4e70247 (patch) | |
tree | 232ab2957a611e28d725d5a6339d9adaeb74b3e3 | |
parent | f41d5ba01537fcaf65f424ea4f7fda5bccf43ade (diff) | |
download | tools-31980cbdcab1068ac43941dd111b3608a4e70247.tar tools-31980cbdcab1068ac43941dd111b3608a4e70247.tar.gz tools-31980cbdcab1068ac43941dd111b3608a4e70247.tar.bz2 tools-31980cbdcab1068ac43941dd111b3608a4e70247.tar.xz tools-31980cbdcab1068ac43941dd111b3608a4e70247.zip |
beautifying a list_of_resources_for_translation.txt a bit
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | check_for_translation_work.sh | 19 |
2 files changed, 16 insertions, 5 deletions
@@ -1,4 +1,6 @@ NEWS +2013/11/30 +beautifying a list_of_resources_for_translation.txt a bit 2013/11/28 some cleaning in translation_projects.dat 2013/11/09 diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh index 4a3ec638..481bc504 100755 --- a/check_for_translation_work.sh +++ b/check_for_translation_work.sh @@ -7,7 +7,7 @@ # # Filip Komar, 2012, 2013 # Remco Rijnders, 2012 -# $Id: check_for_translation_work.sh 2013-11-09 19:57:00 UTC filip $ +# $Id: check_for_translation_work.sh 2013-11-30 21:22:00 UTC filip $ # # Please see git for a list of changes to this script. # @@ -243,7 +243,7 @@ echo "" | tee -a "$logfile"_this_run.log echo -e "\E[32m" echo "" >> "$log_directory"/list_of_resources_for_translation.txt echo "Po and pot files:" | tee -a "$logfile"_this_run.log -echo "Translate po files in working directories ($working_translations_directory/):" >> "$log_directory"/list_of_resources_for_translation.txt +echo "Translate po files in working directories (WD) or git:" >> "$log_directory"/list_of_resources_for_translation.txt echo -e "\E[m" # echo about checking the syntax of po file if required @@ -256,6 +256,7 @@ if [ $copying_po -eq 1 ]; then echo "Files *.pot and $language_code.po will be copied into apropriate directory." fi +i=1 for translate_project_name_po in "${!translate_projects_po[@]}" do echo $separator | tee -a "$logfile"_this_run.log @@ -432,7 +433,11 @@ do statistics=$statistics_git_pot fi if [ "$translate_this" = "yes" ]; then - echo $translate_project_name_po, $statistics >> "$log_directory"/list_of_resources_for_translation.txt + echo " $i. $translate_project_name_po, $statistics" >> "$log_directory"/list_of_resources_for_translation.txt + echo " git: $git_directory/${translate_projects_po[$translate_project_name_po]}/$language_code.po" >> "$log_directory"/list_of_resources_for_translation.txt + echo " WD: $working_translations_directory/$translate_project_name_po/$language_code.po" >> "$log_directory"/list_of_resources_for_translation.txt + empty_list_of_desktop_file="no" + let i++ fi # cd "$git_directory/" # echo "" | tee -a "$logfile"_this_run.log @@ -442,9 +447,10 @@ echo "" | tee -a "$logfile"_this_run.log echo -e "\E[32m" echo "" >> "$log_directory"/list_of_resources_for_translation.txt echo "*.desktop files:" | tee -a "$logfile"_this_run.log -echo "Translate *.desktop files in working directories ($working_translations_directory/desktop/$translate_project_name_desktop):" >> "$log_directory"/list_of_resources_for_translation.txt +echo "Translate *.desktop files in working directories (WD) or git:" >> "$log_directory"/list_of_resources_for_translation.txt echo -e "\E[m" empty_list_of_desktop_file="" +i=1 for translate_project_name_desktop in "${!translate_projects_desktop[@]}" do if [ ! -f "$git_directory/${translate_projects_desktop[$translate_project_name_desktop]}" ]; then @@ -532,8 +538,11 @@ do fi fi if [ "$copy_this_desktop_file" = "yes" ]; then - echo $translate_project_name_desktop, untranslated line: $untranslated_name $untranslated_comment $untranslated_generic_name >> "$log_directory"/list_of_resources_for_translation.txt + echo " $i. $translate_project_name_desktop, untranslated line: $untranslated_name $untranslated_comment $untranslated_generic_name" >> "$log_directory"/list_of_resources_for_translation.txt + echo " git: $git_directory/${translate_projects_desktop[$translate_project_name_desktop]}" >> "$log_directory"/list_of_resources_for_translation.txt + echo " WD: $working_translations_directory/desktop/$translate_project_name_desktop/" >> "$log_directory"/list_of_resources_for_translation.txt empty_list_of_desktop_file="no" + let i++ fi done if [ -n "$work_on_desktop_files" ]; then |