Author: locilka Date: Wed May 30 15:24:17 2007 New Revision: 38208 URL: http://svn.opensuse.org/viewcvs/yast?rev=38208&view=rev Log: Script for getting strings for translations from firewall sysconfig service files has been adjusted to recognize wrong entries (those default ones left from template service). Modified: trunk/yast2/library/network/src/refresh-srv-def-by-pkgs-trans.sh trunk/yast2/library/network/src/yast2-services-translations.ycp Modified: trunk/yast2/library/network/src/refresh-srv-def-by-pkgs-trans.sh URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/network/src/refresh-srv-def-by-pkgs-trans.sh?rev=38208&r1=38207&r2=38208&view=diff ============================================================================== --- trunk/yast2/library/network/src/refresh-srv-def-by-pkgs-trans.sh (original) +++ trunk/yast2/library/network/src/refresh-srv-def-by-pkgs-trans.sh Wed May 30 15:24:17 2007 @@ -103,7 +103,9 @@ # ... ## Name: TAG_NAME=`grep -i ".*##[\t ]*Name:[\t ]*" $FILENAME | sed 's/^.*##[\t ]*[Nn][Aa][Mm][Ee]:[\t ]//' | sed 's/"/\\"/'` if [ "$TAG_NAME" == "" ]; then - echo "Something is wrong with file "$FILENAME", no 'Name:' tag found!" + echo "Something is wrong with file '"$FILENAME"', no 'Name:' tag found!" + elif [ "$TAG_NAME" == "template service" ]; then + echo "'Name:' not adjusted correctly in the '"$FILENAME"' file!" else echo " // TRANSLATORS: Name of Service (rpm: "$FILENAME"), can be used as check box, item in multiple selection box..." >> $Y2_NEWYCPFILE echo " tmpstring = _(\""$TAG_NAME"\");" >> $Y2_NEWYCPFILE @@ -113,7 +115,9 @@ # ... ## Description: TAG_DESCRIPTION=`grep -i ".*##[\t ]*Description:[\t ]*" $FILENAME | sed 's/^.*##[\t ]*[Dd][Ee][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn]:[\t ]//' | sed 's/"/\\"/'` if [ "$TAG_DESCRIPTION" == "" ]; then - echo "Something is wrong with file "$FILENAME", no 'Description:' tag found!" + echo "Something is wrong with file '"$FILENAME"', no 'Description:' tag found!" + elif [ "$TAG_DESCRIPTION" == "opens ports for foo in order to allow bar" ]; then + echo "'Description:' not adjusted correctly in the '"$FILENAME"' file!" else echo " // TRANSLATORS: Description of a Service (rpm: "$FILENAME"), used as a common label or an item in table" >> $Y2_NEWYCPFILE echo " tmpstring = _(\""$TAG_DESCRIPTION"\");" >> $Y2_NEWYCPFILE Modified: trunk/yast2/library/network/src/yast2-services-translations.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/network/src/yast2-services-translations.ycp?rev=38208&r1=38207&r2=38208&view=diff ============================================================================== --- trunk/yast2/library/network/src/yast2-services-translations.ycp (original) +++ trunk/yast2/library/network/src/yast2-services-translations.ycp Wed May 30 15:24:17 2007 @@ -61,18 +61,6 @@ // TRANSLATORS: Description of a Service (rpm: dnsmasq-dns), used as a common label or an item in table tmpstring = _("Open ports for the dnsmasq DNS/DHCP server"); - // TRANSLATORS: Name of Service (rpm: iceccd), can be used as check box, item in multiple selection box... - tmpstring = _("template service"); - - // TRANSLATORS: Description of a Service (rpm: iceccd), used as a common label or an item in table - tmpstring = _("opens ports for foo in order to allow bar"); - - // TRANSLATORS: Name of Service (rpm: icecream-scheduler), can be used as check box, item in multiple selection box... - tmpstring = _("template service"); - - // TRANSLATORS: Description of a Service (rpm: icecream-scheduler), used as a common label or an item in table - tmpstring = _("opens ports for foo in order to allow bar"); - // TRANSLATORS: Name of Service (rpm: iscsitarget), can be used as check box, item in multiple selection box... tmpstring = _("iSCSI Target Daemon"); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org