summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/LINGUAS1
-rw-r--r--po/bg.po264
-rw-r--r--po/es.po18
-rw-r--r--po/es_419.po17
-rw-r--r--po/ru.po18
-rw-r--r--src/ck-manager.c4
-rw-r--r--src/ck-session.c6
-rw-r--r--src/test-session.c7
8 files changed, 293 insertions, 42 deletions
diff --git a/po/LINGUAS b/po/LINGUAS
index ceca01c..a1ac2bd 100644
--- a/po/LINGUAS
+++ b/po/LINGUAS
@@ -1,4 +1,5 @@
# Set of available languages.
+bg
es
es_419
ru
diff --git a/po/bg.po b/po/bg.po
new file mode 100644
index 0000000..943b062
--- /dev/null
+++ b/po/bg.po
@@ -0,0 +1,264 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR The ConsoleKit2 Team
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Translators:
+# Ivailo Monev <xakepa10@gmail.com>, 2015
+msgid ""
+msgstr ""
+"Project-Id-Version: ConsoleKit2\n"
+"Report-Msgid-Bugs-To: https://github.com/ConsoleKit2/ConsoleKit2/issues\n"
+"POT-Creation-Date: 2015-07-06 09:35+0300\n"
+"PO-Revision-Date: 2015-07-13 18:39+0000\n"
+"Last-Translator: Ivailo Monev <xakepa10@gmail.com>\n"
+"Language-Team: Bulgarian (http://www.transifex.com/p/consolekit2/language/bg/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: bg\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: src/ck-seat.c:250
+msgid "Another session was activated while waiting"
+msgstr "Друга сесия беше активиране докато се чакаше"
+
+#: src/ck-seat.c:275
+msgid "There is no Seat to activate"
+msgstr "Няма активна Седалка"
+
+#: src/ck-seat.c:281
+msgid "Activation is not supported for this kind of seat"
+msgstr "Активацията не се поддържа за този тип седалка"
+
+#: src/ck-seat.c:286
+msgid "Unknown session id"
+msgstr "Непознато id на сесията"
+
+#: src/ck-seat.c:297 src/ck-seat.c:330 src/ck-vt-monitor.c:129
+msgid "Unable to activate session"
+msgstr "Невъзможно активиране на сесията"
+
+#: src/ck-seat.c:322
+msgid "Session already active"
+msgstr "Сесията вече е активна"
+
+#: src/ck-seat.c:685
+msgid "Session is not attached to this seat"
+msgstr "Сесията не е прикачена към тази седалка"
+
+#: src/ck-seat.c:970
+msgid "Seat has no sessions"
+msgstr "Седалката няма сесии"
+
+#: src/main.c:226
+msgid "Enable debugging code"
+msgstr "Включи код за дебъгване"
+
+#: src/main.c:227
+msgid "Don't become a daemon"
+msgstr "Не демонизирай"
+
+#: src/main.c:228
+msgid "Exit after a time - for debugging"
+msgstr "Излез след време - за дебъгване"
+
+#: src/main.c:253 tools/ck-collect-session-info.c:453
+msgid "You must be root to run this program"
+msgstr "Трябва да се root за да пуснете тази програма"
+
+#: src/main.c:257
+msgid "Console kit daemon"
+msgstr "Console kit демон"
+
+#: src/ck-vt-monitor.c:110
+msgid "Session is already active"
+msgstr "Сесията вече е активна"
+
+#: src/ck-vt-monitor.c:118 src/ck-vt-monitor.c:151
+msgid "No consoles available"
+msgstr "Няма налични конзоли"
+
+#: src/ck-manager.c:833
+#, c-format
+msgid "Not Authorized: %s"
+msgstr "Не е Ауторизиран: %s"
+
+#: src/ck-manager.c:840
+msgid "Authorization is required"
+msgstr "Нужна е ауторизация"
+
+#: src/ck-manager.c:843
+msgid "Not Authorized"
+msgstr "Не е Ауторизиран"
+
+#: src/ck-manager.c:1272
+#, c-format
+msgid "Unable to %s system: %s"
+msgstr "Невъзможно %s на системата: %s"
+
+#: src/ck-manager.c:1325 src/ck-manager.c:1432 src/ck-manager.c:1687
+#: src/ck-manager.c:1819 src/ck-manager.c:1951
+msgid "Attempting to perform a system action while one is in progress"
+msgstr "Опит за изпълнение на системно действие докато друго е в прогрес"
+
+#: src/ck-manager.c:1337
+msgid "failed to allocate memory to perform restart"
+msgstr "невъзможно алокиране на памет за изпълняването на рестарт"
+
+#: src/ck-manager.c:1384 src/ck-manager.c:1484 src/ck-manager.c:1541
+#: src/ck-manager.c:1620 src/ck-manager.c:1747 src/ck-manager.c:1879
+#: src/ck-manager.c:2011
+msgid "Operation is being inhibited"
+msgstr ""
+
+#: src/ck-manager.c:1444
+msgid "failed to allocate memory to perform shutdown"
+msgstr ""
+
+#: src/ck-manager.c:1699
+msgid "failed to allocate memory to perform suspend"
+msgstr ""
+
+#: src/ck-manager.c:1831
+msgid "failed to allocate memory to perform hibernate"
+msgstr ""
+
+#: src/ck-manager.c:1963
+msgid "failed to allocate memory to perform hybrid sleep"
+msgstr ""
+
+#: src/ck-manager.c:2104 src/ck-manager.c:2131
+msgid "Error creating the inhibit lock"
+msgstr ""
+
+#: src/ck-manager.c:2109 src/ck-manager.c:2171
+msgid "Inhibit manager failed to initialize"
+msgstr ""
+
+#: src/ck-manager.c:2125
+msgid "Invalid input when creating inhibit lock"
+msgstr ""
+
+#: src/ck-manager.c:2128
+msgid "Unable to create inhibit lock, insufficient memory"
+msgstr ""
+
+#: src/ck-manager.c:2178
+msgid "There is nothing currently inhibited"
+msgstr ""
+
+#: src/ck-manager.c:2809 src/ck-manager.c:2893 src/ck-manager.c:2941
+msgid "Unable to get information about the calling process"
+msgstr ""
+
+#: src/ck-manager.c:2823 src/ck-manager.c:3141 src/ck-session.c:388
+#, c-format
+msgid "Unable to lookup information about calling process '%d'"
+msgstr ""
+
+#: src/ck-manager.c:2834 src/ck-manager.c:2841 src/ck-manager.c:3090
+msgid "Unable to find session for cookie"
+msgstr "Невъзможно намиране на сесия за бизквитка"
+
+#: src/ck-manager.c:2876
+msgid "pid must be > 1"
+msgstr "pid трябва да е > 1"
+
+#: src/ck-manager.c:2901
+#, c-format
+msgid "Unable to lookup session information for process '%d'"
+msgstr ""
+
+#: src/ck-manager.c:3098
+msgid "User ID does not match the owner of cookie"
+msgstr ""
+
+#: src/ck-manager.c:3108
+msgid "Process ID does not match the owner of cookie"
+msgstr ""
+
+#: src/ck-manager.c:3332
+msgid "User has no sessions"
+msgstr ""
+
+#: src/ck-manager.c:3368
+msgid "User has no seats"
+msgstr ""
+
+#: src/ck-manager.c:3394
+msgid "There are no sessions"
+msgstr ""
+
+#: src/ck-session.c:394
+msgid "Only session owner may set idle hint state"
+msgstr ""
+
+#: src/ck-session.c:466
+msgid ""
+"Activate signal not handeled. Session not attached to seat, or the seat "
+"doesn't support activation changes"
+msgstr ""
+
+#: tools/ck-history.c:903 tools/list-sessions.c:350
+msgid "Version of this application"
+msgstr ""
+
+#: tools/ck-history.c:904
+msgid "Show listing of frequent users"
+msgstr ""
+
+#: tools/ck-history.c:905
+msgid "Show listing of last logged in users"
+msgstr ""
+
+#: tools/ck-history.c:906
+msgid "Show 'last' compatible listing of last logged in users"
+msgstr ""
+
+#: tools/ck-history.c:907
+msgid "Show full event log"
+msgstr ""
+
+#: tools/ck-history.c:908
+msgid "Show entries for the specified seat"
+msgstr ""
+
+#: tools/ck-history.c:908
+msgid "SEAT"
+msgstr "СЕДАЛКА"
+
+#: tools/ck-history.c:909
+msgid "Show entries for the specified session type"
+msgstr ""
+
+#: tools/ck-history.c:909
+msgid "TYPE"
+msgstr "ТИП"
+
+#: tools/ck-history.c:910
+msgid "Show entries for the specified user"
+msgstr ""
+
+#: tools/ck-history.c:910
+msgid "NAME"
+msgstr "ИМЕ"
+
+#: tools/ck-history.c:911
+msgid "Show entries since the specified time (ISO 8601 format)"
+msgstr ""
+
+#: tools/ck-history.c:911
+msgid "DATETIME"
+msgstr "ДАТА"
+
+#: tools/ck-get-x11-display-device.c:162
+msgid "display name"
+msgstr "име на дисплей"
+
+#: tools/ck-collect-session-info.c:438
+msgid "User ID"
+msgstr "Потребителско ID"
+
+#: tools/ck-collect-session-info.c:439
+msgid "Process ID"
+msgstr "Процесно ID"
diff --git a/po/es.po b/po/es.po
index 4353b87..e1d6d5f 100644
--- a/po/es.po
+++ b/po/es.po
@@ -1,7 +1,7 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR The ConsoleKit2 Team
# This file is distributed under the same license as the PACKAGE package.
-#
+#
# Translators:
# Pablo Roberto Francisco Lezaeta Reyes <prflr88@gmail.com>, 2015
msgid ""
@@ -11,12 +11,11 @@ msgstr ""
"POT-Creation-Date: 2015-07-06 09:35+0300\n"
"PO-Revision-Date: 2015-07-06 08:46+0000\n"
"Last-Translator: Eric Koegel <eric.koegel@gmail.com>\n"
-"Language-Team: Spanish (http://www.transifex.com/p/consolekit2/language/"
-"es/)\n"
-"Language: es\n"
+"Language-Team: Spanish (http://www.transifex.com/p/consolekit2/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/ck-seat.c:250
@@ -192,17 +191,13 @@ msgstr "Sin sesiones"
#: src/ck-session.c:394
msgid "Only session owner may set idle hint state"
-msgstr ""
-"Solo el propietario de la sesión puede establecer el estado de toque de "
-"inactividad"
+msgstr "Solo el propietario de la sesión puede establecer el estado de toque de inactividad"
#: src/ck-session.c:466
msgid ""
"Activate signal not handeled. Session not attached to seat, or the seat "
"doesn't support activation changes"
-msgstr ""
-"La señal de activación no se ha manejada. La sesión no se pudo unir al "
-"puesto de trabajo, o el puesto de trabajo no admite cambios de activación."
+msgstr "La señal de activación no se ha manejada. La sesión no se pudo unir al puesto de trabajo, o el puesto de trabajo no admite cambios de activación."
#: tools/ck-history.c:903 tools/list-sessions.c:350
msgid "Version of this application"
@@ -218,8 +213,7 @@ msgstr "Muestra la lista de los últimos usuarios conectados"
#: tools/ck-history.c:906
msgid "Show 'last' compatible listing of last logged in users"
-msgstr ""
-"Muestra la «última» lista compatible de los últimos usuarios conectados"
+msgstr "Muestra la «última» lista compatible de los últimos usuarios conectados"
#: tools/ck-history.c:907
msgid "Show full event log"
diff --git a/po/es_419.po b/po/es_419.po
index 23583b9..e18ceec 100644
--- a/po/es_419.po
+++ b/po/es_419.po
@@ -1,7 +1,7 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR The ConsoleKit2 Team
# This file is distributed under the same license as the PACKAGE package.
-#
+#
# Translators:
# Pablo Roberto Francisco Lezaeta Reyes <prflr88@gmail.com>, 2015
msgid ""
@@ -11,12 +11,11 @@ msgstr ""
"POT-Creation-Date: 2015-07-06 09:35+0300\n"
"PO-Revision-Date: 2015-07-06 08:46+0000\n"
"Last-Translator: Eric Koegel <eric.koegel@gmail.com>\n"
-"Language-Team: Spanish (Latin America) (http://www.transifex.com/p/"
-"consolekit2/language/es_419/)\n"
-"Language: es_419\n"
+"Language-Team: Spanish (Latin America) (http://www.transifex.com/p/consolekit2/language/es_419/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Language: es_419\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/ck-seat.c:250
@@ -192,16 +191,13 @@ msgstr "No hay sesiones"
#: src/ck-session.c:394
msgid "Only session owner may set idle hint state"
-msgstr ""
-"Solo el propietario de la sesión puede establecer el estado de de inactividad"
+msgstr "Solo el propietario de la sesión puede establecer el estado de de inactividad"
#: src/ck-session.c:466
msgid ""
"Activate signal not handeled. Session not attached to seat, or the seat "
"doesn't support activation changes"
-msgstr ""
-"No se pudo manejar la señal de activación. La sesión no se adjuntará al "
-"puesto de trabajo o el puesto no soporta cambios de activación"
+msgstr "No se pudo manejar la señal de activación. La sesión no se adjuntará al puesto de trabajo o el puesto no soporta cambios de activación"
#: tools/ck-history.c:903 tools/list-sessions.c:350
msgid "Version of this application"
@@ -217,8 +213,7 @@ msgstr "Muestra la lista de los últimos usuarios conectados"
#: tools/ck-history.c:906
msgid "Show 'last' compatible listing of last logged in users"
-msgstr ""
-"Muestra la «última» lista compatible de los últimos usuarios conectados"
+msgstr "Muestra la «última» lista compatible de los últimos usuarios conectados"
#: tools/ck-history.c:907
msgid "Show full event log"
diff --git a/po/ru.po b/po/ru.po
index 9662226..40a421f 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -1,7 +1,7 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR The ConsoleKit2 Team
# This file is distributed under the same license as the PACKAGE package.
-#
+#
# Translators:
# bizdelnick <bizdelnick@gmail.com>, 2015
msgid ""
@@ -11,15 +11,12 @@ msgstr ""
"POT-Creation-Date: 2015-07-06 09:35+0300\n"
"PO-Revision-Date: 2015-07-06 08:46+0000\n"
"Last-Translator: Eric Koegel <eric.koegel@gmail.com>\n"
-"Language-Team: Russian (http://www.transifex.com/p/consolekit2/language/"
-"ru/)\n"
-"Language: ru\n"
+"Language-Team: Russian (http://www.transifex.com/p/consolekit2/language/ru/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
-"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
-"%100>=11 && n%100<=14)? 2 : 3);\n"
+"Language: ru\n"
+"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
#: src/ck-seat.c:250
msgid "Another session was activated while waiting"
@@ -200,9 +197,7 @@ msgstr "Только владелец сессии может устанавли
msgid ""
"Activate signal not handeled. Session not attached to seat, or the seat "
"doesn't support activation changes"
-msgstr ""
-"Сигнал активации не обрабатывается. Сессия не привязана к рабочему месту или "
-"рабочее место не поддерживает изменения активации"
+msgstr "Сигнал активации не обрабатывается. Сессия не привязана к рабочему месту или рабочее место не поддерживает изменения активации"
#: tools/ck-history.c:903 tools/list-sessions.c:350
msgid "Version of this application"
@@ -218,8 +213,7 @@ msgstr "Показать список последних вошедших пол
#: tools/ck-history.c:906
msgid "Show 'last' compatible listing of last logged in users"
-msgstr ""
-"Показать 'последний' совместимый список последних вошедших пользователей"
+msgstr "Показать 'последний' совместимый список последних вошедших пользователей"
#: tools/ck-history.c:907
msgid "Show full event log"
diff --git a/src/ck-manager.c b/src/ck-manager.c
index 016f9f0..f7e0b05 100644
--- a/src/ck-manager.c
+++ b/src/ck-manager.c
@@ -1028,6 +1028,7 @@ get_caller_info (CkManager *manager,
goto out;
}
g_variant_get (value, "(u)", calling_uid);
+ g_variant_unref (value);
value = g_dbus_proxy_call_sync (manager->priv->bus_proxy, "GetConnectionUnixProcessID",
g_variant_new ("(s)", sender),
@@ -1042,6 +1043,7 @@ get_caller_info (CkManager *manager,
goto out;
}
g_variant_get (value, "(u)", calling_pid);
+ g_variant_unref (value);
res = TRUE;
@@ -2872,7 +2874,7 @@ dbus_get_session_for_unix_process (ConsoleKitManager *ckmanager,
pid_t calling_pid = 0;
char *cookie;
- if (pid <= 1) {
+ if (pid <= 1 || pid >= UINT_MAX) {
throw_error (context, CK_MANAGER_ERROR_INVALID_INPUT, _("pid must be > 1"));
return TRUE;
}
diff --git a/src/ck-session.c b/src/ck-session.c
index fc15d63..ca0f8ca 100644
--- a/src/ck-session.c
+++ b/src/ck-session.c
@@ -275,7 +275,8 @@ get_caller_info (CkSession *session,
g_error_free (error);
goto out;
}
- g_variant_get (value, "(u)", &calling_uid);
+ g_variant_get (value, "(u)", calling_uid);
+ g_variant_unref (value);
value = g_dbus_proxy_call_sync (session->priv->bus_proxy, "GetConnectionUnixProcessID",
g_variant_new ("(s)", sender),
@@ -289,7 +290,8 @@ get_caller_info (CkSession *session,
g_error_free (error);
goto out;
}
- g_variant_get (value, "(u)", &calling_pid);
+ g_variant_get (value, "(u)", calling_pid);
+ g_variant_unref (value);
res = TRUE;
diff --git a/src/test-session.c b/src/test-session.c
index b233351..206e456 100644
--- a/src/test-session.c
+++ b/src/test-session.c
@@ -274,8 +274,8 @@ open_session (void)
g_variant_unref (activate_var);
close_var = g_dbus_proxy_call_sync (manager, "CloseSession", g_variant_new ("(s)", cookie), G_DBUS_CALL_FLAGS_NONE, 3000, NULL, &error);
- if (session_var == NULL) {
- g_print ("returned NULL, is the daemon running?\t");
+ if (close_var == NULL) {
+ g_print ("Failed to close session\t");
if (error)
g_print ("error %s", error->message);
@@ -284,8 +284,7 @@ open_session (void)
g_clear_error (&error);
return;
}
- if (close_var)
- g_variant_unref (close_var);
+ g_variant_unref (close_var);
}
int