Rapid Database Application Development
|
||
Development |
"Microsoft Access for Linux"
|
|
KDE4 TODOs: Paths in i18n stringsstarted: july 2006 by jstaniek, staniek@kde.org status: RFC, most of the topic already discussed on #kde4-devel with caslav.ilic@gmx.net (KLocalizedString author). target audience: kde-core-devel, kde-usability The ProblemIn many cases application authors need to display (relative or absolute) paths within the i18n'd messages. The path could be obtained from QDir, QFile, QFileInfo, KURL, and similar classes. In KDE3 the displaying was perfored by converting the object's path to QString and then using .arg(string) e.g. for "%1" argument of a message. Example string: "Unable to open database file "xy/my databases/planning database.db"."
The Proposal1. Allow KURL, QFile, QDir overloads for KLocalizedString::subs(), making them acceptable in i18n() and ki18n(). Thus we'll be able to call QDir::convertSeparators() internally and add highlight the resulting path string according to KDE4 HIG. In the mockup below, the paths is additionally enclosed in <b></b> tags (using " " is an option if we agree to pick this one instead).
Posible problem: we may want to display the mesage with path to a log file or std(out|err}. The KLocalizedString class should know it's the case, so there may be aditional flag for doing this (i.e. displaying the path using " " characters only -- not as frequently used, so the default could be the rich text output). 2. Extension: allow to pass KLocalizedString object directly to KMessageBox, so it can handle path arguments in a specific way. |
|||||
|