Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gaia Master for Danish extraction fails, leading to corrupt php cache file #447

Closed
pascalchevrel opened this issue Apr 9, 2015 · 4 comments
Assignees
Labels

Comments

@pascalchevrel
Copy link
Member

file generated:

<?php
$tmx = [
@pascalchevrel pascalchevrel self-assigned this Apr 9, 2015
@pascalchevrel
Copy link
Member Author

Found the bug, it is not in our code, there is a "Windows1252" encoded properties file in the Gaia repository for Gaia that makes the Silme library stop the python script, so this needs to be fixed by the localizer.

I am going to fix tmxmaker.py to print an error message we will see in the cron job message and to close the php file when it happens

@flodolo
Copy link
Collaborator

flodolo commented Apr 9, 2015

That's weird, it seems to work for me locally.

-rw-r--r--  1 flodolo flodolo 470653 Apr  8 14:04 cache_da.php
-rw-r--r--  1 flodolo flodolo 461834 Apr  8 14:04 cache_en-US.php
-rw-r--r--  1 flodolo flodolo 933547 Jun 10  2014 memoire_en-US_da.tmx

pascalchevrel added a commit to pascalchevrel/transvision that referenced this issue Apr 9, 2015
- If Silme can't extract data from a repo, print an error message and close the php file created
- Remove dead code in tmxmaker.py
@pascalchevrel
Copy link
Member Author

Jorgen fixed the encoding issue last night so you probably have a fresher hg checkout:
https://hg.mozilla.org/gaia-l10n/da/rev/3f8842dd4407

I had the same bug locally with hg repos a couple days old

@flodolo
Copy link
Collaborator

flodolo commented Apr 9, 2015

OK, makes sense then (I did update 'da' before trying).

pascalchevrel added a commit to pascalchevrel/transvision that referenced this issue Apr 9, 2015
- If Silme can't extract data from a folder:
  1. print an error message
  2. skip the folder
- Remove dead code in tmxmaker.py
pascalchevrel added a commit that referenced this issue Apr 9, 2015
Issue #447: Fix Danish extraction of data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants