linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #03209
[Branch ~linuxdcpp-team/linuxdcpp/trunk] Rev 408: Add 'Translate This Application...' link to Help menu
------------------------------------------------------------
revno: 408
committer: Steven Sheehy <steven.sheehy@xxxxxxxxx>
branch nick: trunk
timestamp: Tue 2011-02-08 00:21:39 -0600
message:
Add 'Translate This Application...' link to Help menu
modified:
glade/mainwindow.glade
linux/mainwindow.cc
linux/mainwindow.hh
po/linuxdcpp.pot
--
lp:linuxdcpp
https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk
Your team LinuxDC++ Team is subscribed to branch lp:linuxdcpp.
To unsubscribe from this branch go to https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk/+edit-subscription
=== modified file 'glade/mainwindow.glade'
--- glade/mainwindow.glade 2010-12-23 04:31:25 +0000
+++ glade/mainwindow.glade 2011-02-08 06:21:39 +0000
@@ -314,6 +314,13 @@
</widget>
</child>
<child>
+ <widget class="GtkMenuItem" id="translateApplicationMenuItem">
+ <property name="visible">True</property>
+ <property name="label">_Translate This Application...</property>
+ <property name="use_underline">True</property>
+ </widget>
+ </child>
+ <child>
<widget class="GtkMenuItem" id="reportProblemMenuItem">
<property name="visible">True</property>
<property name="label">_Report a Problem...</property>
=== modified file 'linux/mainwindow.cc'
--- linux/mainwindow.cc 2010-11-14 06:31:40 +0000
+++ linux/mainwindow.cc 2011-02-08 06:21:39 +0000
@@ -140,6 +140,7 @@
g_signal_connect(getWidget("nextTabMenuItem"), "activate", G_CALLBACK(onNextTabClicked_gui), (gpointer)this);
g_signal_connect(getWidget("helpOnlineMenuItem"), "activate", G_CALLBACK(onHelpOnlineItemActivated_gui), (gpointer)this);
g_signal_connect(getWidget("reportProblemMenuItem"), "activate", G_CALLBACK(onReportProblemItemActivated_gui), (gpointer)this);
+ g_signal_connect(getWidget("translateApplicationMenuItem"), "activate", G_CALLBACK(onTranslateApplicationItemActivated_gui), (gpointer)this);
g_signal_connect(getWidget("aboutMenuItem"), "activate", G_CALLBACK(onAboutClicked_gui), (gpointer)this);
// Load window state and position from settings manager
@@ -1151,6 +1152,12 @@
WulforUtil::openURI(uri);
}
+void MainWindow::onTranslateApplicationItemActivated_gui(GtkMenuItem *item, gpointer data)
+{
+ const string uri = "https://translations.launchpad.net/linuxdcpp";;
+ WulforUtil::openURI(uri);
+}
+
void MainWindow::onReportProblemItemActivated_gui(GtkMenuItem *item, gpointer data)
{
const string uri = "https://bugs.launchpad.net/linuxdcpp";;
=== modified file 'linux/mainwindow.hh'
--- linux/mainwindow.hh 2010-11-03 05:24:00 +0000
+++ linux/mainwindow.hh 2011-02-08 06:21:39 +0000
@@ -130,6 +130,7 @@
static void onPreviousTabClicked_gui(GtkWidget* widget, gpointer data);
static void onNextTabClicked_gui(GtkWidget* widget, gpointer data);
static void onHelpOnlineItemActivated_gui(GtkMenuItem *item, gpointer data);
+ static void onTranslateApplicationItemActivated_gui(GtkMenuItem *item, gpointer data);
static void onReportProblemItemActivated_gui(GtkMenuItem *item, gpointer data);
static void onAboutClicked_gui(GtkWidget *widget, gpointer data);
static void onAboutDialogActivateLink_gui(GtkAboutDialog *dialog, const gchar *link, gpointer data);
=== modified file 'po/linuxdcpp.pot'
--- po/linuxdcpp.pot 2011-02-03 07:00:46 +0000
+++ po/linuxdcpp.pot 2011-02-08 06:21:39 +0000
@@ -8,7 +8,7 @@
"#-#-#-#-# glade.pot #-#-#-#-#\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://translations.launchpad.net/linuxdcpp\n";
-"POT-Creation-Date: 2011-02-03 00:55-0600\n"
+"POT-Creation-Date: 2011-02-08 00:19-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@xxxxxx>\n"
@@ -19,7 +19,7 @@
"#-#-#-#-# linux.pot #-#-#-#-#\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://translations.launchpad.net/linuxdcpp\n";
-"POT-Creation-Date: 2011-02-03 00:55-0600\n"
+"POT-Creation-Date: 2011-02-08 00:19-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@xxxxxx>\n"
@@ -29,7 +29,7 @@
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-#: glade/mainwindow.glade:801
+#: glade/mainwindow.glade:808
msgid ""
"\n"
"This program is free software; you can redistribute it and/or modify it "
@@ -178,7 +178,7 @@
msgid "<b>_Window Behavior</b>"
msgstr ""
-#: glade/mainwindow.glade:797
+#: glade/mainwindow.glade:804
msgid ""
"A DC++ port for Linux\n"
"\n"
@@ -222,7 +222,7 @@
msgid "Are you sure you want to delete the selected favorite hub?"
msgstr ""
-#: glade/mainwindow.glade:703
+#: glade/mainwindow.glade:710
msgid "Are you sure you want to exit the application?"
msgstr ""
@@ -258,7 +258,7 @@
msgid "B_eep when a private message window is opened"
msgstr ""
-#: glade/mainwindow.glade:378
+#: glade/mainwindow.glade:385
msgid "Browse the list of public hubs"
msgstr ""
@@ -298,7 +298,7 @@
msgid "Connection"
msgstr ""
-#: glade/mainwindow.glade:796
+#: glade/mainwindow.glade:803
msgid "Copyright © 2004-2011 Jens Oknelid"
msgstr ""
@@ -328,7 +328,7 @@
msgid "Download director_y to"
msgstr ""
-#: glade/mainwindow.glade:571
+#: glade/mainwindow.glade:578
msgid "Download speed"
msgstr ""
@@ -340,7 +340,7 @@
msgid "Edit User Command"
msgstr ""
-#: glade/mainwindow.glade:391
+#: glade/mainwindow.glade:398
msgid "Edit the preferences"
msgstr ""
@@ -360,7 +360,7 @@
msgid "Favorite Hub Properties"
msgstr ""
-#: glade/mainwindow.glade:142 glade/mainwindow.glade:354
+#: glade/mainwindow.glade:142 glade/mainwindow.glade:361
#: linux/favoritehubs.cc:31 linux/settingsdialog.cc:616
msgid "Favorite Hubs"
msgstr ""
@@ -369,7 +369,7 @@
msgid "Favorite Name"
msgstr ""
-#: glade/mainwindow.glade:157 glade/mainwindow.glade:367
+#: glade/mainwindow.glade:157 glade/mainwindow.glade:374
#: linux/favoriteusers.cc:33 linux/settingsdialog.cc:620
msgid "Favorite Users"
msgstr ""
@@ -390,13 +390,13 @@
msgid "Find Files"
msgstr ""
-#: glade/mainwindow.glade:231 glade/mainwindow.glade:445
+#: glade/mainwindow.glade:231 glade/mainwindow.glade:452
#: linux/finishedtransfers.cc:33 linux/settingsdialog.cc:603
#: linux/settingsdialog.cc:618
msgid "Finished Downloads"
msgstr ""
-#: glade/mainwindow.glade:245 glade/mainwindow.glade:458
+#: glade/mainwindow.glade:245 glade/mainwindow.glade:465
#: linux/finishedtransfers.cc:38 linux/settingsdialog.cc:604
#: linux/settingsdialog.cc:619
msgid "Finished Uploads"
@@ -410,7 +410,7 @@
msgid "H_igh"
msgstr ""
-#: glade/mainwindow.glade:406
+#: glade/mainwindow.glade:413
msgid "Hash"
msgstr ""
@@ -426,7 +426,7 @@
msgid "Hubs"
msgstr ""
-#: glade/mainwindow.glade:530
+#: glade/mainwindow.glade:537
msgid "Hubs (normal / registered / op)"
msgstr ""
@@ -476,7 +476,7 @@
msgid "Logging"
msgstr ""
-#: glade/mainwindow.glade:1032
+#: glade/mainwindow.glade:1039
msgid "Magnet Properties"
msgstr ""
@@ -592,11 +592,11 @@
msgid "Po_rt:"
msgstr ""
-#: glade/mainwindow.glade:393 glade/settingsdialog.glade:6
+#: glade/mainwindow.glade:400 glade/settingsdialog.glade:6
msgid "Preferences"
msgstr ""
-#: glade/mainwindow.glade:172 glade/mainwindow.glade:380
+#: glade/mainwindow.glade:172 glade/mainwindow.glade:387
#: linux/publichubs.cc:29 linux/settingsdialog.cc:615
msgid "Public Hubs"
msgstr ""
@@ -605,11 +605,11 @@
msgid "Public _IP Address:"
msgstr ""
-#: glade/mainwindow.glade:432 glade/settingsdialog.glade:1783
+#: glade/mainwindow.glade:439 glade/settingsdialog.glade:1783
msgid "Queue"
msgstr ""
-#: glade/mainwindow.glade:706
+#: glade/mainwindow.glade:713
msgid "Quick Connect"
msgstr ""
@@ -641,7 +641,7 @@
msgid "S_earch"
msgstr ""
-#: glade/mainwindow.glade:201 glade/mainwindow.glade:419 linux/search.cc:40
+#: glade/mainwindow.glade:201 glade/mainwindow.glade:426 linux/search.cc:40
#: linux/settingsdialog.cc:608
msgid "Search"
msgstr ""
@@ -650,7 +650,7 @@
msgid "Search for a file"
msgstr ""
-#: glade/mainwindow.glade:417
+#: glade/mainwindow.glade:424
msgid "Search for files to download"
msgstr ""
@@ -680,7 +680,7 @@
msgid "Select a Folder"
msgstr ""
-#: glade/mainwindow.glade:876
+#: glade/mainwindow.glade:883
msgid "Select filelist to browse"
msgstr ""
@@ -742,11 +742,11 @@
"Bottom"
msgstr ""
-#: glade/mainwindow.glade:612
+#: glade/mainwindow.glade:619
msgid "Total received"
msgstr ""
-#: glade/mainwindow.glade:675
+#: glade/mainwindow.glade:682
msgid "Total sent"
msgstr ""
@@ -758,7 +758,7 @@
msgid "Unfin_ished downloads:"
msgstr ""
-#: glade/mainwindow.glade:634
+#: glade/mainwindow.glade:641
msgid "Upload speed"
msgstr ""
@@ -766,7 +766,7 @@
msgid "Use SOCKS5 server to resolve _hostnames"
msgstr ""
-#: glade/mainwindow.glade:925
+#: glade/mainwindow.glade:932
msgid "User Command Argument"
msgstr ""
@@ -778,27 +778,27 @@
msgid "User_name:"
msgstr ""
-#: glade/mainwindow.glade:365
+#: glade/mainwindow.glade:372
msgid "View favorite users"
msgstr ""
-#: glade/mainwindow.glade:430
+#: glade/mainwindow.glade:437
msgid "View the files to be downloaded"
msgstr ""
-#: glade/mainwindow.glade:404
+#: glade/mainwindow.glade:411
msgid "View the hashing progress"
msgstr ""
-#: glade/mainwindow.glade:443
+#: glade/mainwindow.glade:450
msgid "View the list of finished downloads"
msgstr ""
-#: glade/mainwindow.glade:456
+#: glade/mainwindow.glade:463
msgid "View the list of finished uploads"
msgstr ""
-#: glade/mainwindow.glade:352
+#: glade/mainwindow.glade:359
msgid "View the saved hubs"
msgstr ""
@@ -909,7 +909,7 @@
msgid "_Encoding:"
msgstr ""
-#: glade/mainwindow.glade:1165
+#: glade/mainwindow.glade:1172
msgid "_Exact size:"
msgstr ""
@@ -925,7 +925,7 @@
msgid "_File list transfers"
msgstr ""
-#: glade/mainwindow.glade:1064
+#: glade/mainwindow.glade:1071
msgid "_Filename"
msgstr ""
@@ -969,7 +969,7 @@
msgid "_Hub"
msgstr ""
-#: glade/favoritehubs.glade:173 glade/mainwindow.glade:741
+#: glade/favoritehubs.glade:173 glade/mainwindow.glade:748
#: glade/settingsdialog.glade:4242
msgid "_Hub address:"
msgstr ""
@@ -982,7 +982,7 @@
msgid "_Lowest"
msgstr ""
-#: glade/mainwindow.glade:1051
+#: glade/mainwindow.glade:1058
msgid "_Magnet:"
msgstr ""
@@ -1152,11 +1152,11 @@
msgid "_Share hidden files"
msgstr ""
-#: glade/mainwindow.glade:1012
+#: glade/mainwindow.glade:1019
msgid "_Show Interface"
msgstr ""
-#: glade/mainwindow.glade:1079
+#: glade/mainwindow.glade:1086
msgid "_Size:"
msgstr ""
@@ -1168,7 +1168,7 @@
msgid "_TCP:"
msgstr ""
-#: glade/mainwindow.glade:1094
+#: glade/mainwindow.glade:1101
msgid "_TTH:"
msgstr ""
@@ -1227,7 +1227,7 @@
msgstr ""
#. TRANSLATORS: Notify icon (systray) tooltip
-#: linux/mainwindow.cc:470
+#: linux/mainwindow.cc:471
#, boost-format
msgid ""
"%1%\n"
@@ -1552,7 +1552,7 @@
msgid "Download failed: %1%"
msgstr ""
-#: linux/mainwindow.cc:1417 linux/publichubs.cc:446 linux/transfers.cc:930
+#: linux/mainwindow.cc:1424 linux/publichubs.cc:446 linux/transfers.cc:930
#: linux/transfers.cc:1031
msgid "Download finished"
msgstr ""
@@ -1604,7 +1604,7 @@
msgstr ""
#. TRANSLATORS: Appears in a dialog prompt when a user command requires arguments.
-#: linux/mainwindow.cc:750
+#: linux/mainwindow.cc:751
#, boost-format
msgid "Enter a value for '%1%'"
msgstr ""
@@ -1646,7 +1646,7 @@
msgid "File not available"
msgstr ""
-#: linux/mainwindow.cc:1253
+#: linux/mainwindow.cc:1260
msgid ""
"File transfers will not work correctly until the connection settings are "
"adjusted or any application using the port is closed."
@@ -1787,7 +1787,7 @@
"share size)"
msgstr ""
-#: linux/mainwindow.cc:1095
+#: linux/mainwindow.cc:1096
msgid "Loading file list"
msgstr ""
@@ -1979,7 +1979,7 @@
msgid "Searching too soon, retry in %1% s"
msgstr ""
-#: linux/mainwindow.cc:1267
+#: linux/mainwindow.cc:1274
msgid ""
"Searching will not work correctly until the connection settings are adjusted "
"or any application using the port is closed."
@@ -2149,15 +2149,15 @@
msgid "Unable to load file list: %1%"
msgstr ""
-#: linux/mainwindow.cc:1083
+#: linux/mainwindow.cc:1084
msgid "Unable to load file list: Invalid file list name"
msgstr ""
-#: linux/mainwindow.cc:1252
+#: linux/mainwindow.cc:1259
msgid "Unable to open TCP/TLS port"
msgstr ""
-#: linux/mainwindow.cc:1266
+#: linux/mainwindow.cc:1273
msgid "Unable to open UDP port"
msgstr ""
@@ -2246,7 +2246,7 @@
msgstr ""
#. TRANSLATORS: Shown in status bar on startup.
-#: linux/mainwindow.cc:164
+#: linux/mainwindow.cc:165
#, boost-format
msgid "Welcome to %1%"
msgstr ""