Python-i18n: apply C++-coding style

This commit is contained in:
Adriaan de Groot 2017-08-21 12:36:04 -04:00
parent 538c59adb9
commit 5dc70ac261

View File

@ -258,11 +258,9 @@ _add_localedirs(QStringList &pathList, const QString &candidate)
{ {
pathList.prepend( candidate ); pathList.prepend( candidate );
if ( QDir( candidate ).cd( "lang" ) ) if ( QDir( candidate ).cd( "lang" ) )
{
pathList.prepend( candidate + "/lang" ); pathList.prepend( candidate + "/lang" );
} }
} }
}
bp::object bp::object
gettext_path() gettext_path()
@ -276,10 +274,8 @@ gettext_path()
{ {
QDir d( extra ); QDir d( extra );
if ( d.cd( "../share/locale" ) ) // Often /usr/local/bin/../share/locale -> /usr/local/share/locale if ( d.cd( "../share/locale" ) ) // Often /usr/local/bin/../share/locale -> /usr/local/share/locale
{
_add_localedirs( candidatePaths, d.canonicalPath() ); _add_localedirs( candidatePaths, d.canonicalPath() );
} }
}
_add_localedirs( candidatePaths, QDir().canonicalPath() ); // . _add_localedirs( candidatePaths, QDir().canonicalPath() ); // .
cDebug() << "Standard paths" << candidatePaths; cDebug() << "Standard paths" << candidatePaths;