kalternatives-0.13/NEWS0000644000175000017500000000316611241103573014265 0ustar danieldaniel0.13 (2009-08-13) [Pino] * Slightly more robust alternative parsing * Various fixes in alternative switching 0.12 (2009-06-24) [Pino] * Ported to KDE 4 * Converted into a System Settings module * Improved the "Add Alternative" dialog * Note: no translations with this release (mostly a testing release); they will come with the next release 0.11 [Mario] * Bugfix, modification of interface, add/remove alternatives, search the description on rpm/deb package, show alternative's properties 0.10 [Juanjo] * First C++ version for user convenience. No new features but a lot more lines of code ;) Also the installation procedure will be not standart autotools. 0.9.1 [Juanjo] * Desktop file and desktop file installation 0.9 [Juanjo] * Started KDEification. Still lacking some things 0.8 [Juanjo] * Mandrake support 0.7 [Juanjo] * Added "Expand All" and "Collapse All" buttons * Now all tree items are collapsed at program init 0.6 * Fixes 0.5 * Corrected some typos in the README (thanks Martin Atukunda) * Corrected a bug where kalternatives didn't exited in some cases where it should. 0.4 * Bug fixed. * Unhadled exceptions should now be shown in a dialog to the user so he can report them to me. 0.3 * Since the program is so simple, I've joined the two (small) source files in one. * Non-root user checking and warnings. * Some documentation. 0.2 * Some method documentation * Implemented Aaron's suggestions. * Refactor of some code (now is a lot simpler) 0.1 * Now closing the window using the window "close" button will also ask for confirmation if there are still changes pending. * Some small fixes kalternatives-0.13/TODO0000644000175000017500000000012211220426003014234 0ustar danieldaniel* documentation * tooltips and whatsthis * addition/removal of alternative groups kalternatives-0.13/INSTALL0000644000175000017500000000174511125655543014632 0ustar danieldanielKalternatives is a KDE 4 application, so you need KDE 4 to run it. To build Kalternatives, you need a KDE 4 development environment. If you are using a distribution, please refer to its packages for the task. In any case, take a look at http://techbase.kde.org/Getting_Started for generic build instructions. Kalternatives requires kdelibs >= 4.1 (but should work also with KDE 4.0, please contact me in case). To build it, you can do: $ mkdir build $ cd build $ cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) -DKALTERNATIVES_DISTRO=type .. $ make The 'type' for the KALTERNATIVES_DISTRO variable depends on the target distribution: * dpkg - Debian - Ubuntu and derivates * rpm - Mandriva - openSUSE * rpm_2 - Fedora To install, either do one of: $ sudo make install $ su -c "make install" $ make install depending on how you installed KDE. To run Kalternatives, you must run it as root, so either $ sudo kcmshell4 kalternatives $ su -c "kcmshell4 kalternatives" will do it. kalternatives-0.13/CMakeLists.txt0000644000175000017500000000163011241105471016317 0ustar danieldanielproject(kalternatives) # Search KDE installation find_package(KDE4 REQUIRED) include(KDE4Defaults) add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) include_directories(${KDE4_INCLUDES}) string(TOLOWER "${KALTERNATIVES_DISTRO}" _distro) set(ABOUT_SUBDIR ${_distro}) if (_distro STREQUAL "dpkg") set(DISTRO_DPKG TRUE) elseif (_distro STREQUAL "rpm_2") set(DISTRO_RPM_2 TRUE) elseif (_distro STREQUAL "rpm") set(DISTRO_RPM TRUE) else(_distro STREQUAL "dpkg") message(STATUS "A package manager was not set for KAlternatives. Please define KALTERNATIVES_DISTRO with its type (dpkg/rpm/rpm_2).") endif (_distro STREQUAL "dpkg") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config-kalternatives.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/config-kalternatives.h) add_subdirectory(src) add_subdirectory(pics) find_package(Msgfmt REQUIRED) find_package(Gettext REQUIRED) add_subdirectory(po) kalternatives-0.13/Messages.sh0000644000175000017500000000017711124460447015676 0ustar danieldaniel#!/bin/sh $EXTRACTRC src/*.ui >> rc.cpp || exit 11 $XGETTEXT src/*.cpp src/*.h rc.cpp -o $podir/kalternatives.pot rm -f rc.cpp kalternatives-0.13/README0000644000175000017500000000354211220426212014437 0ustar danieldanielREADME for Kalternatives ------------------------ Kalternatives is a KDE program that a allows you to easily configure and change the alternatives system of your distribution, if supported. What is an Alternatives System? ------------------------------- An "alternatives system" is designed to allow the system administrator to select an alternative when there are several options that provide the same file or functionality. For example, there could be several different packages that provide the command "vi" (the standard POSIX text editor) and your distribution could allow you to have more than one option installed (for example, to satisfy the needs for different users on a multiuser system). But, how does the system knows which of the installed programs must be run when "vi" is entered on a shell? The answer is: using the alternatives system. This system keeps a database of provided alternatives for every option on /var/lib/dpkg/alternatives (in case of Debian and rerived ditributions, for example) and a collection of links on /etc/alternatives that point to the real program. So, if your default version of "vi" is "vim", the link /usr/bin/vi will point to /etc/alternatives/vi that points to /usr/bin/vim. But if in the future you would like to change /usr/bin/vi to point to the nvi executable you could: 1. Change the link on /etc/alternatives/vi by hand. 2. Use the Debian command `update-alternatives --config vi` 3. Use Kalternatives. Which distribution are supported? --------------------------------- The supported distribution are: - Debian - Fedora - Mandriva - openSUSE - Ubuntu (see INSTALL for knowing how to specify which one when compiling) If you want to add support for another distribution, feel free to contact me. Who do I have to whine if the program fails for me? -------------------------------------------------- Pino Toscano kalternatives-0.13/COPYING0000644000175000017500000004311110632260471014617 0ustar danieldaniel GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program 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 2 of the License, or (at your option) any later version. This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. kalternatives-0.13/AUTHORS0000644000175000017500000000014411117345641014635 0ustar danieldanielJuanjo Alvarez Mario Bensi Pino Toscano kalternatives-0.13/src/kalternatives.desktop0000644000175000017500000000264211237763400020630 0ustar danieldaniel[Desktop Entry] Exec=kcmshell4 kalternatives Icon=configure Type=Service X-KDE-ModuleType=Library X-KDE-Library=kcm_kalternatives X-KDE-RootOnly=true X-KDE-HasReadOnlyMode=true X-KDE-ParentApp=kcontrol X-KDE-ServiceTypes=KCModule X-KDE-System-Settings-Parent-Category=system Name=Alternatives Configuration Name[es]=Configuración de alternativas Name[et]=Alternatiivide seadistamine Name[fr]=Configuration des alternatives Name[pt]=Configuração das Alternativas Name[pt_BR]=Configuração das Alternativas Name[sv]=Alternativ inställning Name[tr]=Alternatives Yapılandırması Name[uk]=Налаштування варіантів Name[x-test]=xxAlternatives Configurationxx Comment=Distribution alternatives system manager Comment[es]=Sistema de gestión de alternativas de la distribución Comment[et]=Distributsioonide alternatiivide süsteemi haldur Comment[fr]=Gestionnaire du système d'alternatives Comment[pt]=Gestor do sistema de alternativas das distribuições Comment[pt_BR]=Gestor do sistema de alternativas das distribuições Comment[sv]=Alternativ systemhantering för distributioner Comment[tr]=Dağıtım alternatives sistem yöneticisi Comment[uk]=Інструмент керування системою варіантів Comment[x-test]=xxDistribution alternatives system managerxx X-KDE-Keywords=Kalternatives,kalternatives,alternatives,alternative,debian,fedora,mandriva Categories=Qt;KDE;X-KDE-settings-system; kalternatives-0.13/src/aboutdata.h0000644000175000017500000000272711241103573016474 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef ABOUTDATA_H #define ABOUTDATA_H #include #define KALT_VERSION "0.13" inline KAboutData aboutData(const char* name, const char* iname) { KAboutData about( name, "kalternatives", ki18n(iname), KALT_VERSION, ki18n("KDE manager for the distribution alternatives system."), KAboutData::License_GPL, ki18n("© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano") ); about.addAuthor(ki18n("Pino Toscano"), ki18n("Current maintainer"), "pino@kde.org"); about.addAuthor(ki18n("Juanjo Alvarez Martinez"), ki18n("Original author"), "juanjo@juanjoalvarez.net", "http://juanjoalvarez.net"); about.addAuthor(ki18n("Mario Bensi"), ki18n("Original author"), "nef@ipsquad.net", "http://ipsquad.net"); return about; } #endif kalternatives-0.13/src/slavemodel.h0000644000175000017500000000303211124207316016651 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef SLAVEMODEL_H #define SLAVEMODEL_H #include class Alternative; class Item; class SlaveModel : public QAbstractItemModel { Q_OBJECT public: SlaveModel(QObject *parent = 0); ~SlaveModel(); // QAbstractItemModel interface int columnCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; bool hasChildren(const QModelIndex &parent = QModelIndex()) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; QModelIndex parent(const QModelIndex &index) const; int rowCount(const QModelIndex &parent = QModelIndex()) const; void setItem(Item *item); void setAlternative(Alternative *alt); protected: Item *m_item; Alternative *m_alt; }; #endif kalternatives-0.13/src/alternativemodels.h0000644000175000017500000000743311117532073020254 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef _ALTERNATIVEMODELS_H_ #define _ALTERNATIVEMODELS_H_ #include #include class KComponentData; class Alternative; class AltFilesManager; class Item; class AlternativesBaseModelPrivate; class AlternativeItemsModelPrivate; class AlternativeAltModelPrivate; enum { AltItemRole = 0x00ff0001, AltAlternativeRole = 0x00ff0002 }; class AlternativesBaseModel : public QAbstractItemModel { Q_OBJECT public: ~AlternativesBaseModel(); // QAbstractItemModel interface bool hasChildren(const QModelIndex &parent = QModelIndex()) const; QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; QModelIndex parent(const QModelIndex &index) const; int rowCount(const QModelIndex &parent = QModelIndex()) const; protected: AlternativesBaseModel(AlternativesBaseModelPrivate &dd, QObject *parent); Q_DECLARE_PRIVATE(AlternativesBaseModel) AlternativesBaseModelPrivate *d_ptr; }; class AlternativeItemsModel : public AlternativesBaseModel { Q_OBJECT friend class AlternativeAltModelPrivate; public: AlternativeItemsModel(const KComponentData &cd, QObject *parent = 0); ~AlternativeItemsModel(); // QAbstractItemModel interface int columnCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; Qt::ItemFlags flags(const QModelIndex &index) const; bool hasChildren(const QModelIndex &parent = QModelIndex()) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; int rowCount(const QModelIndex &parent = QModelIndex()) const; void save(); bool isSupported() const; private: Q_DECLARE_PRIVATE(AlternativeItemsModel) }; class AlternativeAltModel : public AlternativesBaseModel { Q_OBJECT public: AlternativeAltModel(AlternativeItemsModel *itemModel, bool readOnly, QObject *parent = 0); ~AlternativeAltModel(); // QAbstractItemModel interface int columnCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; Qt::ItemFlags flags(const QModelIndex &index) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QModelIndex parent(const QModelIndex &index) const; bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole); void setItem(Item *item); void addAlternative(Alternative *alt); void removeAlternative(Alternative *alt); private: Q_DECLARE_PRIVATE(AlternativeAltModel) Q_PRIVATE_SLOT(d_func(), void statusChanged(int)) }; class AlternativeItemProxyModel : public QSortFilterProxyModel { Q_OBJECT public: AlternativeItemProxyModel(QObject *parent = 0); ~AlternativeItemProxyModel(); void setShowSingleAlternative(bool show); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; private: bool m_showSingle; }; Q_DECLARE_METATYPE(Alternative*) Q_DECLARE_METATYPE(Item*) #endif kalternatives-0.13/src/altparser.h0000644000175000017500000001163711241031751016523 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2004 by Juanjo Álvarez Martinez * * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * * * * This program 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 this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef _ALTPARSER_H_ #define _ALTPARSER_H_ #include #include class Item; struct Slave { QString slname; QString slpath; }; class Alternative { QString m_altPath; int m_priority; QString m_description; Item *m_parent; QStringList m_altSlaves; public: Alternative(Item *parentarg); Alternative(const Alternative &alt); ~Alternative(); Alternative& operator=(const Alternative &alt); Item* getParent() const { return m_parent; } QString getPath() const { return m_altPath; } void setPath(const QString &patharg) { m_altPath = patharg; } int getPriority() const { return m_priority; } void setDescription(const QString &desc) { m_description = desc; } QString getDescription() const { return m_description; } void setPriority(int priorityarg) { m_priority = priorityarg; } QStringList getSlaves() const { return m_altSlaves; } void setSlaves(const QStringList &slaves); void addSlave(const QString &slave) { m_altSlaves.append(slave); } int slavesCount() const { return m_altSlaves.count(); } QString getSlave(int pos) const { return m_altSlaves.at(pos); } bool isSelected() const; bool isBroken() const; bool select(QString *selectError = 0); static QString prettyDescription(Alternative *); }; typedef QList SlaveList; typedef QList AltsPtrList; class Item { public: enum ItemMode { AutoMode, ManualMode }; private: QString m_name; ItemMode m_mode; QString m_path; SlaveList *m_itemSlaves; AltsPtrList *m_itemAlts; public: Item(); // Deep copy constructor: Item(const Item &item); ~Item(); Item& operator=(const Item &item); Alternative* getSelected() const; QString getName() const { return m_name; } void setName(const QString &namearg) { m_name = namearg; } ItemMode getMode() const { return m_mode; } void setMode(ItemMode modearg) { m_mode = modearg; } QString getPath() const { return m_path; } void setPath(const QString &patharg) { m_path = patharg; } SlaveList *getSlaves() const { return m_itemSlaves; } void setSlaves(SlaveList *slaves); void addSlave(const QString &namearg, const QString &patharg); void delSlave(const QString &namearg); void delSlaveByPath(const QString &patharg); AltsPtrList *getAlternatives() const { return m_itemAlts; } Alternative *getAlternative(const QString &altpath); void setAlternatives(AltsPtrList &alts); int countAlternatives() const { return m_itemAlts->count(); } void delAlternativeByPath(const QString &patharg); void delAlternativeByPriority(int priorityarg); void addAlternative(Alternative *altarg) { m_itemAlts->append(altarg); } bool isBroken() const; static QString modeString(ItemMode mode); }; typedef QList ItemPtrList; class AltFilesManager { ItemPtrList *m_itemlist; QString m_altdir; QString m_errorMsg; bool m_parseOk; bool parseAltFiles(QString &errorstr); public: AltFilesManager(const QString &altdir); ~AltFilesManager(); ItemPtrList* getGlobalAlternativeList() const { return this->m_itemlist; } bool parsingOk() const { return m_parseOk; } QString getErrorMsg() const { return m_errorMsg; } Item* getItem (const QString &name) const; //FIXME: Put in a #ifdef void debugPrintAlts() const; QString getAltDir() { return m_altdir ;} }; Q_DECLARE_METATYPE(Item::ItemMode) #endif // _KALTERNATIVES_H_ kalternatives-0.13/src/kalternatives.h0000644000175000017500000000462511124215347017406 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2004 by Juanjo Álvarez Martinez * * Copyright (C) 2004 by Mario Bensi * * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * * * * This program 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 this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef _KALTERNATIVES_H_ #define _KALTERNATIVES_H_ #include #include "ui_mainwindow.h" class AlternativeItemProxyModel; class AlternativeAltModel; class Kalternatives : public KCModule { Q_OBJECT bool m_bisRoot; Ui::MainWindow m_ui; AlternativeItemProxyModel* m_itemProxyModel; AlternativeAltModel* m_altModel; public: Kalternatives(QWidget *parent=0, const QVariantList& = QVariantList() ); virtual ~Kalternatives(); bool isBisRoot() const {return m_bisRoot;} virtual void load(); virtual void save(); virtual QString quickHelp() const; public slots: void configChanged(); private slots: void slotSelectAlternativesActivated(const QModelIndex &); void slotHideAlternativesClicked(); void slotAddClicked(); void slotDeleteClicked(); void slotPropertiesClicked(); void slotUpdateStatusCombo(); void slotUpdateButtons(); }; #endif // _KALTERNATIVES_H_ kalternatives-0.13/src/propertieswindow.ui0000644000175000017500000000570011124210375020333 0ustar danieldaniel PropertiesWindow 0 0 391 225 Alternative Properties Path: /usr/bin/kde Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse Description: KSqueezedTextLabel Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse Priority: 100 Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse Slaves true false true KSqueezedTextLabel QLabel
ksqueezedtextlabel.h
kalternatives-0.13/src/CMakeLists.txt0000644000175000017500000000075711124207316017120 0ustar danieldaniel # kcm set(kcm_SRCS addalternatives.cpp alternativemodels.cpp altparser.cpp kalternatives.cpp slavemodel.cpp slavewidget.cpp ) kde4_add_ui_files(kcm_SRCS addalternativesui.ui mainwindow.ui propertieswindow.ui slavewidget.ui ) kde4_add_plugin(kcm_kalternatives ${kcm_SRCS}) target_link_libraries(kcm_kalternatives ${KDE4_KIO_LIBS}) install(TARGETS kcm_kalternatives DESTINATION ${PLUGIN_INSTALL_DIR}) install(FILES kalternatives.desktop DESTINATION ${SERVICES_INSTALL_DIR}) kalternatives-0.13/src/addalternatives.h0000644000175000017500000000406211117211075017673 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2004 by Mario Bensi * * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * * * * This program 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 this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef _ADDALTERNATIVES_H_ #define _ADDALTERNATIVES_H_ #include "ui_addalternativesui.h" #include #include class Alternative; class Item; class SlaveWidget; class AddAlternatives : public KDialog, private Ui::AddAlternatives { Q_OBJECT Item* m_item; Alternative* m_alternative; QList m_slaveWidgets; public: AddAlternatives(Item* item, QWidget *parent = 0); virtual ~AddAlternatives(); virtual QSize sizeHint() const; Alternative* alternative() const { return m_alternative; } private slots: void slotCheckSlaves(); void slotOkClicked(); }; #endif //ADDALTERNATIVES_H_ kalternatives-0.13/src/altparser.cpp0000644000175000017500000003734011241062367017064 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2004 by Juanjo Álvarez Martinez * * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * * * * This program 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 this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "altparser.h" #include #include #include #include #include #include #include #include #include Alternative::Alternative(Item *parentarg) : m_parent(parentarg) { m_priority = 1; } // Copy constructor Alternative::Alternative(const Alternative &alt) : m_altPath(alt.getPath()), m_priority(alt.getPriority()), m_description(alt.getDescription()), m_parent(alt.getParent()), m_altSlaves(alt.getSlaves()) { } Alternative::~Alternative() { } Alternative& Alternative::operator=(const Alternative &alt) { if(this != &alt) { m_altPath = alt.getPath(); m_priority = alt.getPriority(); m_description = alt.getDescription(); m_parent = alt.getParent(); m_altSlaves = alt.m_altSlaves; } return (*this); } void Alternative::setSlaves(const QStringList &slaves) { m_altSlaves = slaves; } bool Alternative::isSelected() const { if(m_parent->isBroken()) return false; QFileInfo file("/etc/alternatives/"+m_parent->getName()); if(!file.isSymLink()) return false; if(file.readLink() == m_altPath) return 1; return 0; } bool Alternative::isBroken() const { return !QFile::exists(m_altPath); } bool Alternative::select(QString *selectError) { // This method was 19 lines in Python in the original kalternatives :-D if(isSelected()) return true; if(isBroken()) { if (selectError) *selectError = QString("Broken alternative: Unexisting path %1").arg(m_altPath); return false; } struct stat info; // Remove the current link: QByteArray parentPath = QFile::encodeName(QString::fromLatin1("/etc/alternatives/") + m_parent->getName()); if (lstat(parentPath, &info) != -1 && S_ISLNK(info.st_mode)) { if (unlink(parentPath) == -1) { if (selectError) { QString e("Could not delete alternative link %1: %2"); *selectError = e.arg(QFile::decodeName(parentPath)).arg(QString::fromLocal8Bit(strerror(errno))); } return false; } } // Then we do the main link: const QByteArray m_altPathAscii = QFile::encodeName(m_altPath); if (symlink(m_altPathAscii.constData(), parentPath) == -1) { if (selectError) *selectError = QString(strerror(errno)); return false; } // And finally the slaves SlaveList *parslaves = m_parent->getSlaves(); if(parslaves->count() == 0 || m_altSlaves.isEmpty()) return true; int count = 0; QStringList::iterator sl; Slave *parsl; for( sl = m_altSlaves.begin(); sl != m_altSlaves.end(); ++sl) { parsl = parslaves->at(count); QByteArray parstr = QFile::encodeName(QString::fromLatin1("/etc/alternatives/") + parsl->slname); if ((lstat(parstr, &info) == 0) && S_ISLNK(info.st_mode)) { if (unlink(parstr) == -1) { if (selectError) { QString e("Could not delete slave alternative link %1: %2"); *selectError = e.arg(QFile::decodeName(parstr)).arg(QString::fromLocal8Bit(strerror(errno))); } return false; } } const QByteArray slAscii = QFile::encodeName(*sl); if (!sl->isEmpty() && (symlink(slAscii.constData(), parstr) == -1)) { if (selectError) *selectError = QString(strerror(errno)); return false; } ++count; } return true; } QString Alternative::prettyDescription(Alternative *alt) { return alt->getDescription().isEmpty() ? i18n("no description") : alt->getDescription(); } //*************************************** Item Item::Item() { m_mode = AutoMode; m_itemSlaves = new SlaveList; m_itemAlts = new AltsPtrList; } // Deep copy Item::Item(const Item &item) : m_name(item.m_name), m_mode(item.m_mode), m_path(item.m_path) { m_itemSlaves = new SlaveList; m_itemAlts = new AltsPtrList; Slave *slave; Slave *slavecopy; Q_FOREACH (slave, *item.m_itemSlaves) { slavecopy = new Slave; slavecopy->slname = slave->slname; slavecopy->slpath = slave->slpath; m_itemSlaves->append(slavecopy); } Alternative *alt; Alternative *altcopy; Q_FOREACH (alt, *item.m_itemAlts) { // The Alternative class already has a deep copy constructor: altcopy = new Alternative( (*alt) ); m_itemAlts->append(altcopy); } } Item& Item::operator=(const Item &item) { if(this != &item) { if(m_itemSlaves)delete m_itemSlaves; if(m_itemAlts)delete m_itemAlts; m_name = item.m_name; m_mode = item.m_mode; m_path = item.m_path; m_itemSlaves = new SlaveList; m_itemAlts = new AltsPtrList; Slave *slave; Slave *slavecopy; Q_FOREACH (slave, *item.m_itemSlaves) { slavecopy = new Slave; slavecopy->slname = slave->slname; slavecopy->slpath = slave->slpath; m_itemSlaves->append(slavecopy); } Alternative *alt; Alternative *altcopy; Q_FOREACH (alt, *item.m_itemAlts) { altcopy = new Alternative( (*alt) ); m_itemAlts->append(altcopy); } } return (*this); } Item::~Item() { qDeleteAll(*m_itemSlaves); if(m_itemSlaves)delete m_itemSlaves; qDeleteAll(*m_itemAlts); if(m_itemAlts)delete m_itemAlts; } Alternative *Item::getSelected() const { Alternative *a; Q_FOREACH (a, *m_itemAlts) { if(a->isSelected()) { return a; } } return NULL; } void Item::setSlaves(SlaveList *slaves) { qDeleteAll(*m_itemSlaves); if(this->m_itemSlaves)delete this->m_itemSlaves; this->m_itemSlaves = slaves; } void Item::addSlave(const QString &namearg, const QString &patharg) { Slave *s = new Slave; s->slname = namearg; s->slpath = patharg; m_itemSlaves->append(s); } void Item::delSlave(const QString &namearg) { QMutableListIterator it(*m_itemSlaves); Slave *s; while (it.hasNext()) { s = it.next(); if(s->slname == namearg) { it.remove(); delete s; break; } } } void Item::delSlaveByPath(const QString &patharg) { QMutableListIterator it(*m_itemSlaves); Slave *s; while (it.hasNext()) { s = it.next(); if(s->slpath == patharg) { it.remove(); delete s; break; } } } Alternative *Item::getAlternative(const QString &altpath) { Alternative *a; Q_FOREACH (a, *m_itemAlts) { if(a->getPath() == altpath) { return a; } } return NULL; } void Item::setAlternatives(AltsPtrList &alts) { qDeleteAll(*m_itemAlts); if(this->m_itemAlts)delete this->m_itemAlts; this->m_itemAlts = &alts; } void Item::delAlternativeByPath(const QString &patharg) { QMutableListIterator it(*m_itemAlts); Alternative *a; while (it.hasNext()) { a = it.next(); if(a->getPath() == patharg) { it.remove(); delete a; break; } } } void Item::delAlternativeByPriority(int priorityarg) { QMutableListIterator it(*m_itemAlts); Alternative *a; while (it.hasNext()) { a = it.next(); if(a->getPriority() == priorityarg) { it.remove(); delete a; break; } } } bool Item::isBroken() const { return !QFile::exists(m_path); } QString Item::modeString(Item::ItemMode mode) { switch (mode) { case AutoMode: return QString::fromLatin1("auto"); case ManualMode: return QString::fromLatin1("manual"); } Q_ASSERT(false); return QString(); } /********************** AltFIlesManager ************/ AltFilesManager::AltFilesManager(const QString &altdirarg) : m_altdir(altdirarg) { m_itemlist = new ItemPtrList; m_parseOk = true; m_errorMsg = ""; if(!parseAltFiles(m_errorMsg)) { m_parseOk = false; } //debugPrintAlts(); } AltFilesManager::~AltFilesManager() { qDeleteAll(*m_itemlist); delete m_itemlist; } Item* AltFilesManager::getItem(const QString &name) const { Q_FOREACH (Item *i, *m_itemlist) { if(i->getName() == name) { return i; } } return NULL; } bool AltFilesManager::parseAltFiles(QString &errorstr) { QDir d(m_altdir); QStringList fileList = d.entryList(QDir::Files | QDir::NoDotAndDotDot); QStringList lines; QFile altFile; QString line, tmp; int nslaves; int index; for( QStringList::Iterator it = fileList.begin(); it != fileList.end(); ++it) { Item *item = new Item; item->setName(*it); altFile.setFileName(m_altdir+'/'+*it); if(!altFile.open(QIODevice::ReadOnly)) { errorstr = altFile.errorString(); delete item; return false; } // read the file and split it in lines, keeping empty ones lines = QString::fromLocal8Bit(altFile.readAll()).split('\n', QString::KeepEmptyParts); line = lines[0]; tmp = line; if (tmp == QLatin1String("auto")) item->setMode(Item::AutoMode); else if (tmp == QLatin1String("manual")) item->setMode(Item::ManualMode); else { errorstr = QString("Unrecognized mode '%1'").arg(tmp); item->setMode(Item::AutoMode); } line = lines[1]; tmp = line; item->setPath(tmp); index = 2; line = lines[index]; nslaves = 0; SlaveList *slaves = new SlaveList; while(!line.isEmpty()) { tmp = line; Slave *slave = new Slave; nslaves++; slave->slname = tmp; line = lines[++index]; tmp = line; slave->slpath = tmp; slaves->append(slave); line = lines[++index]; } item->setSlaves(slaves); ++index; const int remLines = (lines.count() - index - 1) % (nslaves + 2); if (remLines != 0 && !lines.at(lines.count() - remLines).isEmpty()) { errorstr = QString::fromLatin1("Mismatch in numer of lines left for the alternatives declarations for %1").arg(*it); delete item; return false; } const int altCount = (lines.count() - index - 1) / (nslaves + 2); for (int i = 0; i < altCount; ++i) { Alternative *a = new Alternative(item); line = lines[index]; tmp = line; a->setPath(tmp); ++index; line = lines[index]; tmp = line; a->setPriority(tmp.toInt()); ++index; for (int j = 0; j < nslaves; ++j) { line = lines[index]; tmp = line; a->addSlave(tmp); ++index; } item->addAlternative(a); } m_itemlist->append(item); altFile.close(); } return true; } /* void AltFilesManager::debugPrintAlts() const { printf("----------------------------------\n"); Item *item; Q_FOREACH (item, *m_itemlist) { printf("\nItem: %s\n", qPrintable(item->getName())); printf("\tMode: %s\n", qPrintable(Item::modeString(item->getMode()))); printf("\tPath: %s\n", qPrintable(item->getPath())); if(item->getSlaves()->count() == 0) printf("\tNo slaves\n"); else { Slave *slave; SlaveList *slaves = item->getSlaves(); Q_FOREACH (slave, *slaves) { printf("\tSlave name: %s\n", qPrintable(slave->slname)); printf("\tSlave path: %s\n", qPrintable(slave->slpath)); } } printf("\tAlternatives:\n"); if(item->getAlternatives()->count() == 0) printf("\t\tNO ALTERNATIVES!"); else { Alternative *a; AltsPtrList *alts = item->getAlternatives(); Q_FOREACH (a, *alts) { printf("\t\tPath: %s\n", qPrintable(a->getPath())); printf("\t\tPriority: %d\n", a->getPriority()); printf("\t\tSlaves:\n"); if(a->getSlaves().count() == 0) printf("\t\t\tNo slaves\n"); else { QStringList altslaves = a->getSlaves(); QStringList::iterator sl; for( sl = altslaves.begin(); sl != altslaves.end(); ++sl) { printf("\t\t\t%s\n", qPrintable(*sl)); } } } } } } */ /* // ************************************** Test int main(int argc, char **argv) { AltFilesManager a("/var/lib/rpm/alternatives"); if(!a.parsingOk()) printf("ERROR PARSING ALT FILES: %s\n", qPrintable(a.getErrorMsg())); else printf("\nOK, Finished parsing\n"); Item *item= a.getItem("vi"); if(item == NULL) return 0; printf("Item name: %s\n", qPrintable(item->getName())); printf("Item path: %s\n", qPrintable(item->getPath())); Alternative *alt = item->getSelected(); if(alt == NULL) return 0; printf("Selected alt: %s\n", qPrintable(alt->getPath())); Alternative *vimminimal = item->getAlternative("/bin/vim-minimal"); if(vimminimal == NULL) { printf("NULL!\n"); return 0; } printf("Not selected alt: %s\n", qPrintable(vimminimal->getPath())); printf("Selecting vim-minimal instead of vim-enhanced as vi\n"); QString selectError; if(!vimminimal->select(&selectError)) { printf("ERROR: %s\n", qPrintable(selectError)); } printf("Now selecting vim-enhanced...\n"); Alternative *vimen = item->getAlternative("/usr/bin/vim-enhanced"); if(vimen == NULL) { printf("NULL!\n"); return 0; } if(!vimen->select(&selectError)) { printf("ERROR: %s\n", qPrintable(selectError)); } return 0; } */ kalternatives-0.13/src/kalternatives.cpp0000644000175000017500000002150211220500730017720 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2004 by Juanjo Álvarez Martinez * * Copyright (C) 2004 by Mario Bensi * * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * * * * This program 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 this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "kalternatives.h" #include "altparser.h" #include "addalternatives.h" #include "alternativemodels.h" #include "ui_propertieswindow.h" #include "aboutdata.h" #include "slavemodel.h" #include #include #include #include #include #include #include #include #include #include #include K_PLUGIN_FACTORY(KalternativesFactory, registerPlugin();) K_EXPORT_PLUGIN(KalternativesFactory(aboutData("kalternatives", I18N_NOOP("Kalternatives")))) Kalternatives::Kalternatives(QWidget *parent, const QVariantList& args) :KCModule(KalternativesFactory::componentData(), parent, args) { setUseRootOnlyMessage(false); int user = getuid(); if (user == 0) { m_bisRoot = true; setButtons(KCModule::Help|KCModule::Apply); } else { m_bisRoot = false; setButtons(Help); } m_ui.setupUi(this); m_ui.m_mainSplitter->setStretchFactor(1, 5); connect(m_ui.m_altList, SIGNAL(clicked(QModelIndex)), this, SLOT(slotSelectAlternativesActivated(QModelIndex))); connect(m_ui.m_bAdd, SIGNAL(clicked()), this, SLOT(slotAddClicked())); connect(m_ui.m_bDelete, SIGNAL(clicked()), this, SLOT(slotDeleteClicked())); connect(m_ui.m_bProperties, SIGNAL(clicked()), this, SLOT(slotPropertiesClicked())); m_ui.m_bDelete->setGuiItem(KStandardGuiItem::del()); m_ui.m_bDelete->setWhatsThis(i18n("Removes the selected alternative from the current group.")); m_ui.m_bAdd->setGuiItem(KGuiItem(i18n("&Add"), "list-add", i18n("Adds a new alternative for the selected group."))); m_ui.m_bProperties->setGuiItem(KGuiItem(i18n("&Properties"), "configure", i18n("Shows the properties (path, priority, and slaves) of the selected alternative."))); m_ui.m_statusCombo->addItem(i18nc("Automatic alternative choice", "Automatic"), Item::AutoMode); m_ui.m_statusCombo->addItem(i18nc("Manual alternative choice", "Manual"), Item::ManualMode); m_ui.m_bDelete->setEnabled(false); m_ui.m_bAdd->setEnabled(false); m_ui.m_bProperties->setEnabled(false); if(!m_bisRoot) { m_ui.m_statusCombo->setEnabled(false); } setAboutData(new KAboutData(*KalternativesFactory::componentData().aboutData())); } Kalternatives::~Kalternatives() { } void Kalternatives::load() { m_itemProxyModel = new AlternativeItemProxyModel(m_ui.m_altList); slotHideAlternativesClicked(); AlternativeItemsModel *itemModel = new AlternativeItemsModel(componentData(), m_itemProxyModel); m_itemProxyModel->setSourceModel(itemModel); m_ui.m_altList->setModel(m_itemProxyModel); connect(itemModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(slotUpdateStatusCombo())); QHeaderView *h = m_ui.m_altList->header(); h->resizeSections(QHeaderView::Stretch); h->resizeSection(0, h->sectionSizeHint(0)); connect(m_ui.m_hideAlt, SIGNAL(clicked()), this, SLOT(slotHideAlternativesClicked())); QSortFilterProxyModel *altListSorter = new QSortFilterProxyModel(m_ui.m_optionsList); altListSorter->setDynamicSortFilter(true); m_altModel = new AlternativeAltModel(itemModel, !m_bisRoot, altListSorter); altListSorter->setSourceModel(m_altModel); m_ui.m_optionsList->setModel(altListSorter); m_ui.m_optionsList->header()->setSortIndicator(0, Qt::AscendingOrder); connect(m_altModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(configChanged())); connect(m_altModel, SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(configChanged())); connect(m_ui.m_statusCombo, SIGNAL(activated(int)), m_altModel, SLOT(statusChanged(int))); connect(m_ui.m_altList->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)), this, SLOT(slotUpdateButtons())); connect(m_ui.m_optionsList->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)), this, SLOT(slotUpdateButtons())); } void Kalternatives::slotSelectAlternativesActivated(const QModelIndex &index) { Item *item = index.data(AltItemRole).value(); m_altModel->setItem(item); m_ui.m_altTilte->setText(item->getName()); const int statusIndex = m_ui.m_statusCombo->findData(item->getMode()); Q_ASSERT(statusIndex != -1); m_ui.m_statusCombo->setCurrentIndex(statusIndex); slotUpdateButtons(); } void Kalternatives::slotHideAlternativesClicked() { m_itemProxyModel->setShowSingleAlternative(!m_ui.m_hideAlt->isChecked()); } void Kalternatives::slotAddClicked() { Item *item = m_ui.m_altList->currentIndex().data(AltItemRole).value(); if (item) { AddAlternatives addAlternatives(item, this); addAlternatives.exec(); if (Alternative *a = addAlternatives.alternative()) { m_altModel->addAlternative(a); } } } void Kalternatives::slotDeleteClicked() { Alternative *alt = m_ui.m_optionsList->currentIndex().data(AltAlternativeRole).value(); if (alt) { const QString messageText = i18n("Are you really sure you want to delete the alternative '%1'?", alt->getPath()); if (KMessageBox::warningYesNo(this, messageText, i18n("Delete Alternative")) == KMessageBox::Yes) { m_altModel->removeAlternative(alt); } } } void Kalternatives::slotPropertiesClicked() { Alternative *a = m_ui.m_optionsList->currentIndex().data(AltAlternativeRole).value(); if (a) { QString text; KDialog *prop = new KDialog(this); prop->setCaption(i18n("Alternative Properties")); prop->setButtons(KDialog::Close); prop->showButtonSeparator(true); Ui::PropertiesWindow propUi; propUi.setupUi(prop->mainWidget()); prop->mainWidget()->layout()->setMargin(0); connect(prop, SIGNAL(closeClicked()), prop, SLOT(deleteLater())); propUi.labelPath->setText(a->getPath()); propUi.labelDescription->setText(Alternative::prettyDescription(a)); propUi.labelPriority->setText(QString::number(a->getPriority())); if (a->slavesCount() > 0) { SlaveModel *sm = new SlaveModel(propUi.slaveView); sm->setItem(a->getParent()); sm->setAlternative(a); propUi.slaveView->setModel(sm); } else { propUi.slavesGroup->hide(); } prop->show(); } } void Kalternatives::slotUpdateStatusCombo() { Item *item = m_ui.m_altList->currentIndex().data(AltItemRole).value(); if (item) { const int statusIndex = m_ui.m_statusCombo->findData(item->getMode()); Q_ASSERT(statusIndex != -1); m_ui.m_statusCombo->setCurrentIndex(statusIndex); emit changed(true); } } void Kalternatives::slotUpdateButtons() { if (m_bisRoot) { const bool altSelected = m_ui.m_altList->selectionModel()->hasSelection(); m_ui.m_bAdd->setEnabled(altSelected); } const bool altChoiceSelected = m_ui.m_optionsList->selectionModel()->currentIndex().isValid(); m_ui.m_bProperties->setEnabled(altChoiceSelected); if (m_bisRoot) { m_ui.m_bDelete->setEnabled(altChoiceSelected); } } void Kalternatives::save() { AlternativeItemsModel *model = qobject_cast(m_itemProxyModel->sourceModel()); model->save(); emit changed( false ); } void Kalternatives::configChanged() { emit changed(true); } QString Kalternatives::quickHelp() const { return i18n("

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in " "Debian/Fedora/Mandriva/openSUSE/Ubuntu distributions."); } #include "kalternatives.moc" kalternatives-0.13/src/slavewidget.ui0000644000175000017500000000211311157443760017234 0ustar danieldaniel SlaveWidgetUi 0 0 378 73 Slave link for qtconfig.1.gz: Qt::Vertical 20 1 KUrlRequester QFrame
kurlrequester.h
kalternatives-0.13/src/slavemodel.cpp0000644000175000017500000000574411124210646017220 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #include "slavemodel.h" #include "altparser.h" #include #include SlaveModel::SlaveModel(QObject *parent) : QAbstractItemModel(parent) , m_item(0), m_alt(0) { } SlaveModel::~SlaveModel() { } int SlaveModel::columnCount(const QModelIndex &parent) const { return parent.isValid() ? 0 : 2; } QVariant SlaveModel::data(const QModelIndex &index, int role) const { if (!index.isValid() || !m_item) return QVariant(); switch (role) { case Qt::DisplayRole: case Qt::ToolTipRole: if (index.column() == 0) return m_item->getSlaves()->at(index.row())->slname; else if (index.column() == 1) return m_alt ? m_alt->getSlaves().at(index.row()) : QString(); break; } return QVariant(); } bool SlaveModel::hasChildren(const QModelIndex &parent) const { return rowCount(parent) > 0; } QVariant SlaveModel::headerData(int section, Qt::Orientation orientation, int role) const { if (orientation == Qt::Horizontal) { switch (role) { case Qt::DisplayRole: if (section == 0) return i18nc("Slave name", "Name"); else if (section == 1) return i18nc("Slave path", "Path"); break; } } else { if (role == Qt::DisplayRole) return section; } return QVariant(); } QModelIndex SlaveModel::index(int row, int column, const QModelIndex &parent) const { if (parent.isValid() || !m_item || column < 0 || column >= 2 || row < 0 || (row >= m_item->getSlaves()->count())) return QModelIndex(); return createIndex(row, column); } QModelIndex SlaveModel::parent(const QModelIndex &) const { return QModelIndex(); } int SlaveModel::rowCount(const QModelIndex &parent) const { return parent.isValid() ? 0 : (m_item ? m_item->getSlaves()->count(): 0); } void SlaveModel::setItem(Item *item) { if (item == m_item) return; m_item = item; m_alt = 0; reset(); } void SlaveModel::setAlternative(Alternative *alt) { if (!alt || !m_item || (alt->getParent() != m_item) || (alt->slavesCount() != m_item->getSlaves()->count())) return; m_alt = alt; emit dataChanged(createIndex(0, 1), createIndex(m_alt->slavesCount() - 1, 1)); } #include "slavemodel.moc" kalternatives-0.13/src/slavewidget.cpp0000644000175000017500000000257611116775607017421 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #include "slavewidget.h" #include "altparser.h" #include SlaveWidget::SlaveWidget(Slave *slave, QWidget *parent) : QWidget(parent), m_slave(slave) { setupUi(this); layout()->setMargin(0); m_slavePath->setWindowTitle(i18n("Choose Slave")); m_slavePath->setFilter(i18n("*|All Files")); m_slavePath->setMode(KFile::File | KFile::LocalOnly); m_slaveText->setText(i18n("Slave link for %1:", m_slave->slname)); connect(m_slavePath, SIGNAL(textChanged(QString)), this, SLOT(slotTextChanged(QString))); } SlaveWidget::~SlaveWidget() { } QString SlaveWidget::slavePath() const { return m_slavePath->url().toLocalFile(); } void SlaveWidget::slotTextChanged(const QString &) { emit slaveChanged(slavePath()); } #include "slavewidget.moc" kalternatives-0.13/src/addalternativesui.ui0000644000175000017500000000547511116775607020447 0ustar danieldaniel AddAlternatives 0 0 386 193 0 0 Path: false Priority: false 20 1000 -1000 Slaves: 0 QFrame::NoFrame true 0 0 364 90 KIntSpinBox QSpinBox
knuminput.h
KUrlRequester QFrame
kurlrequester.h
kalternatives-0.13/src/alternativemodels.cpp0000644000175000017500000006567611241060144020615 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #include "alternativemodels.h" #include "altparser.h" #include #include #include #include #include #include #include #include #include #include #include #include enum ItemChangeType { SelectionItemChange = 1, AltNumItemChange = 2, ModeItemChange = 4 }; Q_DECLARE_FLAGS(ItemChanges, ItemChangeType) Q_DECLARE_OPERATORS_FOR_FLAGS(ItemChanges) namespace { struct AltNode { enum { Type = 0 }; AltNode(AltNode *pp, int t) : parent(pp), type(t) {} virtual ~AltNode() {} virtual QList children() const { return QList(); } virtual int childCount() const { return 0; } AltNode *parent; int type : 3; }; struct AltAlternativeNode; struct AltItemNode; struct AltRootNode : public AltNode { enum { Type = 1 }; AltRootNode() : AltNode(0, Type) {} virtual ~AltRootNode() { qDeleteAll(m_children); } virtual QList children() const { QList c; std::copy(m_children.begin(), m_children.end(), std::back_inserter(c)); return c; } virtual int childCount() const { return m_children.count(); } QList m_children; }; struct AltItemNode : public AltNode { enum { Type = 2 }; AltItemNode(Item *i, AltRootNode *p) : AltNode(p, Type), item(i) , changed(false), nbrAltChanged(false), modeChanged(false) {} virtual ~AltItemNode() { qDeleteAll(m_children); } virtual QList children() const { QList c; std::copy(m_children.begin(), m_children.end(), std::back_inserter(c)); return c; } virtual int childCount() const { return m_children.count(); } Item *item; QList m_children; bool changed : 1; bool nbrAltChanged : 1; bool modeChanged : 1; }; struct AltAlternativeNode : public AltNode { enum { Type = 3 }; AltAlternativeNode(Alternative *a, AltItemNode *p) : AltNode(p, Type), alternative(a), selected(false) {} Alternative *alternative; bool selected : 1; }; template T* altnode_cast(AltNode *n) { return n->type > 0 && n->type == T::Type ? static_cast(n) : 0; } template <> AltNode* altnode_cast(AltNode *n) { return n; } } class AlternativesBaseModelPrivate { public: AlternativesBaseModelPrivate(); virtual ~AlternativesBaseModelPrivate(); Q_DECLARE_PUBLIC(AlternativesBaseModel) virtual void load() = 0; virtual AltNode* root() const = 0; QModelIndex indexForItem(AltNode *n, int col) const; AlternativesBaseModel *q_ptr; }; AlternativesBaseModelPrivate::AlternativesBaseModelPrivate() : q_ptr(0) { } AlternativesBaseModelPrivate::~AlternativesBaseModelPrivate() { } QModelIndex AlternativesBaseModelPrivate::indexForItem(AltNode *n, int col) const { if (n->parent) { const QList children = n->parent->children(); const int id = children.indexOf(n); if (id >= 0 && id < children.count()) return q_ptr->createIndex(id, col, n); } return QModelIndex(); } AlternativesBaseModel::AlternativesBaseModel(AlternativesBaseModelPrivate &dd, QObject *parent) : QAbstractItemModel(parent), d_ptr(&dd) { d_ptr->q_ptr = this; d_ptr->load(); } AlternativesBaseModel::~AlternativesBaseModel() { delete d_ptr; } bool AlternativesBaseModel::hasChildren(const QModelIndex &parent) const { if (!parent.isValid()) return true; AltNode *n = static_cast(parent.internalPointer()); return n->childCount() > 0; } QModelIndex AlternativesBaseModel::index(int row, int column, const QModelIndex &parent) const { if (row < 0 || column < 0 || column >= columnCount(parent)) return QModelIndex(); AltNode *n = parent.isValid() ? static_cast(parent.internalPointer()) : d_ptr->root(); const QList children = n->children(); if (row < children.count()) return createIndex(row, column, children.at(row)); return QModelIndex(); } QModelIndex AlternativesBaseModel::parent(const QModelIndex &index) const { if (!index.isValid()) return QModelIndex(); AltNode *n = static_cast(index.internalPointer()); return d_ptr->indexForItem(n->parent, index.column()); } int AlternativesBaseModel::rowCount(const QModelIndex &parent) const { AltNode *n = parent.isValid() ? static_cast(parent.internalPointer()) : d_ptr->root(); return n->childCount(); } class AlternativeItemsModelPrivate : public AlternativesBaseModelPrivate { public: AlternativeItemsModelPrivate(const KComponentData &cd); ~AlternativeItemsModelPrivate(); virtual void load(); virtual AltNode* root() const { return const_cast(&m_root); } Q_DECLARE_PUBLIC(AlternativeItemsModel) void itemChanged(AltItemNode *node, ItemChanges changes); void loadItemNode(AltItemNode *node); bool isChanged(AltItemNode *node) const; AltAlternativeNode* findSelectedAlternative(AltItemNode *node, int *index) const; AltFilesManager *altManager; AltRootNode m_root; KComponentData componentData; KIconLoader *iconLoader; KIcon brokenAltIcon; }; AlternativeItemsModelPrivate::AlternativeItemsModelPrivate(const KComponentData &cd) : AlternativesBaseModelPrivate(), altManager(0) , componentData(cd), iconLoader(new KIconLoader(componentData)) , brokenAltIcon("alternative-broken", iconLoader) { #if defined(DISTRO_DPKG) altManager = new AltFilesManager("/var/lib/dpkg/alternatives"); #elif defined(DISTRO_RPM_2) altManager = new AltFilesManager("/var/lib/alternatives"); #elif defined(DISTRO_RPM) altManager = new AltFilesManager("/var/lib/rpm/alternatives"); #else kError() << "Unsupported distribution for KAlternatives."; #endif if (altManager && !altManager->parsingOk()) { kDebug() << altManager->getErrorMsg(); delete altManager; altManager = 0; } } AlternativeItemsModelPrivate::~AlternativeItemsModelPrivate() { delete altManager; } void AlternativeItemsModelPrivate::load() { if (!altManager) return; ItemPtrList *itemslist = altManager->getGlobalAlternativeList(); Q_FOREACH (Item *i, *itemslist) { AltItemNode *newItem = new AltItemNode(i, &m_root); m_root.m_children.append(newItem); } } void AlternativeItemsModelPrivate::itemChanged(AltItemNode *node, ItemChanges changes) { Q_Q(AlternativeItemsModel); if (changes & SelectionItemChange) { node->changed = true; } if (changes & AltNumItemChange) { node->nbrAltChanged = true; } if (changes & ModeItemChange) { node->modeChanged = true; } const QModelIndex index = indexForItem(node, 0); emit q->dataChanged(index, index); } void AlternativeItemsModelPrivate::loadItemNode(AltItemNode *node) { if (!node->m_children.isEmpty()) return; AltsPtrList *alts = node->item->getAlternatives(); Q_FOREACH (Alternative* a, *alts) { AltAlternativeNode *altnode = new AltAlternativeNode(a, node); node->m_children.append(altnode); altnode->selected = a->isSelected(); } } bool AlternativeItemsModelPrivate::isChanged(AltItemNode *node) const { return node->changed || node->nbrAltChanged || node->modeChanged; } AltAlternativeNode* AlternativeItemsModelPrivate::findSelectedAlternative(AltItemNode *node, int *index) const { const int num = node->m_children.count(); for (int i = 0; i < num; ++i) { AltAlternativeNode *altnode = node->m_children.at(i); if (altnode->selected) { *index = i; return altnode; } } *index = -1; return 0; } AlternativeItemsModel::AlternativeItemsModel(const KComponentData &cd, QObject *parent) : AlternativesBaseModel(*new AlternativeItemsModelPrivate(cd), parent) { Q_D(AlternativeItemsModel); d->iconLoader->setParent(this); } AlternativeItemsModel::~AlternativeItemsModel() { } int AlternativeItemsModel::columnCount(const QModelIndex &parent) const { Q_UNUSED(parent) return 1; } QVariant AlternativeItemsModel::data(const QModelIndex &index, int role) const { if (!index.isValid()) return QVariant(); Q_D(const AlternativeItemsModel); AltNode *n = static_cast(index.internalPointer()); if (AltItemNode *n_i = altnode_cast(n)) { switch (role) { case Qt::DisplayRole: return n_i->item->getName(); case Qt::ToolTipRole: { QString tip = n_i->item->getName(); if (n_i->item->isBroken()) { tip += "\n\n"; tip += i18n("Broken alternative group."); } return tip; } case Qt::ForegroundRole: if (d->isChanged(n_i)) return Qt::red; break; case Qt::FontRole: if (d->isChanged(n_i)) { QFont f; f.setBold(true); return f; } break; case Qt::DecorationRole: if (n_i->item->isBroken()) return d->brokenAltIcon; break; case AltItemRole: return qVariantFromValue(n_i->item); } } return QVariant(); } Qt::ItemFlags AlternativeItemsModel::flags(const QModelIndex &index) const { if (!index.isValid()) return Qt::NoItemFlags; AltNode *n = static_cast(index.internalPointer()); if (AltItemNode *n_i = altnode_cast(n)) { Qt::ItemFlags f = Qt::ItemIsSelectable; if (!n_i->item->isBroken()) f |= Qt::ItemIsEnabled; return f; } return Qt::NoItemFlags; } bool AlternativeItemsModel::hasChildren(const QModelIndex &parent) const { return parent.isValid() ? false : AlternativesBaseModel::hasChildren(parent); } QVariant AlternativeItemsModel::headerData(int section, Qt::Orientation orientation, int role) const { if (orientation != Qt::Horizontal) return QVariant(); switch (role) { case Qt::DisplayRole: if (section == 0) return i18nc("Groups of alternatives", "Groups"); break; } return QVariant(); } QModelIndex AlternativeItemsModel::index(int row, int column, const QModelIndex &parent) const { return parent.isValid() ? QModelIndex() : AlternativesBaseModel::index(row, column, parent); } int AlternativeItemsModel::rowCount(const QModelIndex &parent) const { return parent.isValid() ? 0 : AlternativesBaseModel::rowCount(parent); } void AlternativeItemsModel::save() { Q_D(AlternativeItemsModel); if (!d->altManager) return; QModelIndexList changedIndexes; const int rows = d->m_root.m_children.count(); for (int i = 0; i < rows; ++i) { AltItemNode *node = d->m_root.m_children.at(i); Item *item = node->item; bool itemChanged = false; if (node->changed) { int index = 0; AltAlternativeNode* altnode = d->findSelectedAlternative(node, &index); Q_ASSERT(altnode); QString selectError; if (!altnode->alternative->select(&selectError)) { kDebug() << selectError << endl; return; } node->changed = false; itemChanged = true; } if (node->nbrAltChanged || node->modeChanged) { QString parentPath = d->altManager->getAltDir() + '/' + item->getName(); QFile origFile(parentPath); if (origFile.exists()) { origFile.remove(); } if (origFile.open(QIODevice::WriteOnly)) { QTextStream stream(&origFile); stream << Item::modeString(item->getMode()) << endl; stream << item->getPath() << endl; SlaveList *slaveList = item->getSlaves(); Q_FOREACH (Slave *slave, *slaveList) { stream << slave->slname << endl; stream << slave->slpath << endl; } stream << endl; AltsPtrList *altItemList = item->getAlternatives(); Q_FOREACH (Alternative *a, *altItemList) { stream << a->getPath() << endl; stream << a->getPriority() << endl; Q_FOREACH (const QString &slave, a->getSlaves()) { stream << slave << endl; } } stream << endl; origFile.close(); } node->nbrAltChanged = false; node->modeChanged = false; itemChanged = true; } if (itemChanged) { changedIndexes.append(createIndex(i, 0, node)); } } Q_FOREACH (const QModelIndex &index, changedIndexes) { emit dataChanged(index, index); } } bool AlternativeItemsModel::isSupported() const { Q_D(const AlternativeItemsModel); return d->altManager; } class AlternativeAltModelPrivate : public AlternativesBaseModelPrivate { public: AlternativeAltModelPrivate(AlternativeItemsModel *itemModel, bool readOnly); ~AlternativeAltModelPrivate(); virtual void load(); virtual AltNode* root() const { return m_root; } Q_DECLARE_PUBLIC(AlternativeAltModel) AltAlternativeNode* findHigherPriority(int *index) const; void searchDescription(Alternative *alternative) const; void statusChanged(int index); AlternativeItemsModelPrivate *parentModel; AltItemNode m_nullRoot; AltItemNode *m_root; bool m_readOnly; }; AlternativeAltModelPrivate::AlternativeAltModelPrivate(AlternativeItemsModel *itemModel, bool readOnly) : AlternativesBaseModelPrivate() , parentModel(itemModel->d_func()), m_nullRoot(0, 0), m_root(&m_nullRoot), m_readOnly(readOnly) { } AlternativeAltModelPrivate::~AlternativeAltModelPrivate() { } void AlternativeAltModelPrivate::load() { } AltAlternativeNode* AlternativeAltModelPrivate::findHigherPriority(int *index) const { const int num = m_root->m_children.count(); if (!num) { *index = 0; return 0; } int id = 0; AltAlternativeNode* n = m_root->m_children.at(id); int priority = n->alternative->getPriority(); for (int i = 1; i < num; ++i) { AltAlternativeNode* tmp = m_root->m_children.at(i); if (tmp->alternative->getPriority() > priority) { id = i; n = tmp; priority = n->alternative->getPriority(); } } *index = id; return n; } static bool extractDescriptionFor(const QString &outputLine, const QString &name, QString *desc) { QString output = outputLine; int pos = output.indexOf('('); // look for the name of the search result, and discard it // in case it is not exactly what we requested if (pos == -1 || (output.left(pos -1) != name)) return false; pos = output.indexOf(']'); if (pos != -1) { output.remove(0, pos + 1); } pos = output.indexOf(')'); if (pos != -1) { output.remove(0, pos + 1); } pos = output.indexOf('-'); if (pos != -1) { output.remove(0, pos + 2); } *desc = output; return true; } void AlternativeAltModelPrivate::searchDescription(Alternative *alternative) const { QString exec = alternative->getPath(); const int slashPos = exec.lastIndexOf('/'); if (slashPos != -1) exec.remove(0, slashPos + 1); KProcess proc; proc.setProgram("whatis", QStringList() << exec); proc.setOutputChannelMode(KProcess::SeparateChannels); proc.setEnv("COLUMNS", QString::number(300)); proc.start(); proc.waitForStarted(); proc.waitForFinished(); if (proc.exitCode() == 0) { const QByteArray procOutput = proc.readAllStandardOutput(); const QStringList outputLines = QString::fromLocal8Bit(procOutput.constData()).split('\n', QString::SkipEmptyParts); Q_FOREACH (const QString &outLine, outputLines) { QString description; if (extractDescriptionFor(outLine, exec, &description)) { alternative->setDescription(description); break; } } } } void AlternativeAltModelPrivate::statusChanged(int index) { if (m_root == &m_nullRoot) return; Q_Q(AlternativeAltModel); QComboBox *combo = q->sender() ? qobject_cast(q->sender()) : 0; if (!combo) return; const Item::ItemMode mode = static_cast(combo->itemData(index).toInt()); m_root->item->setMode(mode); ItemChanges changes = ModeItemChange; if (mode == Item::AutoMode) { int selectedIndex = 0; int higherPriorityIndex = 0; AltAlternativeNode *selectedaltnode = parentModel->findSelectedAlternative(m_root, &selectedIndex); AltAlternativeNode *newaltnode = findHigherPriority(&higherPriorityIndex); if (selectedIndex != higherPriorityIndex) { QModelIndexList indexes; selectedaltnode->selected = false; indexes.append(q->createIndex(selectedIndex, 0, selectedaltnode)); newaltnode->selected = true; indexes.append(q->createIndex(higherPriorityIndex, 0, newaltnode)); m_root->changed = true; Q_FOREACH (const QModelIndex &index, indexes) { emit q->dataChanged(index, index); } changes |= SelectionItemChange; } } parentModel->itemChanged(m_root, changes); } AlternativeAltModel::AlternativeAltModel(AlternativeItemsModel *itemModel, bool readOnly, QObject *parent) : AlternativesBaseModel(*new AlternativeAltModelPrivate(itemModel, readOnly), parent) { } AlternativeAltModel::~AlternativeAltModel() { } int AlternativeAltModel::columnCount(const QModelIndex &parent) const { Q_UNUSED(parent) return 3; } QVariant AlternativeAltModel::data(const QModelIndex &index, int role) const { if (!index.isValid()) return QVariant(); Q_D(const AlternativeAltModel); AltNode *n = static_cast(index.internalPointer()); if (AltAlternativeNode *n_a = altnode_cast(n)) { switch (role) { case Qt::DisplayRole: { switch (index.column()) { case 0: return n_a->alternative->getPath(); case 1: return n_a->alternative->getPriority(); case 2: if (n_a->alternative->getDescription().isEmpty()) d->searchDescription(n_a->alternative); return Alternative::prettyDescription(n_a->alternative); } break; } case Qt::ToolTipRole: { if (n_a->alternative->getDescription().isEmpty()) d->searchDescription(n_a->alternative); KLocalizedString tip = n_a->alternative->isBroken() ? ki18nc("%1 is the alternative path, %2 its description", "%1\n(broken)\n\n%2") : ki18nc("%1 is the alternative path, %2 its description", "%1\n\n%2"); return tip.subs(n_a->alternative->getPath()) .subs(Alternative::prettyDescription(n_a->alternative)) .toString(); } case Qt::EditRole: if (index.column() == 0) return n_a->selected; break; case Qt::CheckStateRole: if (index.column() == 0) return n_a->selected ? Qt::Checked : Qt::Unchecked; break; case Qt::DecorationRole: if (index.column() == 0 && n_a->alternative->isBroken()) return d->parentModel->brokenAltIcon; break; case AltAlternativeRole: return qVariantFromValue(n_a->alternative); } } return QVariant(); } Qt::ItemFlags AlternativeAltModel::flags(const QModelIndex &index) const { if (!index.isValid()) return Qt::NoItemFlags; Q_D(const AlternativeAltModel); AltNode *n = static_cast(index.internalPointer()); if (AltAlternativeNode *n_a = altnode_cast(n)) { Qt::ItemFlags f = Qt::ItemIsSelectable; if (!d->m_readOnly && !n_a->alternative->isBroken()) f |= Qt::ItemIsEnabled; switch (index.column()) { case 0: return f | Qt::ItemIsUserCheckable; default: return f; } } return Qt::NoItemFlags; } QVariant AlternativeAltModel::headerData(int section, Qt::Orientation orientation, int role) const { if (orientation != Qt::Horizontal) return QVariant(); switch (role) { case Qt::DisplayRole: switch (section) { case 0: return i18n("Option"); case 1: return i18n("Priority"); case 2: return i18n("Description"); } break; } return QVariant(); } QModelIndex AlternativeAltModel::parent(const QModelIndex &index) const { Q_UNUSED(index); return QModelIndex(); } bool AlternativeAltModel::setData(const QModelIndex &index, const QVariant &value, int role) { if (!index.isValid()) return false; AltAlternativeNode *n = altnode_cast(static_cast(index.internalPointer())); if (!n) return false; Q_D(AlternativeAltModel); switch (role) { case Qt::CheckStateRole: { if (d->m_readOnly || n->alternative->isBroken()) break; const bool newValue = value.toBool(); if (newValue) { if (!n->selected) { QModelIndexList changedIndexes; Q_FOREACH (AltAlternativeNode* node, d->m_root->m_children) { if (node->selected) { node->selected = false; changedIndexes.append(d->indexForItem(node, index.column())); } } n->selected = true; changedIndexes.append(index); Q_FOREACH (const QModelIndex &changedIndex, changedIndexes) { emit dataChanged(changedIndex, changedIndex); } ItemChanges changes = SelectionItemChange; // when changing option, set the alternative to "manual" mode if (d->m_root->item->getMode() == Item::AutoMode) { d->m_root->item->setMode(Item::ManualMode); changes |= ModeItemChange; } d->parentModel->itemChanged(d->m_root, changes); return true; } } break; } } return false; } void AlternativeAltModel::setItem(Item *item) { Q_D(AlternativeAltModel); d->m_root = &d->m_nullRoot; Q_FOREACH (AltItemNode *n, d->parentModel->m_root.m_children) { if (n->item == item) { d->m_root = n; break; } } if (d->m_root->item) { d->parentModel->loadItemNode(d->m_root); } reset(); } void AlternativeAltModel::addAlternative(Alternative *alt) { if (!alt) return; Q_D(AlternativeAltModel); if (alt->getParent() != d->m_root->item) return; const int childCount = d->m_root->m_children.count(); beginInsertRows(QModelIndex(), childCount, childCount); d->m_root->item->addAlternative(alt); d->m_root->m_children.append(new AltAlternativeNode(alt, d->m_root)); endInsertRows(); d->parentModel->itemChanged(d->m_root, AltNumItemChange); } void AlternativeAltModel::removeAlternative(Alternative *alt) { if (!alt) return; Q_D(AlternativeAltModel); if (alt->getParent() != d->m_root->item) return; int altId = 0; const int childCount = d->m_root->m_children.count(); for ( ; altId < childCount; ++altId) { if (d->m_root->m_children.at(altId)->alternative == alt) break; } if (altId == childCount) return; const bool wasSelected = d->m_root->m_children.at(altId)->selected; beginRemoveRows(QModelIndex(), altId, altId); d->m_root->item->delAlternativeByPath(alt->getPath()); delete d->m_root->m_children.at(altId); d->m_root->m_children.removeAt(altId); endRemoveRows(); if (wasSelected && !d->m_root->m_children.isEmpty()) { int row = 0; AltAlternativeNode *node = d->findHigherPriority(&row); node->selected = true; const QModelIndex changedIndex = createIndex(row, 0, node); emit dataChanged(changedIndex, changedIndex); } d->parentModel->itemChanged(d->m_root, AltNumItemChange); } AlternativeItemProxyModel::AlternativeItemProxyModel(QObject *parent) : QSortFilterProxyModel(parent), m_showSingle(false) { } AlternativeItemProxyModel::~AlternativeItemProxyModel() { } void AlternativeItemProxyModel::setShowSingleAlternative(bool show) { if (show == m_showSingle) return; m_showSingle = show; invalidateFilter(); } bool AlternativeItemProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const { Item *item = sourceModel()->index(source_row, 0, source_parent).data(AltItemRole).value(); return !item || m_showSingle || item->countAlternatives() > 1; } #include "alternativemodels.moc" kalternatives-0.13/src/slavewidget.h0000644000175000017500000000204011116775607017050 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef SLAVEWIDGET_H #define SLAVEWIDGET_H #include "ui_slavewidget.h" struct Slave; class SlaveWidget : public QWidget, private Ui::SlaveWidgetUi { Q_OBJECT public: explicit SlaveWidget(Slave *slave, QWidget *parent = 0); ~SlaveWidget(); QString slavePath() const; signals: void slaveChanged(const QString &); private slots: void slotTextChanged(const QString &); private: Slave *m_slave; }; #endif kalternatives-0.13/src/config-kalternatives.h.cmake0000644000175000017500000000013711125655543021731 0ustar danieldaniel/* distros */ #cmakedefine DISTRO_DPKG 1 #cmakedefine DISTRO_RPM 1 #cmakedefine DISTRO_RPM_2 1 kalternatives-0.13/src/addalternatives.cpp0000644000175000017500000000672111117211075020232 0ustar danieldaniel/*************************************************************************** * Copyright (C) 2004 by Mario Bensi * * Copyright (C) 2008 by Pino Toscano * * * * This program 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 2 of the License, or * * (at your option) any later version. * * * * This program 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 this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "addalternatives.h" #include "altparser.h" #include "slavewidget.h" #include #include AddAlternatives::AddAlternatives(Item* item, QWidget *parent) : KDialog(parent), m_item(item), m_alternative(0) { setupUi(mainWidget()); mainWidget()->layout()->setMargin(0); setButtons(Ok | Cancel); setCaption(i18n("Add Alternative")); showButtonSeparator(true); m_Path->setWindowTitle( i18n( "Choose Alternative" ) ); m_Path->setFilter( i18n( "*|All Files" ) ); m_Path->setMode( KFile::File | KFile::LocalOnly ); const int slaveCount = item->getSlaves()->count(); if (slaveCount > 0) { SlaveList *slaves = item->getSlaves(); QWidget *w = new QWidget; QVBoxLayout *lay = new QVBoxLayout(w); for (int i = 0; i < slaveCount; ++i) { if (i > 0) lay->addWidget(new KSeparator(Qt::Horizontal, w)); SlaveWidget *sw = new SlaveWidget(slaves->at(i), w); lay->addWidget(sw); m_slaveWidgets.append(sw); connect(sw, SIGNAL(slaveChanged(QString)), this, SLOT(slotCheckSlaves())); } w->show(); m_slavesArea->setWidget(w); } else { m_slavesGroup->hide(); } enableButtonOk(false); connect(m_Path, SIGNAL(textChanged(QString)), this, SLOT(slotCheckSlaves())); connect(this, SIGNAL(okClicked()), this, SLOT(slotOkClicked())); } AddAlternatives::~AddAlternatives() { } QSize AddAlternatives::sizeHint() const { return QSize(400, KDialog::sizeHint().height()); } void AddAlternatives::slotCheckSlaves() { bool ok = !m_Path->url().isEmpty(); int i = 0; while ((i < m_slaveWidgets.count()) && ok) { ok = !m_slaveWidgets.at(i)->slavePath().isEmpty(); ++i; } enableButtonOk(ok); } void AddAlternatives::slotOkClicked() { m_alternative = new Alternative(m_item); Q_ASSERT(!m_Path->url().toLocalFile().isEmpty()); m_alternative->setPath(m_Path->url().toLocalFile()); m_alternative->setPriority(m_Priority->value()); Q_FOREACH (SlaveWidget *sw, m_slaveWidgets) { Q_ASSERT(!sw->slavePath().isEmpty()); m_alternative->addSlave(sw->slavePath()); } } #include "addalternatives.moc" kalternatives-0.13/src/mainwindow.ui0000644000175000017500000002067711233773516017111 0ustar danieldaniel MainWindow 0 0 615 490 0 0 0 0 Qt::Horizontal 0 0 This is a list of the available alternative groups. true false Options 0 0 If this option is active, all the alternative groups with only one alternative available will be hidden from the list. &Hide useless 0 0 75 true Status: false 0 0 <qt>The status of the current alternative: <ul> <li>Automatic: the alternative system will always choose the alternative with the highest priority, updating it (if necessary) when an alternative is installed or removed</li> <li>Manual: the choice is done manually, updated by the alternative system only when it is uninstalled</li> </ul> </qt> Qt::Horizontal QSizePolicy::Expanding 88 20 0 0 14 75 true Automake Qt::AlignCenter false Qt::Horizontal QSizePolicy::Expanding 88 20 This shows the alternatives available for the selected group. true false true true Qt::Horizontal QSizePolicy::Expanding 40 20 &Add &Properties &Delete KComboBox QComboBox
kcombobox.h
KPushButton QPushButton
kpushbutton.h
kcombobox.h kpushbutton.h kpushbutton.h kpushbutton.h
kalternatives-0.13/pics/hi48-action-alternative-broken.png0000644000175000017500000000734111117342773023063 0ustar danieldanielPNG  IHDR00WbKGD pHYs^tIME 3ΐ!nIDATxyp}?﹇d],˖-c`Ri C0`id&(L00`SHIMoٖ%KNxJk@ә|G_}>{] _Pr#.P w1㠬u ^k9 &CC/Ξr? pBeyQ]@SXܹHpDps9XLW HGSoǻ_=޾tz.K5;$k4N2kY BzB0 ǃ#$ZN1>mmұ?Uskzq maL| gH#w3kK߾v6P yvv4^,.-?col"q%gJ0(nYw6~d?umD'o%0ׁO> l9!lƲvƧ!xaW憺M[Ӵ #&{:ylon:L29x?(3PuKq%\5P[ {W.[0iPyqc, ؐ3! Մ7,kh_Vͣrŗē?߅5!od="cp/;t%Sgu(&7U_%PWSRT\@7/B&{u; fVPegI(P.9F;Iv' xײs]o疊{(+ Qz_$L43ʯ/ׯ@Ս "W:k}`iczЃƐmB(Ps}'!}h7W6EqmV&J$.Nß 'kbYw˦on!\؄ FUxI\f 7ضcYgnڹ6|͡ Ysfl, !J;S=1vw j")s xt"E8k1n6=\^u;u]f=i?ڸNE5ԣKGSώL7+a* B%,+A$_\+[dGjfQnrPD>cOD{Vua~x[SiFhZIEn^pevT1,+L~zh[Ύo[X <] V&jP;Ud܉q,gΓl; aCi ._cŽ86LW&hKg3ړ ;~nƳV"ۈzA0a3hvmt,JtA'/d{U«/=եt;N΄mG,uLlpÇ EPS:PXIݝAn]i}Cv_P]ٿq~ubT&UWK˧}39(6ؾhN*Ԧq^;%TE:"\ \HXA\E?hn̮ hk\q >xgJ?)lu;c$b [d(4(- ` 0-/@t\(|JQhtf֔?-KVt}<ΟM ʟqn¸]@$+Hؕ30|+>LS3h0E_'o+n-M LXnPh]I φY1|BPB-PU|p2+څp&q0| -Ps!H J%]It282+dWV0l 4ýGk :\Qm͒Cӝ[#CY+V`H,7ի$q|Q"&{9OK'[@0_;Ǐۓ*0 8J*.i$刓1@3'.eh@Jo@V="( m1 ϓͮ7R%s'(:8# [!>mA rQ OF3χ2ܮjR`n?34٥%80Bʤ S8 0bʝWqQawgbi q?9S<^6/ 3Ԓ:o vQ !x#. J~G$5>>jfظ6]h(kh>jOc'l~-ݧ16u*Y +\9pFz}8=BbW%&hsy*$֨r?=ҙF`߫+=)jȼ ?&-n@5 j2D.{[GLlơ ~ّ`r7W3}k(3nw \':;nb9jZH-_eo 5ɡK+D$Ƙ'{Ic (K;RfY)gMZ^u -)06FkjIY0n*K&)顬P%r})rbURvu'~!O@0n.7mE:L1&K=lBăq vRf3] "& nc$n}p'4@+॰_c&.1\1 _ЋO Ӿ1TEa>r1';!Hccr}ܧCG0Up.)q8'ynD^/cZP`A1,nTS0#anB((SAOOxTgxWAw`~CUE¦TWF}Y Mãj8FR#iusR9! 6 $ ʿjP<+AU]zW@"MGT,OFыD\"\| ?vٳzz~/:i*p?aDobD7oX Ũ#94hD(誊IsH!zeϞ+ka¦50QgGqr9[G߻`IWyMU Q }|Z/oX5bZu!z 0v씩3N^"w|$A~`e^߷Zx†K50KN Sywّz0kH |a-PDcZp dGUx&,c՗ZwW.;`iހKDoC؟Hy|wY 6.VIE>ùe&)XzaҊp3oVH݊wӰE(|:3B8\ɩ3Uy&-YB<| ;%n/. 4+'ct o6~=t(A>W0&.J (n,Y%Lt~]8Be)$!n7\>7tꀯTeD*Le2J5Cfu"5ʌƤI+6MgV27/c_T^+H@3T,$F-%dZxR G>藛7=Ҿi9jt6Tzrd) @5=?vWjcr1Q@[Mib( o, xYeE xMmrɰHv=@G h[ʽ w9R8Ͼxj:%ޠ\^nZ4yeD*[*,8!.LKDZ-|k J O.+Fdx+F 'O@"m𯁡\֏1F }Y }6}K'쮪Ѩ @vKL 1_蓚x.+@\[eZhI X{*+n4,ɜXr68|$R EIކs+_j~fEяnLQ쪝NDy I -HVGP- r RypE-3!6Ѱ`M/ޮ2x- -p1p`,lds&e{F<˦Y MJ!noW=zqy1x3i  GiZߚ5AEz$ , eѣ̌/K6\pClBHq r3@rj#oa:ϣIENDB`kalternatives-0.13/pics/CMakeLists.txt0000644000175000017500000000007411117342773017270 0ustar danieldanielkde4_install_icons(${DATA_INSTALL_DIR}/kalternatives/icons) kalternatives-0.13/pics/hi22-action-alternative-broken.png0000644000175000017500000000250011117342773023043 0ustar danieldanielPNG  IHDRĴl; pHYs^tIME ( jbKGDIDAT{L~w!EPԒC1 ĜĩH!烗K"$ sP yH(%(0(|J0tm)ʵpM6lSx@c? S:BB*n_kSӃjk~_XxcԺõxQFCooj o^絼<沿W7mb[ x8x5;xl1c[lkV;3]LX/uړ=AQڶd1{׭cOfxLR@axn- lKNf~6V2>ɬs`H`p9S׸8y6.ыX!Js_䠛ss[r.Ob8{$v:<]nD"T r\k,AZQ(c)~hi =J)XEܢ-* Ej 77#բ嬝],$XY# "%@X`)] ~5[)Ky{D#gB؉ B+[%eLjG /&g@$+ՎÎ"xc(3|X!6l1E1J$;Qe6SJw raOxjs%cZ@jiB̽+WN$1qO{F-!y a !pJ)v)0Vրql39y${t6 V:yP:bn}{^RsW2Cu?T.6xQހr:@Р[0 _%OzI$ dca(j '4A@IENDB`kalternatives-0.13/po/CMakeLists.txt0000644000175000017500000000040311241105471016732 0ustar danieldanieladd_subdirectory(en_GB) add_subdirectory(es) add_subdirectory(et) add_subdirectory(fr) add_subdirectory(gl) add_subdirectory(nds) add_subdirectory(pt) add_subdirectory(pt_BR) add_subdirectory(ro) add_subdirectory(sv) add_subdirectory(tr) add_subdirectory(uk) kalternatives-0.13/po/gl/kalternatives.po0000644000175000017500000002022711241105462020016 0ustar danieldaniel# translation of kalternatives.po to Galician # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Marce Villarino , 2008. # marce villarino , 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-02-22 19:21+0100\n" "Last-Translator: marce villarino \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 0.2\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Engadir a alternativa" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Escoller unha alternativa" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Todos os ficheiros" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "O grupo de alternativas está estragado." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(estragada)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Opción" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioridade" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Descrición" #: src/altparser.cpp:146 msgid "no description" msgstr "non hai descrición" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "" #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Engadir" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Propriedades" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automática" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manual" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Desexa realmente eliminar a alternativa «%1»?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Borrar a alternativa" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Propriedades da alternativa" #: src/kalternatives.cpp:257 #, fuzzy #| msgid "" #| "

Kalternatives

\n" #| "Kalternatives allows you to configure the system alternatives in Debian/" #| "Fedora/Mandriva distributions." msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Kalternatives

\n" "Kalternatives permítelle configurar o sistema de alternativas das " "distribucións Debian/Fedora/Mandriva." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Nome" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Rota" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Escoller un escravo" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Ligazón ao escravo para %1:" #: src/aboutdata.h:24 #, fuzzy #| msgid "KDE manager for the Debian/Fedora/Mandriva alternatives system" msgid "KDE manager for the distribution alternatives system." msgstr "Xestor de KDE para o sistema de alternativas de Debian/Fedora/Mandriva" #: src/aboutdata.h:26 #, fuzzy #| msgid "" #| "© 2004 Juanjo Álvarez Martinez\n" #| "© 2004 Mario Bensi\n" #| "© 2008 Pino Toscano" msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Mantenedor actual" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Autor orixinal" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "mvillarino" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "mvillarino@users.sourceforge.net" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Rota:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioridade:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Escravos:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "" #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 #, fuzzy #| msgid "Option" msgid "Options" msgstr "Opción" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 #, fuzzy #| msgid "&Hide useless alternatives" msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Acochar as alternativas inútiles" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Estado:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Borrar" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Descrición:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Escravos" #~ msgid "Alternatives" #~ msgstr "Alternativas" #~ msgid "Alternatives Manager" #~ msgstr "Xestor das alternativas" kalternatives-0.13/po/gl/CMakeLists.txt0000644000175000017500000000016211241105462017336 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(gl ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/en_GB/kalternatives.po0000644000175000017500000001765611241105456020405 0ustar danieldaniel# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Andrew Coles , 2009. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-03-29 00:03+0000\n" "Last-Translator: Andrew Coles \n" "Language-Team: British English \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 0.3\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Add Alternative" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Choose Alternative" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|All Files" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Broken alternative group." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(broken)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Option" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Priority" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Description" #: src/altparser.cpp:146 msgid "no description" msgstr "no description" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "" #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Add" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Properties" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automatic" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manual" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Are you really sure you want to delete the alternative '%1'?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Delete Alternative" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Alternative Properties" #: src/kalternatives.cpp:257 #, fuzzy #| msgid "" #| "

Kalternatives

\n" #| "Kalternatives allows you to configure the system alternatives in Debian/" #| "Fedora/Mandriva distributions." msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Kalternatives

\n" "Kalternatives allows you to configure the system alternatives in Debian/" "Fedora/Mandriva distributions." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Name" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Path" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Choose Slave" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Slave link for %1:" #: src/aboutdata.h:24 #, fuzzy #| msgid "KDE manager for the Debian/Fedora/Mandriva alternatives system" msgid "KDE manager for the distribution alternatives system." msgstr "KDE manager for the Debian/Fedora/Mandriva alternatives system" #: src/aboutdata.h:26 #, fuzzy #| msgid "" #| "© 2004 Juanjo Álvarez Martinez\n" #| "© 2004 Mario Bensi\n" #| "© 2008 Pino Toscano" msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Current maintainer" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Original author" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Andrew Coles" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "andrew_coles@yahoo.co.uk" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Path:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Priority:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Slaves:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "" #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 #, fuzzy #| msgid "Option" msgid "Options" msgstr "Option" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 #, fuzzy #| msgid "&Hide useless alternatives" msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Hide useless alternatives" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Status:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Delete" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Description:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Slaves" #~ msgid "Alternatives" #~ msgstr "Alternatives" #~ msgid "Alternatives Manager" #~ msgstr "Alternatives Manager" kalternatives-0.13/po/en_GB/CMakeLists.txt0000644000175000017500000000016511241105456017714 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(en_GB ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/uk/kalternatives.po0000644000175000017500000002262411241105471020036 0ustar danieldaniel# translation of kalternatives.po to Ukrainian # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Yuri Chornoivan , 2008, 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-06-25 22:22+0300\n" "Last-Translator: Yuri Chornoivan \n" "Language-Team: Ukrainian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 0.3\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Додати варіант" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Обрати варіант" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Всі файли" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Пошкоджена група варіантів." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Групи" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(пошкоджено)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Параметр" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Пріоритет" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Опис" #: src/altparser.cpp:146 msgid "no description" msgstr "без опису" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "Вилучає позначений варіант з поточної групи." #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Додати" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "Додає новий варіант для вибраної групи." #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Властивості" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" "Показує властивості (шлях, пріоритет і підлеглі засоби) позначеного варіанта." #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Автоматично" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Вручну" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Ви справді бажаєте вилучити варіант «%1»?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Вилучити варіант" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Властивості варіантів" #: src/kalternatives.cpp:257 msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Налаштування варіантів

\n" "За допомогою цього модуля ви можете налаштувати систему варіантів у " "дистрибутивах Debian/Fedora/Mandriva/openSUSE/Ubuntu." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Назва" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Шлях" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Оберіть підлеглий зв’язок" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Підлеглий зв’язок для %1:" #: src/aboutdata.h:24 msgid "KDE manager for the distribution alternatives system." msgstr "Інструмент керування KDE для системи варіантів дистрибутива." #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Поточний супровідник" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Перший автор" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Юрій Чорноіван" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "yurchor@ukr.net" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Шлях:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Пріоритет:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Підлеглі зв’язки:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "Це список можливих груп варіантів." #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Параметри" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" "Якщо цей пункт позначено, всі групи варіантів, у яких є лише один варіант, " "буде приховано у списку." #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "С&ховати непотрібні" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Стан:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" "Стан поточного варіанта:\n" "
    \n" "
  • Автоматичний: система варіантів завжди обиратиме варіант з найвищим " "пріоритетом, з його оновленням (за потреби) у разі встановлення або " "вилучення варіанта
  • \n" "
  • Ручний: вибір буде виконано вручну, з оновленням системи варіантів лише " "за вилучення системи
  • \n" "
\n" "
\n" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "Тут буде показано варіанти, що містяться у позначеній групі." #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Вилучити" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Опис:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Підлеглі засоби" #~ msgid "Alternatives" #~ msgstr "Варіанти" #~ msgid "Alternatives Manager" #~ msgstr "Керування варіантами" kalternatives-0.13/po/uk/CMakeLists.txt0000644000175000017500000000016211241105471017353 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(uk ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/ro/kalternatives.po0000644000175000017500000002001611241105466020034 0ustar danieldaniel# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Sergiu Bivol , 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-04-28 15:22+0300\n" "Last-Translator: Sergiu Bivol \n" "Language-Team: Romanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 0.3\n" "Plural-Forms: Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > " "0 && n%100 < 20)) ? 1 : 2;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Adaugă alternativă" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Alege alternativa" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Toate fișierele" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Grup de alternative defect." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(defectă)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Opțiune" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioritate" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Descriere" #: src/altparser.cpp:146 msgid "no description" msgstr "fără descriere" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternative" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "" #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Adaugă" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Proprietăți" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automată" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manuală" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Sigur doriți să ștergeți alternativa „%1”?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Șterge alternativa" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Proprietăți alternativă" #: src/kalternatives.cpp:257 #, fuzzy #| msgid "" #| "

Kalternatives

\n" #| "Kalternatives allows you to configure the system alternatives in Debian/" #| "Fedora/Mandriva distributions." msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Kalternative

\n" "Kalternative vă permite să configurați alternativele sistemului în " "distribuțiile Debian/Fedora/Mandriva." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Denumire" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Cale" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Alege sclav" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Legătură sclav pentru %1:" #: src/aboutdata.h:24 #, fuzzy #| msgid "KDE manager for the Debian/Fedora/Mandriva alternatives system" msgid "KDE manager for the distribution alternatives system." msgstr "Gestionar KDE pentru sistemul de alternative Debian/Fedora/Mandriva" #: src/aboutdata.h:26 #, fuzzy #| msgid "" #| "© 2004 Juanjo Álvarez Martinez\n" #| "© 2004 Mario Bensi\n" #| "© 2008 Pino Toscano" msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Responsabil actual" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Autor original" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Sergiu Bivol" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "sergiu@ase.md" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Cale:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioritate:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Sclavi:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "" #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 #, fuzzy #| msgid "Option" msgid "Options" msgstr "Opțiune" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 #, fuzzy #| msgid "&Hide useless alternatives" msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Ascunde alternativele inutile" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Stare:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "Ș&terge" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Descriere:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Sclavi" #~ msgid "Alternatives" #~ msgstr "Alternative" #~ msgid "Alternatives Manager" #~ msgstr "Gestionar de alternative" kalternatives-0.13/po/ro/CMakeLists.txt0000644000175000017500000000016211241105466017360 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(ro ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/pt/kalternatives.po0000644000175000017500000002041711241105464020042 0ustar danieldanielmsgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-06-27 13:38+0100\n" "Last-Translator: José Nuno Coelho Pires \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-POFile-SpellExtra: Fedora Juanjo Álvarez Mario Alvarez Kalternatives\n" "X-POFile-SpellExtra: Bensi Mandriva desinstalada\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Adicionar uma Alternativa" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Escolher a Alternativa" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Todos os Ficheiros" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Grupo de alternativas com problemas." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Grupos" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(com problemas)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Opção" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioridade" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Descrição" #: src/altparser.cpp:146 msgid "no description" msgstr "sem descrição" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "Remove a alternativa seleccionada do grupo actual." #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Adicionar" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "Adiciona uma nova alternativa ao grupo seleccionado." #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Propriedades" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" "Mostra as propriedades (localização, prioridade e filhos) da alternativa " "seleccionada." #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automática" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manual" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Tem a certeza que deseja remover a alternativa '%1'?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Apagar a Alternativa" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Propriedades da Alternativa" #: src/kalternatives.cpp:257 msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Configuração das Alternativas

\n" "Este módulo permite-lhe configurar as alternativas do sistema nas " "distribuições Debian/Fedora/Mandriva." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Nome" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Localização" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Escolha a Filha" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Ligação-filha de %1:" #: src/aboutdata.h:24 msgid "KDE manager for the distribution alternatives system." msgstr "" "Gestor do KDE para o sistema de alternativas do Debian/Fedora/Mandriva." #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Manutenção actual" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Autor original" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "José Nuno Pires" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "jncp@netcabo.pt" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Localização:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioridade:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Filhos:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "Esta é uma lista dos grupos de alternativas disponíveis." #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Opções" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" "Se esta opção estiver activa, todos os grupos de alternativas apenas com uma " "única alternativa ficarão escondidos na lista." #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Esconder as inúteis" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Estado:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" "O estado da alternativa actual:\n" "
    \n" "
  • Automático: o sistema de alternativas irá sempre escolher a alternativa " "com maior prioridade, actualizando-a (se necessário) quando for instalada ou " "removida alguma alternativa
  • \n" "
  • Manual: a escolha é feita manualmente, actualizada pelo sistema de " "alternativas apenas quando for desinstalada
  • \n" "
\n" "
\n" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "Isto mostra as alternativas disponíveis para o grupo seleccionado." #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Apagar" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Descrição:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Filhos" kalternatives-0.13/po/pt/CMakeLists.txt0000644000175000017500000000016211241105464017361 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(pt ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/sv/kalternatives.po0000644000175000017500000002047111241105467020052 0ustar danieldaniel# translation of kalternatives.po to Swedish # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Stefan Asserhäll , 2008, 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-06-25 20:23+0200\n" "Last-Translator: Stefan Asserhäll \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Lägg till alternativ" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Välj alternativ" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Alla filer" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Felaktig alternativgrupp." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Grupper" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(felaktig)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Inställning" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioritet" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Beskrivning" #: src/altparser.cpp:146 msgid "no description" msgstr "ingen beskrivning" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "Tar bort markerat alternativ från aktuell grupp." #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Lägg till" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "Lägger till ett nytt alternativ för markerad grupp." #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "Egenska&per" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" "Visar egenskaper (sökväg, prioritet och I/O-slavar) för det markerade " "alternativet." #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automatiskt" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manuellt" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Är du verkligen säker på att du vill ta bort alternativet '%1'?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Ta bort alternativ" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Alternativegenskaper" #: src/kalternatives.cpp:257 msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Alternativ inställning

\n" "Modulen låter dig anpassa systemalternativ i Debian, Fedora, Mandriva, " "OpenSuSE och Ubuntu distributioner." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Namn" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Sökväg" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Välj slav" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Slavlänk för %1:" #: src/aboutdata.h:24 msgid "KDE manager for the distribution alternatives system." msgstr "Hantering av alternativsystem för distributioner i KDE" #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Nuvarande utvecklare" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Ursprunglig upphovsman" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Stefan Asserhäll" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "stefan.asserhall@comhem.se" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Sökväg:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioritet:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Slavar:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "Det här är en lista över alla tillgängliga alternativgrupper." #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Alternativ" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" "Om alternativet är aktivt, kommer alla alternativgrupper med bara ett " "tillgängligt alternativ att döljas från listan." #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Dölj oanvändbara" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Status:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" "Det aktuella alternativets status:\n" "
    \n" "
  • Automatisk: alternativsystemet kommer alltid att välja alternativet med " "högst prioritet, och uppdatera det (om nödvändigt) när ett alternativ " "installeras eller tas bort
  • \n" "
  • Manuell: valet görs manuellt, och uppdateras bara av alternativsystemet " "när det avinstalleras
  • \n" "
\n" "
\n" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "Visar tillgängliga alternativ för markerad grupp." #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Ta bort" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Beskrivning:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Slavar" kalternatives-0.13/po/sv/CMakeLists.txt0000644000175000017500000000016211241105467017371 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(sv ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/pt_BR/kalternatives.po0000644000175000017500000001775711241105465020443 0ustar danieldaniel# translation of kalternatives.po to Brazilian Portuguese # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Luiz Fernando Ranghetti , 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-07-30 23:29-0300\n" "Last-Translator: Luiz Fernando Ranghetti \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.0\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Adicionar alternativa" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Escolher alternativa" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Todos os arquivos" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Grupo alternativo quebrado." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Grupos" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(quebrado)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Opção" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioridade" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Descrição" #: src/altparser.cpp:146 msgid "no description" msgstr "sem descrição" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "" #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Adicionar" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Propriedades" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automático" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manual" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Você quer mesmo remover a alternativa '%1'?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Remover alternativa" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Propriedades da alternativa" #: src/kalternatives.cpp:257 #, fuzzy #| msgid "" #| "

Kalternatives

\n" #| "Kalternatives allows you to configure the system alternatives in Debian/" #| "Fedora/Mandriva distributions." msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Kalternatives

\n" "O Kalternatives permite a você configurar o sistema de alternativas nas " "distribuições Debian/Fedora/Mandriva." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Nome" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Caminho" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Escolher escravo" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Link escravo para %1:" #: src/aboutdata.h:24 #, fuzzy #| msgid "KDE manager for the Debian/Fedora/Mandriva alternatives system" msgid "KDE manager for the distribution alternatives system." msgstr "" "O gerenciamento do sistema de alternativas do Debian/Fedora/Mandriva no KDE" #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Mantenedor atual" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Autor original" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Luiz Fernando Ranghetti" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "elchevive@opensuse.org" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Caminho:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioridade:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Escravos:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "" #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Opções" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 #, fuzzy #| msgid "&Hide useless alternatives" msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Ocultar alternativas não usadas" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Status:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Remover" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Descrição:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Escravos" #~ msgid "Alternatives" #~ msgstr "Alternativas" #~ msgid "Alternatives Manager" #~ msgstr "Gerenciador de alternativas" kalternatives-0.13/po/pt_BR/CMakeLists.txt0000644000175000017500000000016511241105465017750 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(pt_BR ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/es/kalternatives.po0000644000175000017500000002071511241105457020031 0ustar danieldaniel# translation of kalternatives.po to Spanish # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Cristina Yenyxe Gonzalez Garcia , 2009. # Eloy Cuadra , 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-07-29 21:32+0200\n" "Last-Translator: Cristina Yenyxe Gonzalez Garcia \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Añadir alternativa" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Seleccionar alternativa" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Todos los archivos" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Grupo de alternativas corrupto." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Grupos" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(corrupto)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Opción" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioridad" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Descripción" #: src/altparser.cpp:146 msgid "no description" msgstr "sin descripción" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "Elimina la alternativa seleccionada del grupo actual." #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Añadir" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "Añade una nueva alternativa al grupo seleccionado." #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Propiedades" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" "Muestra las propiedades (ruta, prioridad y esclavos) de la alternativa " "seleccionada." #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automático" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manual" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "¿Está seguro de que desea eliminar la alternativa %1?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Eliminar alternativa" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Propiedades de alternativas" #: src/kalternatives.cpp:257 msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Configuración de alternativas

\n" "Este módulo le permite configurar las alternativas del sistema en " "distribuciones Debian/Fedora/Mandriva/openSUSE/Ubuntu." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Nombre" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Ruta" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Seleccione esclavo" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Enlace esclavo para %1:" #: src/aboutdata.h:24 msgid "KDE manager for the distribution alternatives system." msgstr "Sistema de gestión de alternativas de KDE para distribuciones." #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Mantenedor actual" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Autor original" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Cristina Yenyxe González García" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "the.blue.valkyrie@gmail.com" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Ruta:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioridad:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Esclavos:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "Esta es una lista de los grupos de alternativas disponibles." #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Opciones" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" "Si activa esta opción, se ocultarán todos los grupos de alternativas que " "solo incluyan una en su lista." #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Ocultar inútiles" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Estado:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" "Estado de la alternativa actual:\n" "
    \n" "
  • Automático: El sistema de alternativas siempre seleccionará la " "alternativa con la prioridad más alta, actualizándola (si es necesario) " "cuando se instale o elimine una alternativa
  • \n" "
  • Manual: La elección se hace manualmente, y es actualizada por el sistema " "de alternativa solo en la desinstalación
  • \n" "
\n" "
\n" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "Muestra las alternativas disponibles para el grupo seleccionado." #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Borrar" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Descripción:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Esclavos" kalternatives-0.13/po/es/CMakeLists.txt0000644000175000017500000000016211241105457017347 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(es ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/nds/kalternatives.po0000644000175000017500000002017611241105463020204 0ustar danieldaniel# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Sönke Dibbern , 2008. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2008-12-26 03:31+0100\n" "Last-Translator: Sönke Dibbern \n" "Language-Team: Low Saxon \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 0.3\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Alternatiev tofögen" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Anternatiev utsöken" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|All Dateien" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Schaadhaftig Alternativen-Koppel." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(schaadhaftig)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Optschoon" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioriteet" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Beschrieven" #: src/altparser.cpp:146 msgid "no description" msgstr "Keen Beschrieven" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "" #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Tofögen" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Egenschappen" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automaatsch" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Vun Hand" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Wullt Du de Alternative \"%1\" redig wegdoon?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Alternative wegdoon" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Alternatiev-Egenschappen" #: src/kalternatives.cpp:257 #, fuzzy #| msgid "" #| "

Kalternatives

\n" #| "Kalternatives allows you to configure the system alternatives in Debian/" #| "Fedora/Mandriva distributions." msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Kalternatives

\n" "Mit Kalternatives kannst Du de Systeem-Alternativen bi de Distributschonen " "Debian, Fedora un Mandriva instellen." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Naam" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Padd" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Moduul utsöken" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Moduultowiesen för %1:" #: src/aboutdata.h:24 #, fuzzy #| msgid "KDE manager for the Debian/Fedora/Mandriva alternatives system" msgid "KDE manager for the distribution alternatives system." msgstr "KDE-Pleger för't Alternativen-Systeem vun Debian, Fedora un Mandriva" #: src/aboutdata.h:26 #, fuzzy #| msgid "" #| "© 2004 Juanjo Álvarez Martinez\n" #| "© 2004 Mario Bensi\n" #| "© 2008 Pino Toscano" msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Pleger opstunns" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Orginaal-Programmschriever" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Sönke Dibbern" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "s_dibbern@web.de" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Padd:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioriteet:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Modulen:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "" #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 #, fuzzy #| msgid "Option" msgid "Options" msgstr "Optschoon" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 #, fuzzy #| msgid "&Hide useless alternatives" msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "Nich nödig Alternative &versteken" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Status:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Wegdoon" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Beschrieven:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Modulen" #~ msgid "Alternatives" #~ msgstr "Alternativen" #~ msgid "Alternatives Manager" #~ msgstr "Alternativen-Pleger" #~ msgid "" #~ "Description:\n" #~ "%1\n" #~ msgstr "" #~ "Beschrieven:\n" #~ "%1\n" #~ msgid "Priority: %1\n" #~ msgstr "Prioriteet: %1\n" kalternatives-0.13/po/nds/CMakeLists.txt0000644000175000017500000000016311241105463017522 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(nds ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/et/kalternatives.po0000644000175000017500000002034211241105460020020 0ustar danieldaniel# translation of kalternatives.po to Estonian # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Marek Laane , 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-06-30 18:05+0300\n" "Last-Translator: Marek Laane \n" "Language-Team: Estonian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.0\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Lisa alternatiiv" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Vali alternatiiv" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Kõik failid" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Katkine altenatiivirühm" #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Rühmad" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(katki)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Valik" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Prioriteet" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Kirjeldus" #: src/altparser.cpp:146 msgid "no description" msgstr "kirjeldus puudub" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "Eemaldab valitud alternatiivi aktiivsest rühmast." #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "Lis&a" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "Lisab uue alternatiivi valitud rühma." #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Omadused" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "Näitab valitud alternatiivi omadusi (asukoht, prioriteet ja alamad)." #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automaatne" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Käsitsi" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Kas tõesti kustutada alternatiiv '%1'?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Kustuta alternatiiv" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Alternatiivi omadused" #: src/kalternatives.cpp:257 msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Alternatiivide seadistamine

\n" "See moodul pakub võimalust seadistada süsteemi alternatiivid Debiani/Fedora/" "Mandriva/openSUSE/Ubuntu distributsioonides." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Nimi" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Asukoht" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Vali alam" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "%1 alama link:" #: src/aboutdata.h:24 msgid "KDE manager for the distribution alternatives system." msgstr "KDE distributsioonide alternatiivide süsteemi haldur." #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004: Juanjo Álvarez Martinez\n" "© 2004: Mario Bensi\n" "© 2008-2009: Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Praegune hooldaja" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Algne autor" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Marek Laane" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "bald@smail.ee" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Asukoht:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Prioriteet:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Alamad:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "Saadaolevate alternatiivirühmade loend." #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Valikud" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" "Sisselülitamisel peidetakse loendis kõik alternatiivirühmad, kus on ainult " "üks alternatiiv." #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Kasutute peitmine" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Olek:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" "Aktiivne alternatiivi oleks:\n" "
    \n" "
  • Automaatne: alternatiivide süsteem valib alati kõrgeima prioriteediga " "alternatiivi, vajaduse korral seda uuendades, kui alternatiivi paigaldatakse " "või uuendatakse
  • \n" "
  • Käsitsi: valik tehakse käsitsi, uuendatakse alternatiivide süsteemi " "vahendusel ainult eemaldamise korra
  • \n" "
\n" "
\n" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "Näitab valitud rühmas saadaolevaid alternatiive." #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Kustuta" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Kirjeldus:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Alamad" #~ msgid "Alternatives" #~ msgstr "Alternatiivid" #~ msgid "Alternatives Manager" #~ msgstr "Alternatiivide haldur" kalternatives-0.13/po/et/CMakeLists.txt0000644000175000017500000000016211241105460017342 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(et ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/tr/kalternatives.po0000644000175000017500000001700111241105470020034 0ustar danieldaniel# translation of kalternatives.po to # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Serdar Soytetir , 2009. # E. , 2009. # Serhat Demirkol , 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-08-09 16:14+0300\n" "Last-Translator: Serdar Soytetir \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 0.3\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Alternatif Ekle" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Alternatif Seç" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Tüm Dosyalar" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Bozuk alternatif grubu." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Gruplar" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(bozuk)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Seçenek" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Öncelik" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Açıklama" #: src/altparser.cpp:146 msgid "no description" msgstr "açıklama yok" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "" #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Ekle" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "Özellik&ler" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Otomatik" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "El ile" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "'%1' alternatifini silmek istediğinizden gerçekten emin misiniz?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Alternatifi Sil" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Alternatif Özellikleri" #: src/kalternatives.cpp:257 msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Name" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Yol" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Bağımlı Seç" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "%1 için bağımlı bağlantı:" #: src/aboutdata.h:24 msgid "KDE manager for the distribution alternatives system." msgstr "Dağıtım alternatifleri sistemi için KDE yöneticisi." #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Projeyi yürüten" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Asıl yazar" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Serdar Soytetir" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "tulliana@gmail.com" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Yol:" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Öncelik:" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Bağımlılar:" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "" #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Seçenekler" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "Kullanışsızları &gizle" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "Durum:" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "" #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Sil" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Tanım:" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Bağımlılar" #~ msgid "Alternatives" #~ msgstr "Alternatifler" #~ msgid "Alternatives Manager" #~ msgstr "Alternatifler Yöneticisi" kalternatives-0.13/po/tr/CMakeLists.txt0000644000175000017500000000016211241105470017360 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(tr ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files}) kalternatives-0.13/po/fr/kalternatives.po0000644000175000017500000002110511241105461020016 0ustar danieldaniel# translation of kalternatives.po to Français # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Joëlle Cornavin , 2009. msgid "" msgstr "" "Project-Id-Version: kalternatives\n" "Report-Msgid-Bugs-To: http://bugs.kde.org\n" "POT-Creation-Date: 2009-07-30 06:58+0200\n" "PO-Revision-Date: 2009-07-07 10:29+0200\n" "Last-Translator: Joëlle Cornavin \n" "Language-Team: Français \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/addalternatives.cpp:35 msgid "Add Alternative" msgstr "Ajouter une alternative" #: src/addalternatives.cpp:38 msgid "Choose Alternative" msgstr "Choisir une alternative" #: src/addalternatives.cpp:39 src/slavewidget.cpp:22 msgid "*|All Files" msgstr "*|Tous les fichiers" #: src/alternativemodels.cpp:379 msgid "Broken alternative group." msgstr "Groupe d'alternatives dissocié." #: src/alternativemodels.cpp:436 msgctxt "Groups of alternatives" msgid "Groups" msgstr "Groupes" #: src/alternativemodels.cpp:749 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "(broken)\n" "\n" "%2" msgstr "" "%1\n" "(dissocié)\n" "\n" "%2" #: src/alternativemodels.cpp:751 #, kde-format msgctxt "%1 is the alternative path, %2 its description" msgid "" "%1\n" "\n" "%2" msgstr "" "%1\n" "\n" "%2" #: src/alternativemodels.cpp:809 msgid "Option" msgstr "Option" #: src/alternativemodels.cpp:811 msgid "Priority" msgstr "Priorité" #: src/alternativemodels.cpp:813 msgid "Description" msgstr "Description" #: src/altparser.cpp:146 msgid "no description" msgstr "aucune description" #: src/kalternatives.cpp:45 msgid "Kalternatives" msgstr "Kalternatives" #: src/kalternatives.cpp:79 msgid "Removes the selected alternative from the current group." msgstr "Supprime du groupe actuel l'alternative sélectionnée." #. i18n: file: src/mainwindow.ui:228 #. i18n: ectx: property (text), widget (KPushButton, m_bAdd) #: src/kalternatives.cpp:80 rc.cpp:42 msgid "&Add" msgstr "&Ajouter" #: src/kalternatives.cpp:81 msgid "Adds a new alternative for the selected group." msgstr "Ajoute une nouvelle alternative pour le groupe sélectionné." #. i18n: file: src/mainwindow.ui:235 #. i18n: ectx: property (text), widget (KPushButton, m_bProperties) #: src/kalternatives.cpp:82 rc.cpp:45 msgid "&Properties" msgstr "&Propriétés" #: src/kalternatives.cpp:83 msgid "" "Shows the properties (path, priority, and slaves) of the selected " "alternative." msgstr "" "Affiche les propriétés (emplacement, priorité et modules d'E/S) de " "l'alternative sélectionnée." #: src/kalternatives.cpp:85 msgctxt "Automatic alternative choice" msgid "Automatic" msgstr "Automatique" #: src/kalternatives.cpp:86 msgctxt "Manual alternative choice" msgid "Manual" msgstr "Manuel" #: src/kalternatives.cpp:173 #, kde-format msgid "Are you really sure you want to delete the alternative '%1'?" msgstr "Voulez-vous vraiment supprimer l'alternative « %1 » ?" #: src/kalternatives.cpp:174 msgid "Delete Alternative" msgstr "Supprimer l'alternative" #. i18n: file: src/propertieswindow.ui:13 #. i18n: ectx: property (windowTitle), widget (QWidget, PropertiesWindow) #: src/kalternatives.cpp:188 rc.cpp:51 msgid "Alternative Properties" msgstr "Propriétés de l'alternative" #: src/kalternatives.cpp:257 msgid "" "

Alternatives Configuration

\n" "This modules allows you to configure the system alternatives in Debian/" "Fedora/Mandriva/openSUSE/Ubuntu distributions." msgstr "" "

Configuration des alternatives

\n" "Ce module permet de configurer les alternatives système dans les " "distributions Debian/Fedora/Mandriva/openSUSE/Ubuntu." #: src/slavemodel.cpp:62 msgctxt "Slave name" msgid "Name" msgstr "Nom" #: src/slavemodel.cpp:64 msgctxt "Slave path" msgid "Path" msgstr "Emplacement" #: src/slavewidget.cpp:21 msgid "Choose Slave" msgstr "Choisir un module d'E/S" #: src/slavewidget.cpp:25 #, kde-format msgid "Slave link for %1:" msgstr "Lien du module d'E/S pour %1 :" #: src/aboutdata.h:24 msgid "KDE manager for the distribution alternatives system." msgstr "Gestionnaire KDE pour le système d'alternatives de distributions." #: src/aboutdata.h:26 msgid "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" msgstr "" "© 2004 Juanjo Álvarez Martinez\n" "© 2004 Mario Bensi\n" "© 2008-2009 Pino Toscano" #: src/aboutdata.h:31 msgid "Pino Toscano" msgstr "Pino Toscano" #: src/aboutdata.h:31 msgid "Current maintainer" msgstr "Mainteneur actuel" #: src/aboutdata.h:32 msgid "Juanjo Alvarez Martinez" msgstr "Juanjo Alvarez Martinez" #: src/aboutdata.h:32 src/aboutdata.h:33 msgid "Original author" msgstr "Auteur originel" #: src/aboutdata.h:33 msgid "Mario Bensi" msgstr "Mario Bensi" #: rc.cpp:1 msgctxt "NAME OF TRANSLATORS" msgid "Your names" msgstr "Joëlle Cornavin" #: rc.cpp:2 msgctxt "EMAIL OF TRANSLATORS" msgid "Your emails" msgstr "jcornavi@club-internet.fr" #. i18n: file: src/addalternativesui.ui:24 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #. i18n: file: src/propertieswindow.ui:21 #. i18n: ectx: property (text), widget (QLabel, label) #: rc.cpp:5 rc.cpp:54 msgid "Path:" msgstr "Emplacement :" #. i18n: file: src/addalternativesui.ui:37 #. i18n: ectx: property (text), widget (QLabel, textLabel2) #. i18n: file: src/propertieswindow.ui:55 #. i18n: ectx: property (text), widget (QLabel, label_3) #: rc.cpp:8 rc.cpp:62 msgid "Priority:" msgstr "Priorité :" #. i18n: file: src/addalternativesui.ui:62 #. i18n: ectx: property (title), widget (QGroupBox, m_slavesGroup) #: rc.cpp:11 msgid "Slaves:" msgstr "Modules d'E/S :" #. i18n: file: src/mainwindow.ui:42 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_altList) #: rc.cpp:14 msgid "This is a list of the available alternative groups." msgstr "Il s'agit d'une liste des groupes d'alternatives disponibles." #. i18n: file: src/mainwindow.ui:55 #. i18n: ectx: property (title), widget (QGroupBox, groupBox3) #: rc.cpp:17 msgid "Options" msgstr "Options" #. i18n: file: src/mainwindow.ui:67 #. i18n: ectx: property (whatsThis), widget (QCheckBox, m_hideAlt) #: rc.cpp:20 msgid "" "If this option is active, all the alternative groups with only one " "alternative available will be hidden from the list." msgstr "" "Si cette option est cochée, tous les groupes d'alternatives n'ayant qu'une " "alternative disponible seront cachés de la liste." #. i18n: file: src/mainwindow.ui:70 #. i18n: ectx: property (text), widget (QCheckBox, m_hideAlt) #: rc.cpp:23 msgctxt "Hide useless alternatives" msgid "&Hide useless" msgstr "&Masquer les alternatives inutiles" #. i18n: file: src/mainwindow.ui:100 #. i18n: ectx: property (text), widget (QLabel, textLabel1) #: rc.cpp:26 msgid "Status:" msgstr "État :" #. i18n: file: src/mainwindow.ui:122 #. i18n: ectx: property (whatsThis), widget (KComboBox, m_statusCombo) #: rc.cpp:29 msgid "" "The status of the current alternative:\n" "
    \n" "
  • Automatic: the alternative system will always choose the alternative " "with the highest priority, updating it (if necessary) when an alternative is " "installed or removed
  • \n" "
  • Manual: the choice is done manually, updated by the alternative system " "only when it is uninstalled
  • \n" "
\n" "
\n" msgstr "" "L'état de l'alternative actuelle :\n" "
    \n" "
  • Automatique : le système d'alternatives choisira toujours l'alternative " "ayant la priorité la plus élevée, la mettant à jour (si nécessaire) " "lorsqu'une alternative est installée ou supprimée
  • \n" "
  • Manuel : le choix s'effectue manuellement, la mise à jour est effectuée " "par le système d'alternatives uniquement si l'alternative est désinstallée\n" "
\n" "
\n" #. i18n: file: src/mainwindow.ui:191 #. i18n: ectx: property (whatsThis), widget (QTreeView, m_optionsList) #: rc.cpp:39 msgid "This shows the alternatives available for the selected group." msgstr "" "Cette commande affiche les alternatives disponibles pour le groupe " "sélectionné." #. i18n: file: src/mainwindow.ui:242 #. i18n: ectx: property (text), widget (KPushButton, m_bDelete) #: rc.cpp:48 msgid "&Delete" msgstr "&Supprimer" #. i18n: file: src/propertieswindow.ui:38 #. i18n: ectx: property (text), widget (QLabel, label_2) #: rc.cpp:58 msgid "Description:" msgstr "Description :" #. i18n: file: src/propertieswindow.ui:74 #. i18n: ectx: property (title), widget (QGroupBox, slavesGroup) #: rc.cpp:66 msgid "Slaves" msgstr "Modules d'E/S" kalternatives-0.13/po/fr/CMakeLists.txt0000644000175000017500000000016211241105461017342 0ustar danieldanielfile(GLOB _po_files *.po) gettext_process_po_files(fr ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files})