Skip to content

Hard-coded language strings #2

@volodymyrdovhan

Description

@volodymyrdovhan

Hello,
User-facing text is hard-coded in the source code instead of using Moodle's string API (get_string()). This prevents translation.

Documentation:

Code excerpts:

  • File: report.php
120: echo html_writer::start_div('card mb-4');
121: echo html_writer::start_div('card-body');
  • File: report.php
127: echo html_writer::start_div('form-group mr-3 mb-2');
128: echo html_writer::label(get_string('user') . ': ', 'userid', true, ['class' => 'mr-2']);
  • File: report.php
225: if (empty($signals)) {
226:     echo html_writer::div(get_string('report:nosignals', 'local_agentdetect'), 'alert alert-info');
227: } else {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions