aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2013-11-09 20:42:22 +0100
committerfilip <filip.komar@gmail.com>2013-11-09 20:42:22 +0100
commitc729e8575090f47284a6440acce4ebf1b324c62d (patch)
treef9c70e2ae1f1782b8d7e08f34258dd87066e4295
parent81bcbd35f2861358e258b166011abbefe6adcf5a (diff)
downloadtools-c729e8575090f47284a6440acce4ebf1b324c62d.tar
tools-c729e8575090f47284a6440acce4ebf1b324c62d.tar.gz
tools-c729e8575090f47284a6440acce4ebf1b324c62d.tar.bz2
tools-c729e8575090f47284a6440acce4ebf1b324c62d.tar.xz
tools-c729e8575090f47284a6440acce4ebf1b324c62d.zip
mageiawelcome added + some fixes
separate NEWS file mageiawelcome added small bugfix for and English only in list_of_resources_for_translation.txt
-rw-r--r--NEWS21
-rw-r--r--README21
-rwxr-xr-xcheck_for_translation_work.sh14
-rw-r--r--translation_projects.dat7
4 files changed, 38 insertions, 25 deletions
diff --git a/NEWS b/NEWS
new file mode 100644
index 00000000..bf449bc2
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,21 @@
+NEWS
+2013/11/09
+small bugfix for and English only in list_of_resources_for_translation.txt
+2013/11/06
+improvement in git grep
+2013/11/03
+added warning about configuration excluding the work on desktop files in list_of_resources_for_translation.txt
+added test for GenericName for *.desktop file
+2013/11/02
+added check and addition of git configuration thanks to Алексей Логинов
+2013/11/01
+added option to exclude all work on web pages translation
+2013/10/31
+added support for git NOTE: you need to add git_directory variable in your ~/.mageia-i18n-config file
+added creation of list_of_resources_for_translation.txt with statistics
+added support for *.desktop
+added support for doc team resources
+removed support for mga2 since it's EOL is almost here
+added creation of working copy of po resource
+2012/10/03
+First script by Remco Rijnders
diff --git a/README b/README
index f94cd6ff..feac2917 100644
--- a/README
+++ b/README
@@ -1,23 +1,4 @@
-NEWS
-2013/11/06
-improvement in git grep
-2013/11/03
-added warning about configuration excluding the work on desktop files in list_of_resources_for_translation.txt
-added test for GenericName for *.desktop file
-2013/11/02
-added check and addition of git configuration thanks to Алексей Логинов
-2013/11/01
-added option to exclude all work on web pages translation
-2013/10/31
-added support for git NOTE: you need to add git_directory variable in your ~/.mageia-i18n-config file
-added creation of list_of_resources_for_translation.txt with statistics
-added support for *.desktop
-added support for doc team resources
-removed support for mga2 since it's EOL is almost here
-added creation of working copy of po resource
-2012/10/03
-First script by Remco Rijnders
-
+see separate NEWS file
FEATURES
-it's very configurable
diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh
index 41bd0deb..4a3ec638 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-06 21:49:00 UTC filip $
+# $Id: check_for_translation_work.sh 2013-11-09 19:57:00 UTC filip $
#
# Please see git for a list of changes to this script.
#
@@ -296,10 +296,10 @@ do
fi
# creating statistics
if [ -f $language_code.po ]; then
- statistics_git_po=`msgfmt --statistics --verbose $language_code.po -o /dev/null 2>&1 | tail -1`
+ statistics_git_po=`LC_ALL=C msgfmt --statistics --verbose $language_code.po -o /dev/null 2>&1 | tail -1`
fi
if [ -f $pot_filename ]; then
- statistics_git_pot=`msgfmt --statistics --verbose $pot_filename -o /dev/null 2>&1 | tail -1`
+ statistics_git_pot=`LC_ALL=C msgfmt --statistics --verbose $pot_filename -o /dev/null 2>&1 | tail -1`
fi
# checking the syntax of po file from git if required
@@ -361,7 +361,7 @@ do
fi
# comparing new_pot_lang.po from working copy
if [ -f new_pot_$language_code.po ]; then
- statistics_wd_po=`msgfmt --statistics --verbose new_pot_$language_code.po -o /dev/null 2>&1 | tail -1`
+ statistics_wd_po=`LC_ALL=C msgfmt --statistics --verbose new_pot_$language_code.po -o /dev/null 2>&1 | tail -1`
# checking for fuzzy and untranslated strings in fresh new_pot_$language_code.po
msgattrib new_pot_$language_code.po --only-fuzzy --no-obsolete 2>&1 | grep . >> /dev/null
if [ $? -eq 0 ]; then
@@ -484,6 +484,8 @@ do
copy_this_desktop_file="yes"
echo Name string \"$eng_name\" not present in $language_code language | tee -a "$logfile"_this_run.log
fi
+ else
+ untranslated_name=""
fi
if [ -n "$eng_comment" ]; then # Comment string present in original desktop file
if [ -n "$lang_comment" ]; then # Comment string present in your language
@@ -499,6 +501,8 @@ do
copy_this_desktop_file="yes"
echo Comment string \"$eng_comment\" not present in $language_code language | tee -a "$logfile"_this_run.log
fi
+ else
+ untranslated_comment=""
fi
if [ -n "$eng_generic_name" ]; then # GenericName string present in original desktop file
if [ -n "$lang_generic_name" ]; then # GenericName string present in your language
@@ -514,6 +518,8 @@ do
copy_this_desktop_file="yes"
echo GenericName string \"$eng_generic_name\" not present in $language_code language | tee -a "$logfile"_this_run.log
fi
+ else
+ untranslated_generic_name=""
fi
# copying the *.desktop file for editing in working directory if required
diff --git a/translation_projects.dat b/translation_projects.dat
index 244de33e..01e7f17a 100644
--- a/translation_projects.dat
+++ b/translation_projects.dat
@@ -1,4 +1,5 @@
-# database for script check_for_translation_work.sh 2013-11-02 13:36:00 UTC filip
+# database for script check_for_translation_work.sh 2013-11-09 18:46:00 UTC filip
+
# GIT ADDRESSES
# Repositories of resources for Cauldron and the next released version of Mageia
git_addresses[control-center]="software/control-center"
@@ -16,6 +17,7 @@ git_addresses[drakx-net]="software/drakx-net"
# git_addresses[Identity_CatDap]="software/infrastructure/catdap" # (Repository currently seems to be empty)
git_addresses[indexhtml]="software/indexhtml"
git_addresses[kde4-splash-mga]="software/desktop/kde/splash"
+git_addresses[mageiawelcome]="software/mageiawelcome" # added 9. nov. 2013
git_addresses[mageia-gfxboot-theme]="software/design/bootloader-theme"
git_addresses[mageia-kde-translation]="software/i18n/kde"
git_addresses[mgaonline]="software/mgaonline"
@@ -47,6 +49,7 @@ fi
# UNOFFICIAL LIST OF REPOSITORIES OF OTHER RESOURCES FOR TRANSLATION
if [ -z "$work_on_unofficial" ]; then
# git_addresses[usbdumper]="software/usbdumper" # unmantained and duplicate
+ echo -n ""
fi
# NOT YET ON OUR GIT
@@ -74,6 +77,7 @@ translate_projects_po[drakx_standalone]="drakx/perl-install/standalone/po"
translate_projects_po[indexhtml]="indexhtml/po"
translate_projects_po[kde4-splash-mga]="kde4-splash-mga/po"
# translate_projects_po[mageia-doc]="NA"
+translate_projects_po[mageiawelcome]="mageiawelcome/po" # added 9. nov. 2013
translate_projects_po[mageia-gfxboot-theme]="mageia-gfxboot-theme/po"
translate_projects_po[mageia-kde-translation]="mageia-kde-translation/po"
translate_projects_po[mgaonline]="mgaonline/po"
@@ -123,6 +127,7 @@ if [ -z "$work_on_desktop_files" ]; then
# not yet on git mageia-doc/trunk/mcc/et/mageia-doc-mcc-et.desktop
# not yet on git mageia-doc/trunk/mcc/fr/mageia-doc-mcc-fr.desktop
# no translations?? mgaonline/trunk/gnome-mandrakeonline.desktop
+ translate_projects_desktop[mageiawelcome]="mageiawelcome/etc/xdg/autostart/mageiawelcome.desktop" # added 9. nov. 2013
translate_projects_desktop[mageia-kde-banshee-play-audiocd]="mageia-kde-translation/solid/banshee-play-audiocd.desktop"
translate_projects_desktop[mageia-kde-brasero_copy_disc]="mageia-kde-translation/solid/brasero_copy_disc.desktop"
translate_projects_desktop[mageia-kde-brasero_create_audio_cd_from_blank_medium]="mageia-kde-translation/solid/brasero_create_audio_cd_from_blank_medium.desktop"