From ab890714705ba6b4242a1612bc58f84a572ca114 Mon Sep 17 00:00:00 2001 From: milisbir Date: Fri, 31 Aug 2018 15:36:15 +0300 Subject: [PATCH] mugshot --- talimatname/genel/m/mugshot-milis/talimat | 14 - .../m/mugshot/missing_default_face.patch | 28 -- talimatname/genel/m/mugshot/mugshot-tr.po | 240 ++++++++++++++++++ talimatname/genel/m/mugshot/mugshot.kur-kos | 1 + .../genel/m/mugshot/office-phone.patch | 35 --- talimatname/genel/m/mugshot/talimat | 21 +- 6 files changed, 248 insertions(+), 91 deletions(-) delete mode 100644 talimatname/genel/m/mugshot-milis/talimat delete mode 100644 talimatname/genel/m/mugshot/missing_default_face.patch create mode 100644 talimatname/genel/m/mugshot/mugshot-tr.po create mode 100644 talimatname/genel/m/mugshot/mugshot.kur-kos delete mode 100644 talimatname/genel/m/mugshot/office-phone.patch diff --git a/talimatname/genel/m/mugshot-milis/talimat b/talimatname/genel/m/mugshot-milis/talimat deleted file mode 100644 index 8be191fba..000000000 --- a/talimatname/genel/m/mugshot-milis/talimat +++ /dev/null @@ -1,14 +0,0 @@ -# Tanım: Kişisel bilgileri düzenleme uygulaması -# URL: https://launchpad.net/mugshot -# Paketçi: milisarge -# Gerekler: intltool gtk3 python3-distutils-extra python3-pexpect dbus-python python3-cairo python3-gobject accountsservice -# Grup: sistem - -isim=mugshot-milis -surum=0.3.2 -devir=1 -kaynak=(https://kaynaklar.milislinux.org/$isim-$surum.tar.gz::$isim-$surum.tar.gz) - -derle() { - cp -r "${SRC}/usr" "${PKG}/" -} diff --git a/talimatname/genel/m/mugshot/missing_default_face.patch b/talimatname/genel/m/mugshot/missing_default_face.patch deleted file mode 100644 index 4502e84f0..000000000 --- a/talimatname/genel/m/mugshot/missing_default_face.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -Naur ./mugshot-0.3.2.old/mugshot/MugshotWindow.py ./mugshot-0.3.2/mugshot/MugshotWindow.py ---- ./mugshot-0.3.2.old/mugshot/MugshotWindow.py 2016-11-06 09:13:47.604768017 -0500 -+++ ./mugshot-0.3.2/mugshot/MugshotWindow.py 2016-11-06 09:14:11.431116827 -0500 -@@ -257,10 +257,11 @@ - logger.debug('Found profile image: %s' % str(image)) - - if os.path.isfile(face): -- if os.path.samefile(image, face): -- self.updated_image = face -- else: -- self.updated_image = None -+ if os.path.exists(image): -+ if os.path.samefile(image, face): -+ self.updated_image = face -+ else: -+ self.updated_image = None - self.set_user_image(face) - elif os.path.isfile(image): - self.updated_image = image -@@ -612,7 +613,7 @@ - success = False - - logger.debug('Updating Office Phone...') -- -+ - command = "%s -w \"%s\" %s" % (chfn, office_phone, username) - # Office phone is potentially handled by the -o flag in newer versions of chfn - command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username) diff --git a/talimatname/genel/m/mugshot/mugshot-tr.po b/talimatname/genel/m/mugshot/mugshot-tr.po new file mode 100644 index 000000000..ccf74db06 --- /dev/null +++ b/talimatname/genel/m/mugshot/mugshot-tr.po @@ -0,0 +1,240 @@ +# English (Australia) translation for mugshot +# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 +# This file is distributed under the same license as the mugshot package. +# FIRST AUTHOR , 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: mugshot\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2018-04-26 05:42+0000\n" +"PO-Revision-Date: 2013-07-19 10:01+0000\n" +"Last-Translator: Cihan Alkan \n" +"Language-Team: Turkish (Türkçe) \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2018-04-27 05:47+0000\n" +"X-Generator: Launchpad (build 18623)\n" + +#: ../mugshot.desktop.in.h:1 +msgid "About Me" +msgstr "Hakkımda" + +#: ../mugshot.desktop.in.h:2 +msgid "Configure your profile image and contact details" +msgstr "Profil resminizi ve iletişim bilgilerinizi yapılandırın" + +#: ../data/ui/CameraMugshotDialog.ui.h:1 +msgid "Capture - Mugshot" +msgstr "Capture - Mugshot" + +#: ../data/ui/MugshotWindow.ui.h:1 +msgid "Preview" +msgstr "Önizleme" + +#: ../data/ui/MugshotWindow.ui.h:2 +msgid "Center" +msgstr "Ortala" + +#: ../data/ui/MugshotWindow.ui.h:3 +msgid "Left" +msgstr "Sol" + +#: ../data/ui/MugshotWindow.ui.h:4 +msgid "Right" +msgstr "Sağ" + +#: ../data/ui/MugshotWindow.ui.h:5 +msgid "Crop" +msgstr "Kırp" + +#: ../data/ui/MugshotWindow.ui.h:6 +msgid "Select from stock…" +msgstr "Galeriden seç…" + +#: ../data/ui/MugshotWindow.ui.h:7 +msgid "Capture from camera…" +msgstr "Kamera ile çek…" + +#: ../data/ui/MugshotWindow.ui.h:8 +msgid "Browse…" +msgstr "Araştır…" + +#: ../data/ui/MugshotWindow.ui.h:9 ../mugshot/MugshotWindow.py:566 +msgid "Mugshot" +msgstr "Mugshot" + +#: ../data/ui/MugshotWindow.ui.h:10 +msgid "First Name" +msgstr "Adınız" + +#: ../data/ui/MugshotWindow.ui.h:11 +msgid "Last Name" +msgstr "Soyadınız" + +#: ../data/ui/MugshotWindow.ui.h:12 +msgid "Initials" +msgstr "Baş harfleri" + +#: ../data/ui/MugshotWindow.ui.h:13 +msgid "Home Phone" +msgstr "Ev Telefonu" + +#: ../data/ui/MugshotWindow.ui.h:14 +msgid "Email Address" +msgstr "E-Posta Adresi" + +#: ../data/ui/MugshotWindow.ui.h:15 +msgid "Office Phone" +msgstr "İş Telefonu" + +#: ../data/ui/MugshotWindow.ui.h:16 +msgid "Fax" +msgstr "Belgegeçer" + +#: ../data/ui/MugshotWindow.ui.h:17 +msgid "Select a photo…" +msgstr "Bir resim seç…" + +#: ../mugshot/__init__.py:36 +msgid "Show debug messages (-vv debugs mugshot_lib also)" +msgstr "Hata ayıklama mesajlarını göster (-vv debugs mugshot_lib also)" + +#. Set the record button to retry, and disable it until the capture +#. finishes. +#: ../mugshot/CameraMugshotDialog.py:268 +msgid "Retry" +msgstr "Tekrar dene" + +#: ../mugshot/MugshotWindow.py:343 +msgid "Authentication cancelled." +msgstr "Kimlik doğrulama iptal edildi." + +#: ../mugshot/MugshotWindow.py:346 +msgid "Authentication failed." +msgstr "Kimlik doğrulama başarısız oldu." + +#: ../mugshot/MugshotWindow.py:349 +msgid "An error occurred when saving changes." +msgstr "Değişiklikler kaydedilirken bir hata oluştu." + +#: ../mugshot/MugshotWindow.py:351 +msgid "User details were not updated." +msgstr "Kullanıcı detayları güncellenmedi." + +#: ../mugshot/MugshotWindow.py:453 +msgid "Update Pidgin buddy icon?" +msgstr "Pidgin arkadaş simgesini güncelle?" + +#: ../mugshot/MugshotWindow.py:454 +msgid "Would you also like to update your Pidgin buddy icon?" +msgstr "Pidgin arkadaş simgenizi güncellemek ister misiniz?" + +#: ../mugshot/MugshotWindow.py:567 +msgid "Enter your password to change user details." +msgstr "Kullanıcı bilgilerini değiştirmek için şifrenizi girin." + +#: ../mugshot/MugshotWindow.py:569 +msgid "" +"This is a security measure to prevent unwanted updates\n" +"to your personal information." +msgstr "" +"Bu, kişisel bilgilerinizde istenmeyen güncellemeleri\n" +"önlemek için bir güvenlik önlemidir." + +#: ../mugshot/MugshotWindow.py:820 +msgid "Update LibreOffice user details?" +msgstr "LibreOffice kullanıcı ayrıntılarını güncelle?" + +#: ../mugshot/MugshotWindow.py:821 +msgid "Would you also like to update your user details in LibreOffice?" +msgstr "Ayrıca kullanıcı bilgilerinizi LibreOffice'de güncellemek ister misiniz?" + +#: ../mugshot_lib/SudoDialog.py:124 +msgid "Password Required" +msgstr "Şifre Gerekli" + +#: ../mugshot_lib/SudoDialog.py:161 +msgid "Incorrect password... try again." +msgstr "Yanlış şifre ... tekrar deneyin." + +#: ../mugshot_lib/SudoDialog.py:171 +msgid "Password:" +msgstr "Parola:" + +#. Buttons +#: ../mugshot_lib/SudoDialog.py:182 +msgid "Cancel" +msgstr "İptal" + +#: ../mugshot_lib/SudoDialog.py:185 +msgid "OK" +msgstr "Tamam" + +#: ../mugshot_lib/SudoDialog.py:206 +msgid "" +"Enter your password to\n" +"perform administrative tasks." +msgstr "" + +#: ../mugshot_lib/SudoDialog.py:208 +#, python-format +msgid "" +"The application '%s' lets you\n" +"modify essential parts of your system." +msgstr "" + +#: ../data/metainfo/mugshot.appdata.xml.in.h:1 +msgid "Lightweight user configuration" +msgstr "Hafif kullanıcı yapılandırma" + +#: ../data/metainfo/mugshot.appdata.xml.in.h:2 +msgid "" +"Mugshot enables users to easily update personal contact information. With " +"Mugshot, users are able to:" +msgstr "" + +#: ../data/metainfo/mugshot.appdata.xml.in.h:3 +msgid "" +"Set the account photo displayed at login and optionally synchronize this " +"photo with their Pidgin buddy icon" +msgstr "" + +#: ../data/metainfo/mugshot.appdata.xml.in.h:4 +msgid "" +"Set account details stored in /etc/passwd (usable with the finger command) " +"and optionally synchronize with their LibreOffice contact information" +msgstr "" + +#: ../data/metainfo/mugshot.appdata.xml.in.h:5 +msgid "" +"This stable release adds support for the latest GTK and GStreamer " +"technologies." +msgstr "Bu kararlı sürüm, en yeni GTK ve GStreamer teknolojilerine destek sağlıyor." + +#: ../data/metainfo/mugshot.appdata.xml.in.h:6 +msgid "" +"This development release restores camera dialog functionality that with " +"recent software versions." +msgstr "Bu geliştirme sürümü, son yazılım sürümleriyle birlikte kamera iletişim işlevselliğini geri yükler." + +#: ../data/metainfo/mugshot.appdata.xml.in.h:7 +msgid "" +"This development release fixes a large number of bugs from previous " +"releases. User properties that cannot be edited are now restricted to " +"administrative users." +msgstr "" + +#: ../data/metainfo/mugshot.appdata.xml.in.h:8 +msgid "" +"This development release upgrades the camera dialog to use Cheese and " +"Clutter to display and capture the camera feed." +msgstr "" + +#: ../data/metainfo/mugshot.appdata.xml.in.h:9 +msgid "" +"This stable release improves Mugshot functionality for LDAP users, and " +"includes the latest SudoDialog, improving the appearance and usability of " +"the password dialog." +msgstr "" \ No newline at end of file diff --git a/talimatname/genel/m/mugshot/mugshot.kur-kos b/talimatname/genel/m/mugshot/mugshot.kur-kos new file mode 100644 index 000000000..6f070177d --- /dev/null +++ b/talimatname/genel/m/mugshot/mugshot.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas/ \ No newline at end of file diff --git a/talimatname/genel/m/mugshot/office-phone.patch b/talimatname/genel/m/mugshot/office-phone.patch deleted file mode 100644 index dbca2c59d..000000000 --- a/talimatname/genel/m/mugshot/office-phone.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 8f639e7a29b3bfebbbbd8f520c05637377560bb3 Mon Sep 17 00:00:00 2001 -From: Mike Keen -Date: Thu, 5 Nov 2015 11:47:30 -0500 -Subject: [PATCH] Support the -o flag if the -w flag fails - ---- -mugshot/MugshotWindow.py | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/mugshot/MugshotWindow.py b/mugshot/MugshotWindow.py -index 35323be..b557edf 100644 ---- a/mugshot/MugshotWindow.py -+++ b/mugshot/MugshotWindow.py -@@ -632,11 +632,18 @@ class MugshotWindow(Window): - success = False - - logger.debug('Updating Office Phone...') -+ - command = "%s -w \"%s\" %s" % (chfn, office_phone, username) -+ # Office phone is potentially handled by the -o flag in newer versions of chfn -+ command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username) - if self.process_terminal_password(command, password): - self.office_phone = office_phone - else: -- success = False -+ # Retry with command2 -+ if self.process_terminal_password(command2, password): -+ self.office_phone = office_phone -+ else: -+ success = False - - return (success, response) - --- -2.6.2 diff --git a/talimatname/genel/m/mugshot/talimat b/talimatname/genel/m/mugshot/talimat index 2d57f752d..e59c2d29d 100644 --- a/talimatname/genel/m/mugshot/talimat +++ b/talimatname/genel/m/mugshot/talimat @@ -1,25 +1,18 @@ # Tanım: Kişisel kullanıcı bilgilerini güncellemek için program # URL: https://launchpad.net/mugshot -# Paketçi: milisarge -# Gerekler: intltool gtk3 python3-distutils-extra python3-pexpect dbus-python python3-cairo python3-gobject accountsservice +# Paketçi: Cihan_Alkan +# Gerekler: intltool python3 gtk3 python3-distutils-extra python3-pexpect dbus-python python3-cairo python3-gobject accountsservice # Grup: sistem isim=mugshot -surum=0.3.2 +surum=0.4.1 devir=1 -kaynak=(https://launchpad.net/mugshot/${surum%.*}/0.3.2/+download/$isim-$surum.tar.gz::$isim-$surum.tar.gz - office-phone.patch - missing_default_face.patch) +kaynak=(https://launchpad.net/mugshot/${surum%.*}/0.4.1/+download/$isim-$surum.tar.gz::$isim-$surum.tar.gz + mugshot-tr.po::mugshot-tr-$surum.po) derle() { cd "${SRC}/${isim}-${surum}" - patch -p1 -i "${SRC}"/office-phone.patch - cd "${SRC}" - patch -Np1 -i "${SRC}"/missing_default_face.patch - cd "${SRC}/${isim}-${surum}" - python3 setup.py build + cp ${SRC}/mugshot-tr-$surum.po po/tr.po python3 setup.py install --root=$PKG --optimize=1 - if [ -d $PKG/usr/share/doc ]; then - rm -rf $PKG/usr/share/doc - fi + [ -d $PKG/usr/share/doc ] && rm -rf $PKG/usr/share/doc }