[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: some libreoffice files need special treatment



Hi,

Andika Triwidada <andika@gmail.com> wrote (Tue, 21 Nov 2023 11:38:36 +0700):
> Hello,
> 
> Please check https://www.debian.org/international/l10n/po/id
> and search for libreoffice. You will see many files highlighted
> in red, for example translations/source/an/dictionaries/id.po.
> They are in the wrong 'category'. Those files are supposed to
> be translated into other languages, not into Indonesian.
> 
> Using the specific example above, that id.po file needs to be
> translated into 'an' language.
> 
> Can someone do something about it?

The reason for this, that libreoffice's directory structure/file naming
concept does not work well with the mechanism in webwml/international/l10n
to find po files in packages.

Me personally, I'm lacking perl/programming skills to change the relevant
code. The only thing I found is, there is a mechanism to skip packages
completely from this lists.
I tested that here locally, and it works fine here (aka: libreoffice no
longer gets listed on those pages).
Maybe that's better than nothing?

A patch is attached.


Holger


-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076
diff --git a/english/international/l10n/scripts/gen-files.pl b/english/international/l10n/scripts/gen-files.pl
index cb4161fa753..b4d7cbc671d 100755
--- a/english/international/l10n/scripts/gen-files.pl
+++ b/english/international/l10n/scripts/gen-files.pl
@@ -66,7 +66,11 @@ my $root = 'https://i18n.debian.org/material/';
 my $langfile = $opt_l.'/data/langs';
 #   These packages use a RFC1766 naming convention for language codes
 #   which makes output page look ugly.  Do not display them until a
-#   better solution is found
+#   better solution is found.
+#
+#   Also skip other packages, since they produce invalid entries for
+#   po files.
+#
 #   This list is defined in list-languages.pl and gen-files.pl
 my %skip_po = (
         abiword         => 1,
@@ -79,6 +83,7 @@ my %skip_po = (
         nag             => 1,
         'sork-passwd'   => 1,
         turba           => 1,
+        libreoffice     => 1,
 );
 my @po_langs = ();
 my @p4_langs = ();
diff --git a/english/international/l10n/scripts/list-languages.pl b/english/international/l10n/scripts/list-languages.pl
index 784448168d0..20724bebd88 100755
--- a/english/international/l10n/scripts/list-languages.pl
+++ b/english/international/l10n/scripts/list-languages.pl
@@ -20,7 +20,11 @@ my $langs = {
 
 #   These packages use a RFC1766 naming convention for language codes
 #   which makes output page look ugly.  Do not display them until a
-#   better solution is found
+#   better solution is found.
+#
+#   Also skip other packages, since they produce invalid entries for
+#   po files.
+#
 #   This list is defined in list-languages.pl and gen-files.pl
 my %skip_po = (
         abiword         => 1,
@@ -33,6 +37,7 @@ my %skip_po = (
         nag             => 1,
         'sork-passwd'   => 1,
         turba           => 1,
+        libreoffice     => 1,
 );
 
 my ($pkg, $line, $file, $lang);

Reply to: