These are chat archives for translate/dev

6th
Oct 2017
Miklós Márton
@martonmiklos
Oct 06 2017 12:51
Hi guys!
I am trying to import an xliff file generate by XCode
phlax
@phlax
Oct 06 2017 12:52
hi @martonmiklos
Miklós Márton
@martonmiklos
Oct 06 2017 12:52
we have added storyboards since the last pootle import so we have different files sections
and now I got the following exception:
phlax
@phlax
Oct 06 2017 12:53
you can paste here
Miklós Márton
@martonmiklos
Oct 06 2017 12:53
when running pootle update_stores --project=SeedView -v 3
phlax
@phlax
Oct 06 2017 12:53
use "```" on separate lines before/after
Miklós Márton
@martonmiklos
Oct 06 2017 12:54
```
[2017-10-06T12:38:24]   system  UR      hu      58852   /hu/SeedView/hu.xliff   # 100
[2017-10-06T12:38:24]   system  UR      hu      58853   /hu/SeedView/hu.xliff   # Gound Speed Radar Calibration
[2017-10-06T12:38:24]   system  UR      hu      58854   /hu/SeedView/hu.xliff   # Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
[2017-10-06T12:38:24]   system  UR      hu      58855   /hu/SeedView/hu.xliff   # Sensitivity Calibration
[2017-10-06T12:38:24]   system  UR      hu      58856   /hu/SeedView/hu.xliff   # Speed:
[2017-10-06T12:38:24]   system  UR      hu      58857   /hu/SeedView/hu.xliff   # N/A
[2017-10-06T12:38:24]   system  UR      hu      58858   /hu/SeedView/hu.xliff   # Ground Speed Sensor Calibration Finish
[2017-10-06T12:38:25]   system  UR      hu      58859   /hu/SeedView/hu.xliff   # SENSOR SENSITIVITY CALIBRATION
[2017-10-06T12:38:25]   system  UR      hu      58860   /hu/SeedView/hu.xliff   # Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
[2017-10-06T12:38:25]   system  UR      hu      58861   /hu/SeedView/hu.xliff   # Sensitivity Calibration
[2017-10-06T12:38:25]   system  UR      hu      58862   /hu/SeedView/hu.xliff   # Accept
[2017-10-06T12:38:25]   system  UR      hu      58863   /hu/SeedView/hu.xliff   # pulses
[2017-10-06T12:38:25]   system  UR      hu      58864   /hu/SeedView/hu.xliff   # Auto scroll
[2017-10-06T12:38:25]   system  UR      hu      58865   /hu/SeedView/hu.xliff   # Selected dh:
[2017-10-06T12:38:25]   system  UR      hu      58866   /hu/SeedView/hu.xliff   # Time:
[2017-10-06T12:38:25]   system  UR      hu      58867   /hu/SeedView/hu.xliff   # Set Factory Default
[2017-10-06T12:38:25]   system  UR      hu      58868   /hu/SeedView/hu.xliff   # Slow
[2017-10-06T12:38:25]   system  UR      hu      58869   /hu/SeedView/hu.xliff   # kg/ha
[2017-10-06T12:38:25]   system  UR      hu      58870   /hu/SeedView/hu.xliff   # Wheel signal
[2017-10-06T12:38:25]   system  UR      hu      58871   /hu/SeedView/hu.xliff   # Hopper 1 - Sensor Calibration
[2017-10-06T12:38:25]   system  UR      hu      58872   /hu/SeedView/hu.xliff   # Stop
[2017-10-06T12:38:25]   system  UR      hu      58873   /hu/SeedView/hu.xliff   # pulse
[2017-10-06T12:38:25]   system  UR      hu      58874   /hu/SeedView/hu.xliff   # Target speed
[2017-10-06T12:38:25]   system  UR      hu      58875   /hu/SeedView/hu.xliff   # Selected dh outlet:
[2017-10-06T12:38:25]   system  UR      hu      58876   /hu/SeedView/hu.xliff   # Speed
[2017-10-06T12:38:25]   system  UR      hu      58877   /hu/SeedView/hu.xliff   # Sensitivity Calibration IntelliSenseedTM
[2017-10-06T12:38:25]   system  UR      hu      58878   /hu/SeedView/hu.xliff   # Pulses
[2017-10-06T12:38:25]   system  UR      hu      58879   /hu/SeedView/hu.xliff   # 0
2017-10-06 12:38:25,555 ERROR Failed to run update_stores over /hu/SeedView/hu.xliff
Traceback (most recent call last):
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/__init__.py", line 87, in do_translation_project
    self.handle_store(store, **options)
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/update_stores.py", line 63, in handle_store
    store.update_from_disk(overwrite=options["overwrite
```
well it did not went well
so I think some kind of empty tag or whatever causing it
any idea how to debug this?
I am running Pootle 2.7.6
phlax
@phlax
Oct 06 2017 12:55
[2017-10-06T12:38:24]   system  UR      hu      58852   /hu/SeedView/hu.xliff   # 100
[2017-10-06T12:38:24]   system  UR      hu      58853   /hu/SeedView/hu.xliff   # Gound Speed Radar Calibration
[2017-10-06T12:38:24]   system  UR      hu      58854   /hu/SeedView/hu.xliff   # Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
[2017-10-06T12:38:24]   system  UR      hu      58855   /hu/SeedView/hu.xliff   # Sensitivity Calibration
[2017-10-06T12:38:24]   system  UR      hu      58856   /hu/SeedView/hu.xliff   # Speed:
[2017-10-06T12:38:24]   system  UR      hu      58857   /hu/SeedView/hu.xliff   # N/A
[2017-10-06T12:38:24]   system  UR      hu      58858   /hu/SeedView/hu.xliff   # Ground Speed Sensor Calibration Finish
[2017-10-06T12:38:25]   system  UR      hu      58859   /hu/SeedView/hu.xliff   # SENSOR SENSITIVITY CALIBRATION
[2017-10-06T12:38:25]   system  UR      hu      58860   /hu/SeedView/hu.xliff   # Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
[2017-10-06T12:38:25]   system  UR      hu      58861   /hu/SeedView/hu.xliff   # Sensitivity Calibration
[2017-10-06T12:38:25]   system  UR      hu      58862   /hu/SeedView/hu.xliff   # Accept
[2017-10-06T12:38:25]   system  UR      hu      58863   /hu/SeedView/hu.xliff   # pulses
[2017-10-06T12:38:25]   system  UR      hu      58864   /hu/SeedView/hu.xliff   # Auto scroll
[2017-10-06T12:38:25]   system  UR      hu      58865   /hu/SeedView/hu.xliff   # Selected dh:
[2017-10-06T12:38:25]   system  UR      hu      58866   /hu/SeedView/hu.xliff   # Time:
[2017-10-06T12:38:25]   system  UR      hu      58867   /hu/SeedView/hu.xliff   # Set Factory Default
[2017-10-06T12:38:25]   system  UR      hu      58868   /hu/SeedView/hu.xliff   # Slow
[2017-10-06T12:38:25]   system  UR      hu      58869   /hu/SeedView/hu.xliff   # kg/ha
[2017-10-06T12:38:25]   system  UR      hu      58870   /hu/SeedView/hu.xliff   # Wheel signal
[2017-10-06T12:38:25]   system  UR      hu      58871   /hu/SeedView/hu.xliff   # Hopper 1 - Sensor Calibration
[2017-10-06T12:38:25]   system  UR      hu      58872   /hu/SeedView/hu.xliff   # Stop
[2017-10-06T12:38:25]   system  UR      hu      58873   /hu/SeedView/hu.xliff   # pulse
[2017-10-06T12:38:25]   system  UR      hu      58874   /hu/SeedView/hu.xliff   # Target speed
[2017-10-06T12:38:25]   system  UR      hu      58875   /hu/SeedView/hu.xliff   # Selected dh outlet:
[2017-10-06T12:38:25]   system  UR      hu      58876   /hu/SeedView/hu.xliff   # Speed
[2017-10-06T12:38:25]   system  UR      hu      58877   /hu/SeedView/hu.xliff   # Sensitivity Calibration IntelliSenseedTM
[2017-10-06T12:38:25]   system  UR      hu      58878   /hu/SeedView/hu.xliff   # Pulses
[2017-10-06T12:38:25]   system  UR      hu      58879   /hu/SeedView/hu.xliff   # 0
2017-10-06 12:38:25,555 ERROR Failed to run update_stores over /hu/SeedView/hu.xliff
Traceback (most recent call last):
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/__init__.py", line 87, in do_translation_project
    self.handle_store(store, **options)
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/update_stores.py", line 63, in handle_store
    store.update_from_disk(overwrite=options["o
Miklós Márton
@martonmiklos
Oct 06 2017 12:56
ahaa
cool
phlax
@phlax
Oct 06 2017 12:56
seems to have truncated it still
Miklós Márton
@martonmiklos
Oct 06 2017 12:56
gitter maxed out my awesomemeter
phlax
@phlax
Oct 06 2017 12:56
8)
Miklós Márton
@martonmiklos
Oct 06 2017 12:56
I can paste the whole if necessary
phlax
@phlax
Oct 06 2017 12:56
dont worry
[2017-10-06T12:38:25]   system  UR      hu      58874   /hu/SeedView/hu.xliff   # Target speed
[2017-10-06T12:38:25]   system  UR      hu      58875   /hu/SeedView/hu.xliff   # Selected dh outlet:
[2017-10-06T12:38:25]   system  UR      hu      58876   /hu/SeedView/hu.xliff   # Speed
[2017-10-06T12:38:25]   system  UR      hu      58877   /hu/SeedView/hu.xliff   # Sensitivity Calibration IntelliSenseedTM
[2017-10-06T12:38:25]   system  UR      hu      58878   /hu/SeedView/hu.xliff   # Pulses
[2017-10-06T12:38:25]   system  UR      hu      58879   /hu/SeedView/hu.xliff   # 0
2017-10-06 12:38:25,555 ERROR Failed to run update_stores over /hu/SeedView/hu.xliff
Traceback (most recent call last):
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/__init__.py", line 87, in do_translation_project
    self.handle_store(store, **options)
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/update_stores.py", line 63, in handle_store
    store.update_from_disk(overwrite=options["overwrite"])
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py", line 1833, in update_from_disk
    store_revision=store_revision,
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py", line 1769, in update
    resolve_conflict)
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py", line 1812, in update_from_diff
    resolve_conflict=resolve_conflict))
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py", line 1670, in update_units
    created) = unit.add_suggestion(newunit.target, user)
  File "/home/mm/dev/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py", line 1134, in add_suggestion
    if not filter(None, translation):
TypeError: 'NoneType' object is not iterable
2017-10-06 12:38:25,557 INFO All done for update_stores in 0:00:05.833304
first thing to say is that xliff support is a little patchy
Miklós Márton
@martonmiklos
Oct 06 2017 12:58
yeah I have been using some ruby script to generate back to the XCode format :)
phlax
@phlax
Oct 06 2017 13:01
not sure what is causing this tbh
Miklós Márton
@martonmiklos
Oct 06 2017 13:01
well I have added a
        if translation is None:
            return (None, False)
and it bypasses the problem
phlax
@phlax
Oct 06 2017 13:02
we improved (a little) xliff support in 2.8/2.9
Miklós Márton
@martonmiklos
Oct 06 2017 13:02
yeah I am planning to upgrade
I will retest once upgraded and file an Issue if the problem still present
phlax
@phlax
Oct 06 2017 13:03
great
i can help debug, but reluctant with old version
Miklós Márton
@martonmiklos
Oct 06 2017 13:03
or I might fire up an instance from the latest version to see if it is affected
of course I understand
anyway thank you for the support and your time!
have a great day!