Changes between Initial Version and Version 2 of Ticket #29853


Ignore:
Timestamp:
Oct 15, 2018, 8:36:10 PM (6 years ago)
Author:
Mohamed Moustafa
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29853

    • Property Easy pickings set
  • Ticket #29853 – Description

    initial v2  
    1212doesn't check the existence of {{{value[1]}}} or {{{value[2]}}} before attempting to access them if {{{value}}} itself is defined. Therefore will return undefined if user attempts to access plural translation, when none is defined.
    1313
    14 - If user provides no translations at all for singular or plural strings it will return formatted un-translated string (Works as expected)
    15 - If user provides translations for singular and plural strings it will return formatted translated string (Works as expected)
    16 - If user provides singular translation BUT no plural translation it will return undefined (Unexpected and extremely difficult to debug)
     14- If user provides no translations at all for singular or plural strings it will return formatted **un-translated** string (Works as expected)
     15- If user provides translations for singular and plural strings it will return formatted **translated** string (Works as expected)
     16- If user provides singular translation BUT no plural translation it will return **undefined** (Unexpected and extremely difficult to debug)
    1717
    1818This function should rather fallback to singular translation OR use un-translated plural string in cases where a singular translation is provided but no plural translation is provided.
Back to Top