Ignore:
Timestamp:
Mar 15, 2012, 5:14:10 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer 0.7.1: vendor update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/paths.cpp

    r118 r121  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
     2    Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    103103}
    104104
    105 QString Paths::doc(QString file, QString locale) {
     105QString Paths::doc(QString file, QString locale, bool english_fallback) {
    106106        if (locale.isEmpty()) {
    107107                locale = QLocale::system().name();
     
    119119        }
    120120
    121         f = docPath() + "/en/" + file;
    122         return f;
     121        if (english_fallback) {
     122                f = docPath() + "/en/" + file;
     123                return f;
     124        }
     125
     126        return QString::null;
    123127}
    124128
     
    137141                const char * XDG_CONFIG_HOME = getenv("XDG_CONFIG_HOME");
    138142                if (XDG_CONFIG_HOME!=NULL) {
    139                         qDebug("Paths::configPath: XDG_CONFIG_HOME: %s", XDG_CONFIG_HOME);
     143                        /* qDebug("Paths::configPath: XDG_CONFIG_HOME: %s", XDG_CONFIG_HOME); */
    140144                        return QString(XDG_CONFIG_HOME) + "/smplayer";
    141145                }
Note: See TracChangeset for help on using the changeset viewer.