• some libreoffice files need special treatment

    From Andika Triwidada@21:1/5 to All on Tue Nov 21 05:40:01 2023
    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?

    Thank you!

    (other affected language: https://www.debian.org/international/l10n/po/es, maybe more, I haven't check every languages)


    Regards,
    Andika

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to Andika Triwidada on Sat Jan 6 19:40:01 2024
    This is a multi-part message in MIME format.

    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/interna
  • From Holger Wansing@21:1/5 to victory on Sun Jan 7 13:10:01 2024
    Hi,

    victory <victory.deb@gmail.com> wrote (Sun, 7 Jan 2024 12:44:52 +0900):
    On 2024/01/07 3:36, Holger Wansing wrote:
    Andika Triwidada <andika@gmail.com> wrote (Tue, 21 Nov 2023 11:38:36 +0700):
    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.
    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.

    does it use a data file created by dl10n-check?

    Yes, apparently 1l10n-data (in webmaster's cron repo) pulls data from https://i18n.debian.org/material/data/unstable.gz,
    which might be created by dl10n-check calls.
    But that's happening on tye.debian.org machine, where I lack permission
    to login. So I'm not exactly sure what's happening there, and therefore
    I'm unable to change anything on that topic (besides of lacking Perl programming skills).


    Holger



    if so, you can add stanza for ooo in process_po_file sub like:
    --
    if ($lang eq "" && $file =~
    m,libreoffice/translations/source/$regexp_for_lang_code/,o){
    $bad_lang = $1;
    if (is_lang($bad_lang)) {
    $lang = $bad_lang;
    $bad_lang = "";
    }
    }
    --
    note: currently line 690 catches it so you need to cut-in before it

    --
    victory



    --
    Holger Wansing <hwansing@mailbox.org>
    PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to All on Fri Jan 19 22:50:01 2024
    Hi,

    I have now filed a merge request [1] against dl10n, to remove libreoffice
    from l10n material on i18n.debian.org, to get this fixed.


    Holger

    [1] https://salsa.debian.org/l10n-team/dl10n/-/merge_requests/7


    --
    Holger Wansing <hwansing@mailbox.org>
    PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Wansing@21:1/5 to All on Thu Jan 25 18:20:01 2024
    Am 20. Januar 2024 01:10:37 MEZ schrieb Andika Triwidada <andika@gmail.com>: >On Sat, Jan 20, 2024, 04:40 Holger Wansing <hwansing@mailbox.org> wrote:

    Hi,

    I have now filed a merge request [1] against dl10n, to remove libreoffice
    from l10n material on i18n.debian.org, to get this fixed.


    Holger

    [1] https://salsa.debian.org/l10n-team/dl10n/-/merge_requests/7


    --
    Holger Wansing <hwansing@mailbox.org>
    PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076


    Thank you

    It's now fixed.
    Look at
    <https://www.debian.org/international/l10n/po/id>
    for example...


    Holger



    --
    Sent from /e/ OS on Fairphone3

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)