Public bug reported:

Zanata 3.9.6 changes the format of translation stats.

The new format is like:

    {                                                                           
                                                                                
                                          
        "username": "amotoki",                                                  
                                                                                
                                          
        "contributions": [                                                      
                                                                                
                                          
            {                                                                   
                                                                                
                                          
                "locale": "ja",                                                 
                                                                                
                                          
                "translation-stats": {                                          
                                                                                
                                          
                    "translated": 7360,                                         
                                                                                
                                          
                    "needReview": 0,                                            
                                                                                
                                          
                    "approved": 152,                                            
                                                                                
                                          
                    "rejected": 0                                               
                                                                                
                                          
                },                                                              
                                                                                
                                          
                "review-stats": {                                               
                                                                                
                                          
                    "approved": 220,                                            
                                                                                
                                          
                    "rejected": 0                                               
                                                                                
                                          
                }                                                               
                                                                                
                                          
            }                                                                   
                                                                                
                                          
        ]                                                                       
                                                                                
                                          
    }                                                                           
                                                                                
                                          

Previously, the format was:

  {"amotoki":
    [
      {"ja":
          {"translated": 10,
            "approved": 0,
            "rejected": 0
           }
      }
    ]
  }

** Affects: openstack-i18n
     Importance: High
     Assignee: Akihiro Motoki (amotoki)
         Status: New

** Changed in: ubuntu-translations
     Assignee: (unassigned) => Akihiro Motoki (amotoki)

** Project changed: ubuntu-translations => openstack-i18n

** Changed in: openstack-i18n
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Translations Coordinators, which is subscribed to Ubuntu Translations.
Matching subscriptions: Ubuntu Translations bug mail
https://bugs.launchpad.net/bugs/1670638

Title:
  zanata_stat.py does not work with new Zanata (3.9.6)

Status in openstack i18n:
  New

Bug description:
  Zanata 3.9.6 changes the format of translation stats.

  The new format is like:

      {                                                                         
                                                                                
                                            
          "username": "amotoki",                                                
                                                                                
                                            
          "contributions": [                                                    
                                                                                
                                            
              {                                                                 
                                                                                
                                            
                  "locale": "ja",                                               
                                                                                
                                            
                  "translation-stats": {                                        
                                                                                
                                            
                      "translated": 7360,                                       
                                                                                
                                            
                      "needReview": 0,                                          
                                                                                
                                            
                      "approved": 152,                                          
                                                                                
                                            
                      "rejected": 0                                             
                                                                                
                                            
                  },                                                            
                                                                                
                                            
                  "review-stats": {                                             
                                                                                
                                            
                      "approved": 220,                                          
                                                                                
                                            
                      "rejected": 0                                             
                                                                                
                                            
                  }                                                             
                                                                                
                                            
              }                                                                 
                                                                                
                                            
          ]                                                                     
                                                                                
                                            
      }                                                                         
                                                                                
                                            

  Previously, the format was:

    {"amotoki":
      [
        {"ja":
            {"translated": 10,
              "approved": 0,
              "rejected": 0
             }
        }
      ]
    }

To manage notifications about this bug go to:
https://bugs.launchpad.net/openstack-i18n/+bug/1670638/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-translations-coordinators
Post to     : ubuntu-translations-coordinators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-translations-coordinators
More help   : https://help.launchpad.net/ListHelp

Reply via email to