check_trans.py: Use absolute path in order to print it correctly (otherwise it wouldn't print the plugin name).

This commit is contained in:
Valentin Lorentz 2013-03-02 14:26:31 +01:00
parent 2cfe1f9d78
commit 8a9c44bc89

View File

@ -31,7 +31,7 @@ def checkPlugin(pluginPath):
if not translation.endswith('.po'): if not translation.endswith('.po'):
continue continue
pot.seek(0) pot.seek(0)
potPath = os.path.join(localePath, translation) potPath = os.path.join(os.getcwd(), 'locales', translation)
po = open(potPath) po = open(potPath)
if checkTranslation(pot, po): if checkTranslation(pot, po):
print 'OK: ' + potPath print 'OK: ' + potPath