Changes between Version 9 and Version 10 of Ticket #104


Ignore:
Timestamp:
08/17/2017 12:01:44 PM (3 years ago)
Author:
trev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #104 – Description

    v9 v10  
    55There is little point updating this script, we rather need something in Python which would be integrated with the build tools: 
    66 
    7 * We need to expand the JSON format for translations to include `translationOptional` and `maxLength` keys. 
     7* We need to expand the JSON format for translations to include optional `translationOptional` (boolean) and `maxLength` (integer) keys. 
    88* Our custom translation keys should be removed when building or uploading to Crowdin. The `maxLength` field should be converted to "Note: this cannot be longer than N characters" description when uploading to Crowdin. 
    99* The new `build.py checktranslations` command should load the locales and perform the following checks: 
     
    1212 * Make sure that all declared placeholders are present in all translations. 
    1313 * Warn on untranslated strings, except for strings marked with `translationOptional` key or en-* locales. While this check is prone to false positives, it is also a warning sign allowing to detect bad translations. 
    14  * Warn for overlong translations if `maxLength` is set for a translation 
     14 * Warn for overlong translations if `maxLength` is set for a translation.