Unit tests for new code upto mid term.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Fix coding style and code duplication.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Code refactor.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Remove unused code.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
Merge pull request #1282 from ashutoshdhundhara/unit_tests

Unit tests for new code upto mid term.
Translated using Weblate (Azerbaijani)

Currently translated at 40.5% (1175 of 2896)
Merge remote-tracking branch 'origin/master'
Fix typos

Signed-off-by: Marc Delisle <marc@infomarc.info>
Translated using Weblate (Azerbaijani)

Currently translated at 41.7% (1209 of 2896)
Translated using Weblate (Turkish)

Currently translated at 99.9% (2895 of 2896)
Merge remote-tracking branch 'origin/master'
Update po files
Translated using Weblate (Spanish)

Currently translated at 100.0% (2906 of 2906)
Translated using Weblate (Slovenian)

Currently translated at 100.0% (2906 of 2906)
Allow better translations with positional parameters

Signed-off-by: Marc Delisle <marc@infomarc.info>
Fix typos

Signed-off-by: Marc Delisle <marc@infomarc.info>
Translated using Weblate (French)

Currently translated at 99.9% (2905 of 2906)
Translated using Weblate (Turkish)

Currently translated at 99.7% (2900 of 2906)
Merge remote-tracking branch 'origin/master'
Update po files
Clarify message

Signed-off-by: Marc Delisle <marc@infomarc.info>
Fix test

Signed-off-by: Marc Delisle <marc@infomarc.info>
Update po files