OpenShot Video Editor  2.0.0
Variables
test_translations Namespace Reference

Variables

 all_strings = re.findall('^msgid \"(.*)\"', POT_source, re.MULTILINE)
 
 app = QCoreApplication(sys.argv)
 
 folder_path = os.path.join(locale_path, language_code)
 
string formatted_locale_name = '%s/LC_MESSAGES/OpenShot' % (language_code)
 
 locale_path = os.path.dirname(os.path.abspath(__file__))
 
 POT_source = open(os.path.join(locale_path, 'OpenShot', 'OpenShot.pot')).read()
 
 success = translator.load(formatted_locale_name, locale_path)
 
 translated_string = app.translate("", source_string)
 
 translator = QTranslator(app)
 

Variable Documentation

◆ all_strings

test_translations.all_strings = re.findall('^msgid \"(.*)\"', POT_source, re.MULTILINE)

Definition at line 43 of file test_translations.py.

◆ app

test_translations.app = QCoreApplication(sys.argv)

Definition at line 39 of file test_translations.py.

◆ folder_path

test_translations.folder_path = os.path.join(locale_path, language_code)

Definition at line 47 of file test_translations.py.

◆ formatted_locale_name

string test_translations.formatted_locale_name = '%s/LC_MESSAGES/OpenShot' % (language_code)

Definition at line 54 of file test_translations.py.

◆ locale_path

test_translations.locale_path = os.path.dirname(os.path.abspath(__file__))

Definition at line 36 of file test_translations.py.

◆ POT_source

test_translations.POT_source = open(os.path.join(locale_path, 'OpenShot', 'OpenShot.pot')).read()

Definition at line 42 of file test_translations.py.

◆ success

test_translations.success = translator.load(formatted_locale_name, locale_path)

Definition at line 55 of file test_translations.py.

◆ translated_string

test_translations.translated_string = app.translate("", source_string)

Definition at line 61 of file test_translations.py.

◆ translator

test_translations.translator = QTranslator(app)

Definition at line 50 of file test_translations.py.