Search
Forums
Kiwitrees on Twitter
    Tags

    3.3.0, blocks, individual resource, installation, blank, 2.0, beta, cousins, login upgrade, zend, translation, research tasks, save settings, survey, translate, 3.2.0, Require visitor authentication, children, media_links, IE11, living, dropbox. token, widget, Advanced search, php 5.6, css, Histo, icons, 5.6, redirect, duplicates, styles, age, DSGVO, close, repo, source, autocomplete, version, Search and replace, husband, json, server, block, editor, birth, advanced, fatal error, style, clippings cart, person, HTML block, xmas, kiwitrees 2.0.2, formatting, mobile, GDBR, add_asso_facts, BURI, 3.0.0 widgets

    #4422
    kiwi
    kiwi
    Keymaster

    1642 posts

    What a strange dependency!

    Actually not so strange once I thought it through carefully.

    In our translations we often embed variables for things like number counts. For example, there is a phrase “Total individuals: xxx” where xxx is a number. The translatable text is therefore WT_I18N::translate(‘Total individuals: %s’, $count_indis) . Here the result of the calculated variable $count_indis is inserted in the text at the position of ‘%s’. Doing it like this ensures any language can work with the same variable even if its position in the sentence needs to change. But it is essential that ALL languages include the ‘%s” variable. In the en_GB file the ‘%s’ variable had been accidentally missed from the translation. Hence the error message “Too few arguments”. It was looking for the variable in the translation and it wan’t there.

    Nigel
    My personal kiwitrees site is www.our-families.info