Project

General

Profile

Feature #16449

Feature #10034: Translation web platform

Handle files without extensions in Weblate

Added by hefee 12 days ago. Updated 3 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
02/08/2019
Due date:
% Done:

0%

QA Check:
Ready for QA
Feature Branch:
https://salsa.debian.org/hefee/puppet-tails/tree/hefee/dev/translation-server
Type of work:
Sysadmin
Blueprint:
Starter:
Affected tool:

Description

Here we go - another round of changes for translations-server.

For some days, the cron job fails with:

Traceback (most recent call last):
  File "/var/lib/weblate/scripts/update-weblate-components.py", line 115, in <module>
    uwg.main(PATH, 'master', None, 'tails/master')
  File "/var/lib/weblate/scripts/update_weblate_git.py", line 392, in main
    if getLang(path) == DEFAULTLANG:
  File "/var/lib/weblate/scripts/update_weblate_git.py", line 56, in getLang
    *name, lang, _ = path.name.split(".")
ValueError: not enough values to unpack (expected at least 2, got 1)

I fixed that issue at hefee/dev/translation-server branch with 5abd5df9dcb1100e55841dcbfff6b7f42efb5a29 and added some more cleanups to that branch.

Please merge my changes.

History

#1 Updated by intrigeri 12 days ago

  • Subject changed from Handle files without extensions to Handle files without extensions in Weblate

(The "Subject" field is a shared namespace. Let's use a bit more specific subjects that make sense out of context :)

#2 Updated by hefee 3 days ago

@groente: ping - any ETA when you will able to care about merging this? I just want to plan, when I can start looking into translation-server again.

Also available in: Atom PDF