OpenShot Video Editor  2.0.0
Namespaces | Variables
test_translations.py File Reference

This file verifies all translations are correctly formatted and have the correct # of string replacements. More...

Go to the source code of this file.

Namespaces

 test_translations
 

Variables

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

Detailed Description

This file verifies all translations are correctly formatted and have the correct # of string replacements.

Author
Jonathan Thomas jonat.nosp@m.han@.nosp@m.opens.nosp@m.hot..nosp@m.org

LICENSE

Copyright (c) 2008-2016 OpenShot Studios, LLC (http://www.openshotstudios.com). This file is part of OpenShot Video Editor (http://www.openshot.org), an open-source project dedicated to delivering high quality video editing and animation solutions to the world.

OpenShot Video Editor is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

OpenShot Video Editor is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with OpenShot Library. If not, see http://www.gnu.org/licenses/.

Definition in file test_translations.py.