>
> another thing I could do is treat amarok and phonon similarly (where one
> goes to extragear-multimedia and one goes to qt). then it'd write to
> desktop_amarok.pot

that was assuming the module is named amarok.
if we name the module extragear-multimedia_amarok ... then the extragear-* 
thing gets it and I have to hardcode an exception still. damn.

ok, I think I've managed to get the best of both worlds. patch attached, 
untested. you'll need to get rid of extragear-multimedia/amarok before this 
can be used.

-- 
This message brought to you by eevil bananas and the number 3.
www.chani3.com
Index: update_translations
===================================================================
--- update_translations	(revision 1000755)
+++ update_translations	(working copy)
@@ -163,20 +163,15 @@
   
   kdelibs=
 
-  for templatename in $releases; do
+  for logmod in $releases; do
   
     test -z "$NOXGETTEXT" || continue
 
-    logmod=$templatename
-    mod=`get_path $templatename`
+    templatename=`get_po_path $logmod`
+    mod=`get_path $logmod`
     rm -rf /tmp/cvslog.$logmod
     if cd $BASEDIR/$mod; then
-      qtonly=`qt_only $templatename`
 
-      if test x"$qtonly" = x"yes"; then
-        templatename=qt
-      fi
-      
       if test ! -d $BASEDIR/$transmod/templates/messages/$templatename; then
         if cd $BASEDIR/$transmod/templates/messages; then
           echo "creating templates directory for $templatename"
@@ -316,6 +311,9 @@
 
     for mod in $releases l10n; do
       case "$mod" in
+        extragear-*_*)
+          extract_desktop all_files_$mod $BASEDIR/`get_path $mod` templates/messages/`get_po_path $mod`/desktop_$mod.pot
+          ;;
         extragear-*)
           basedir=$BASEDIR/`get_path $mod`
           subdirs=`fgrep $basedir all_files_$mod | sed -e "s,$basedir/,," | cut -d/ -f1`
@@ -330,13 +328,7 @@
           extract_desktop all_files_$mod $BASEDIR/`get_path $mod` templates/messages/kdelibs/desktop_l10n.pot
           ;;
         *)
-          qtonly=`qt_only $mod`
-
-          if test x"$qtonly" = x"yes"; then
-            extract_desktop all_files_$mod $BASEDIR/`get_path $mod` templates/messages/qt/desktop_$mod.pot
-          else
-            extract_desktop all_files_$mod $BASEDIR/`get_path $mod` templates/messages/$mod/desktop_$mod.pot
-          fi
+          extract_desktop all_files_$mod $BASEDIR/`get_path $mod` templates/messages/`get_po_path $mod`/desktop_$mod.pot
           ;;
       esac
     done
Index: get_paths
===================================================================
--- get_paths	(revision 1000755)
+++ get_paths	(working copy)
@@ -52,14 +52,17 @@
 	esac
 }
 
-function qt_only
+function get_po_path
 {
 	case "$1" in
+		extragear-multimedia_amarok)
+			echo extragear-multimedia
+			;;
 		phonon)
-			echo yes
+			echo qt
 			;;
 		*)
-			echo no
+			echo $1
 			;;
 	esac
 }

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Kde-scm-interest mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-scm-interest

Reply via email to