Bug#427824: po-debconf: Please provide possibility to set default CC: for languages
Hello Nicolas, wonderful. This is much appreciated, thank you very much. Greetings Helge -- Dr. Helge Kreutzmann [EMAIL PROTECTED] Dipl.-Phys. http://www.helgefjell.de/debian.php 64bit GNU powered gpg signed mail preferred Help keep free software libre: http://www.ffii.de/ signature.asc Description: Digital signature
Bug#427824: po-debconf: Please provide possibility to set default CC: for languages
Package: po-debconf Version: 1.0.8 Severity: wishlist Currently the SMITH project uses podebconf-report-po to request updated translations after review. For this, the relevant language team is contacted via CC: Some (German, at least) translators, who are no longer active, used rather strange lists in the Language-Team: entry in po files. So the call goes to the inactive (i.e. not responding) translator and to some odd list. The German team knows about inactive translators, so if debian-l10n-german is informed, someone else would pick up the translation and hand it in. But since some odd list is contacted, the translation is not updated (nobody knows about it). What I would like is the possibility to add default CC:s to podebconf-report-po. So, if a German translation is processed, always add an CC: to debian-l10n-german, independently what else Language-Team: might point to. (This should be configurable by a command line flag, of course). In principle, you know the language by the file name, so in the config file for podebconf-report-po there could be an assignement, e.g. defaultCC de debian-l10n-german defaultCC fr debian-l10n-french and so on. Is this something you could implement? I know some basic perl, so I could try to hack on it and provide you with a patch, if you want, but I'd be glad if I don't need to (but I respect show me the code). Thanks Helge -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.19.2-grsec-cz01 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages po-debconf depends on: ii gettext0.16.1-1 GNU Internationalization utilities ii intltool-debian0.35.0+20060710.1 Help i18n of RFC822 compliant conf ii perl 5.8.8-7 Larry Wall's Practical Extraction Versions of packages po-debconf recommends: ii libcompress-zlib-perl 1.42-2 Perl module for creation and manip pn libmail-sendmail-perl none (no description available) -- no debconf information -- Dr. Helge Kreutzmann [EMAIL PROTECTED] Dipl.-Phys. http://www.helgefjell.de/debian.php 64bit GNU powered gpg signed mail preferred Help keep free software libre: http://www.ffii.de/ signature.asc Description: Digital signature
Bug#427824: po-debconf: Please provide possibility to set default CC: for languages
Hello Helge, On Wed, Jun 06, 2007 at 07:55:41PM +0200, Helge Kreutzmann wrote: What I would like is the possibility to add default CC:s to podebconf-report-po. So, if a German translation is processed, always add an CC: to debian-l10n-german, independently what else Language-Team: might point to. (This should be configurable by a command line flag, of course). In principle, you know the language by the file name, so in the config file for podebconf-report-po there could be an assignement, e.g. defaultCC de debian-l10n-german defaultCC fr debian-l10n-french and so on. Is this something you could implement? I know some basic perl, so I could try to hack on it and provide you with a patch, if you want, but I'd be glad if I don't need to (but I respect show me the code). I'm more in a show me the spec mood ;) Can you send me these odd lists. IIRC, some French POs used French as the French mailing list. If this is the case, I can detect when such a list is used, and then use a default list for this language. There is already support for config file in podebconf-report-po, so adding what you propose (support for defaultCC de debian-l10n-german) is possible. Do you think defaultCC should always add the given mailing list to CC, or do it depending on the Language-Team: field, and --languageteam/--nolanguageteam flags. Another possibility could be to add support for mail filters (also configurable in the config file). for example s/^French$/[EMAIL PROTECTED]/ or even s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/ or s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/ The list of filters (or defaultCC) could be shared within the SMITH project and/or provided as an example in the package (I will avoid putting individuals in an example file). Kind Regards, -- Nekral -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#427824: po-debconf: Please provide possibility to set default CC: for languages
Hello Nicolas, On Wed, Jun 06, 2007 at 09:46:48PM +0200, Nicolas François wrote: On Wed, Jun 06, 2007 at 07:55:41PM +0200, Helge Kreutzmann wrote: What I would like is the possibility to add default CC:s to podebconf-report-po. So, if a German translation is processed, always add an CC: to debian-l10n-german, independently what else Language-Team: might point to. (This should be configurable by a command line flag, of course). In principle, you know the language by the file name, so in the config file for podebconf-report-po there could be an assignement, e.g. defaultCC de debian-l10n-german defaultCC fr debian-l10n-french and so on. Is this something you could implement? I know some basic perl, so I could try to hack on it and provide you with a patch, if you want, but I'd be glad if I don't need to (but I respect show me the code). I'm more in a show me the spec mood ;) Great, specs ain't no problem ... Can you send me these odd lists. IIRC, some French POs used French as the French mailing list. I don't have a complete list of the odd lists. I have a fairly good overview of MIA translators. Some use the [EMAIL PROTECTED] list (which is IMHO dead), the current example used skolelinux-germany [EMAIL PROTECTED] If this is the case, I can detect when such a list is used, and then use a default list for this language. There is already support for config file in podebconf-report-po, so adding what you propose (support for defaultCC de debian-l10n-german) is possible. I would not think so complicated. I would add a switch (defaulting to no for backwards compatibility) which would do if language==XX and defaultCC(XX) != then if (defaultCC(XX) != language_team(XX)) then CC += defaultCC(XX) fi fi In words: If a defaultCC for a certain language is set (and the switch is yes) *and* the defaultCC is not the Language Team then *additionally* CC: to the defaultCC. This way, each project using your tools could define their own set of defaultCC and you don't have to keep white or black lists in your code/package. Do you think defaultCC should always add the given mailing list to CC, or do it depending on the Language-Team: field, and --languageteam/--nolanguageteam flags. I think if --languageteam is selected *and* a defaultCC is present in the configuration file both teams (if they differ) should receive the CC. If they are the same, the present behaviour would result. But of course, you could also make this independently configurable, though I fail to see a reason atm. Another possibility could be to add support for mail filters (also configurable in the config file). for example s/^French$/[EMAIL PROTECTED]/ or even s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/ or s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/ The list of filters (or defaultCC) could be shared within the SMITH project and/or provided as an example in the package (I will avoid putting individuals in an example file). A possible solution, but IMHO more cumbersome, as any typo would escape the filter. Also sometimes this other list might reach appropriate translators, e.g. when upstream translates himself. In simple words: I like that every de.po gets copied to debian-l10n-german as well, and (if possible) the original list gets copied also. Thanks for your *extremly fast* response Helge -- Dr. Helge Kreutzmann [EMAIL PROTECTED] Dipl.-Phys. http://www.helgefjell.de/debian.php 64bit GNU powered gpg signed mail preferred Help keep free software libre: http://www.ffii.de/ signature.asc Description: Digital signature
Bug#427824: po-debconf: Please provide possibility to set default CC: for languages
Hello Helge, I think it's clear enough. I will just rename defaultCC to addlanguageteam. It could be used that way: --addlanguageteam language:mailinglist or, in the config file: addlanguageteam language:mailinglist The option and config variable can be specified more than once. The documentation should look like: Specify a mailing list for a given language. This mailing list will be added to the CC list for the PO files of this language when --languageteam is used, in addition to the language team specified in the PO file (if these mailing lists differ). This is useful to keep the specified team informed, and allow a faster reaction when a translator is known to be inactive. This option can be specified more than once. The language code and language mailing list are separated by a colon. The option will be added to the list in the CONFIGURATION FILE section. Best Regards, -- Nekral -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]