•  
      request #14656 Bad usage of Language->getText() in docman
    Infos
    #14656
    Nicolas Terray (nterray)
    2020-06-12 12:55
    2020-03-07 08:05
    15906
    Details
    Bad usage of Language->getText() in docman

    This prevents automation of tab2gettext.

    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_Actions.class.php:269
    NOTICE: ->getText('plugin_docman', 'info_create_' . $_action_type)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_Item.class.php:79
    NOTICE: ->getText('plugin_docman', $title)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_ReportHtml.class.php:205
    NOTICE: ->getText('plugin_docman', 'filters_advsearch_' . $advSearchToggle, …)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_MetadataComparator.class.php:61
    NOTICE: ->getText('plugin_docman', 'admin_md_import_param_' . PhpParser\Node\Expr\MethodCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_MetadataComparator.class.php:64
    NOTICE: ->getText('plugin_docman', 'admin_md_import_param_' . PhpParser\Node\Expr\MethodCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_MetadataComparator.class.php:67
    NOTICE: ->getText('plugin_docman', 'admin_md_import_param_' . PhpParser\Node\Expr\MethodCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_MetadataComparator.class.php:134
    NOTICE: ->getText('plugin_docman', 'admin_md_import_tbl_status_' . $rowStyle)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_MetadataComparator.class.php:283
    NOTICE: ->getText('plugin_docman', 'admin_md_import_tbl_status_' . $dstMdStatus)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_MetadataHtml.class.php:173
    NOTICE: ->getText('plugin_docman', 'field_' . PhpParser\Node\Expr\MethodCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionAction
    s.class.php:53
    NOTICE: ->getText('plugin_docman', 'details_actions_move_cannotmove_' . $folder_or_document)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionAction
    s.class.php:55
    NOTICE: ->getText('plugin_docman', 'details_actions_move_canmove_' . $folder_or_document, …)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionAction
    s.class.php:72
    NOTICE: ->getText('plugin_docman', 'details_actions_cut_cannotcut_' . $folder_or_document)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionAction
    s.class.php:79
    NOTICE: ->getText('plugin_docman', 'details_actions_cut_cancut_' . $folder_or_document, …)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionAction
    s.class.php:91
    NOTICE: ->getText('plugin_docman', 'details_actions_copy_cancopy_' . $folder_or_document, …)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionAction
    s.class.php:98
    NOTICE: ->getText('plugin_docman', 'details_actions_delete_cannotdelete_' . $folder_or_document)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionAction
    s.class.php:100
    NOTICE: ->getText('plugin_docman', 'details_actions_delete_candelete_' . $folder_or_document, …)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_Browse.class.php:88
    NOTICE: ->getText('plugin_docman', 'view_' . $view)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_Browse.class.php:89
    NOTICE: ->getText('plugin_docman', 'view_' . $view)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionPaste.
    class.php:100
    NOTICE: ->getText('plugin_docman', 'details_actions_paste_from_' . PhpParser\Node\Expr\PropertyFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionStatis
    tics.class.php:75
    NOTICE: ->getText('plugin_docman', 'details_statistics_item_type_' . PhpParser\Node\Expr\FuncCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_Admin_View.class.php:33
    NOTICE: ->getText('plugin_docman', 'view_' . $view)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionDelete
    .class.php:53
    NOTICE: ->getText('plugin_docman', 'details_delete_warning_' . $folder_or_document, …)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    al.class.php:149
    NOTICE: ->getText('plugin_docman', 'details_approval_table_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    al.class.php:366
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    al.class.php:367
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    al.class.php:368
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    al.class.php:369
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    al.class.php:370
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    al.class.php:462
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . PhpParser\Node\Expr\MethodCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:147
    NOTICE: ->getText('plugin_docman', 'details_approval_table_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:148
    NOTICE: ->getText('plugin_docman', 'details_approval_table_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:152
    NOTICE: ->getText('plugin_docman', 'details_approval_table_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:153
    NOTICE: ->getText('plugin_docman', 'details_approval_table_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:189
    NOTICE: ->getText('plugin_docman', 'details_approval_notif_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:190
    NOTICE: ->getText('plugin_docman', 'details_approval_notif_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:191
    NOTICE: ->getText('plugin_docman', 'details_approval_notif_' . PhpParser\Node\Expr\ConstFetch)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ItemDetailsSectionApprov
    alCreate.class.php:196
    NOTICE: ->getText('plugin_docman', 'details_approval_notif_' . PhpParser\Node\Expr\MethodCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/view/Docman_View_ReportSettings.class.php
    :67
    NOTICE: ->getText('plugin_docman', 'report_scope_' . PhpParser\Node\Expr\MethodCall)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_Controller.class.php:120
    NOTICE: ->getText('plugin_docman', $key, …)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/Docman_FilterFactory.class.php:139
    NOTICE: ->getText('plugin_docman', 'filters_item_type_' . $type)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/ApprovalTable/Factory.class.php:203
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . $state)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/ApprovalTable/Factory.class.php:208
    NOTICE: ->getText('plugin_docman', 'details_approval_notif_' . $type)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/ApprovalTable/Reviewer/ReviewerFactory.cl
    ass.php:399
    NOTICE: ->getText('plugin_docman', 'approval_review_state_' . $approvalState)
    WARNING: Bad usage of getText in /home/nicolas/tuleap/plugins/docman/include/ApprovalTable/Reviewer/ReviewerFactory.cl
    ass.php:403
    NOTICE: ->getText('plugin_docman', 'details_approval_table_' . PhpParser\Node\Expr\ArrayDimFetch)
    INFO: done
    
    
    Translation / gettext / i18n
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Empty
    Closed
    2020-03-09
    Attachments
    Empty
    References

    Follow-ups