Package pology :: Package lang :: Package es :: Module compare_with_original

Module compare_with_original

Make some comparations between the translation and the original text.


Author: Javier Viñal <fjvinal@gmail.com>

License: GPLv3

Functions
 
test_if_empty_translation(msg, cat)
Compare the translation with the original text, testing if the translation is empty.
 
test_if_very_long_translation(msg, cat)
Compare the translation with the original text, testing if the transaled text is much longer than the original (As much twice with a correction for small text).
 
test_if_very_short_translation(msg, cat)
Compare the translation with the original text, testing if the transaled text is much shorter than the original.
 
test_if_not_translated(msg, cat)
Compare the translation with the original text, testing if the paragraph is not translated.
 
test_paired_new_lines(msg, cat)
Compare number of new lines between original and translated text.
 
test_paired_tabs(msg, cat)
Compare number of tabs between original and translated text.
Variables
  __package__ = 'pology.lang.es'
Function Details

test_if_empty_translation(msg, cat)

 

Compare the translation with the original text, testing if the translation is empty.

[type V4A hook].

Returns:
parts

test_if_very_long_translation(msg, cat)

 

Compare the translation with the original text, testing if the transaled text is much longer than the original (As much twice with a correction for small text).

[type V4A hook].

Returns:
parts

test_if_very_short_translation(msg, cat)

 

Compare the translation with the original text, testing if the transaled text is much shorter than the original.

[type V4A hook].

Returns:
parts

test_if_not_translated(msg, cat)

 

Compare the translation with the original text, testing if the paragraph is not translated.

[type V4A hook].

Returns:
parts

test_paired_new_lines(msg, cat)

 

Compare number of new lines between original and translated text.

[type V4A hook].

Returns:
parts

test_paired_tabs(msg, cat)

 

Compare number of tabs between original and translated text.

[type V4A hook].

Returns:
parts