diff --git a/icons/128x128/Makefile.am b/icons/128x128/Makefile.am index c8af191..c0ca8ee 100644 --- a/icons/128x128/Makefile.am +++ b/icons/128x128/Makefile.am @@ -1,6 +1,6 @@ iconsdir = $(datadir)/icons/hicolor/128x128/apps icons_DATA = \ - org.xfce.panel.netload.png + org.xfce.panel.speed.png EXTRA_DIST = \ $(icons_DATA) diff --git a/icons/128x128/org.xfce.panel.netload.png b/icons/128x128/org.xfce.panel.netload.png deleted file mode 100644 index 69a14e7..0000000 Binary files a/icons/128x128/org.xfce.panel.netload.png and /dev/null differ diff --git a/icons/128x128/org.xfce.panel.speed.png b/icons/128x128/org.xfce.panel.speed.png new file mode 100644 index 0000000..2306f35 Binary files /dev/null and b/icons/128x128/org.xfce.panel.speed.png differ diff --git a/icons/128x128/org.xfce.panel.speed.svg b/icons/128x128/org.xfce.panel.speed.svg new file mode 100644 index 0000000..da8c9c8 --- /dev/null +++ b/icons/128x128/org.xfce.panel.speed.svg @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/icons/16x16/Makefile.am b/icons/16x16/Makefile.am index 3ce9bc5..e23b458 100644 --- a/icons/16x16/Makefile.am +++ b/icons/16x16/Makefile.am @@ -1,6 +1,6 @@ iconsdir = $(datadir)/icons/hicolor/16x16/apps icons_DATA = \ - org.xfce.panel.netload.png + org.xfce.panel.speed.png EXTRA_DIST = \ $(icons_DATA) diff --git a/icons/16x16/org.xfce.panel.netload.png b/icons/16x16/org.xfce.panel.netload.png deleted file mode 100644 index 3c47ce5..0000000 Binary files a/icons/16x16/org.xfce.panel.netload.png and /dev/null differ diff --git a/icons/16x16/org.xfce.panel.netload.svg b/icons/16x16/org.xfce.panel.netload.svg deleted file mode 100644 index a7c8df6..0000000 --- a/icons/16x16/org.xfce.panel.netload.svg +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/16x16/org.xfce.panel.speed.png b/icons/16x16/org.xfce.panel.speed.png new file mode 100644 index 0000000..c7937bb Binary files /dev/null and b/icons/16x16/org.xfce.panel.speed.png differ diff --git a/icons/16x16/org.xfce.panel.speed.svg b/icons/16x16/org.xfce.panel.speed.svg new file mode 100644 index 0000000..bf60af7 --- /dev/null +++ b/icons/16x16/org.xfce.panel.speed.svg @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/icons/32x32/Makefile.am b/icons/32x32/Makefile.am index 5a00fad..642c0ed 100644 --- a/icons/32x32/Makefile.am +++ b/icons/32x32/Makefile.am @@ -1,6 +1,6 @@ iconsdir = $(datadir)/icons/hicolor/32x32/apps icons_DATA = \ - org.xfce.panel.netload.png + org.xfce.panel.speed.png EXTRA_DIST = \ $(icons_DATA) diff --git a/icons/32x32/org.xfce.panel.netload.png b/icons/32x32/org.xfce.panel.netload.png deleted file mode 100644 index 6806432..0000000 Binary files a/icons/32x32/org.xfce.panel.netload.png and /dev/null differ diff --git a/icons/32x32/org.xfce.panel.netload.svg b/icons/32x32/org.xfce.panel.netload.svg deleted file mode 100644 index 0ccda12a..0000000 --- a/icons/32x32/org.xfce.panel.netload.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/32x32/org.xfce.panel.speed.png b/icons/32x32/org.xfce.panel.speed.png new file mode 100644 index 0000000..b09c26f Binary files /dev/null and b/icons/32x32/org.xfce.panel.speed.png differ diff --git a/icons/32x32/org.xfce.panel.speed.svg b/icons/32x32/org.xfce.panel.speed.svg new file mode 100644 index 0000000..c708fa6 --- /dev/null +++ b/icons/32x32/org.xfce.panel.speed.svg @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/icons/scalable/Makefile.am b/icons/scalable/Makefile.am index 017fdc8..60b3095 100644 --- a/icons/scalable/Makefile.am +++ b/icons/scalable/Makefile.am @@ -1,6 +1,6 @@ iconsdir = $(datadir)/icons/hicolor/scalable/apps icons_DATA = \ - org.xfce.panel.netload.svg + org.xfce.panel.speed.svg EXTRA_DIST = \ $(icons_DATA) diff --git a/icons/scalable/org.xfce.panel.netload.svg b/icons/scalable/org.xfce.panel.netload.svg deleted file mode 100644 index a7c8df6..0000000 --- a/icons/scalable/org.xfce.panel.netload.svg +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/scalable/org.xfce.panel.speed.svg b/icons/scalable/org.xfce.panel.speed.svg new file mode 100644 index 0000000..cdd342e --- /dev/null +++ b/icons/scalable/org.xfce.panel.speed.svg @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/panel-plugin/Makefile.am b/panel-plugin/Makefile.am index 482c7cd..41801ae 100644 --- a/panel-plugin/Makefile.am +++ b/panel-plugin/Makefile.am @@ -4,7 +4,7 @@ plugin_LTLIBRARIES = libspeed.la LIBS = @LIBS@ @SOLLIBS@ libspeed_la_SOURCES = \ - netload.c \ + speed.c \ monitor-label.c \ monitor-label.h \ utils.c \ @@ -44,7 +44,7 @@ commandline_LDADD = @LIBXFCE4PANEL_LIBS@ # We also need to let intltool merge the translated fields, so we add an # additional level of indirection: a .desktop.in.in file. # -desktop_in_in_files = netload.desktop.in.in +desktop_in_in_files = speed.desktop.in.in desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in) desktopdir = $(datadir)/xfce4/panel/plugins diff --git a/panel-plugin/commandline.c b/panel-plugin/commandline.c index 6016eff..6cb0490 100644 --- a/panel-plugin/commandline.c +++ b/panel-plugin/commandline.c @@ -1,23 +1,3 @@ -/* - * Copyright 2003,2005 Bernhard Walle - * ------------------------------------------------------------------------------------------------- - * - * 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., 675 Mass - * Ave, Cambridge, MA 02139, USA. - * - * ------------------------------------------------------------------------------------------------- - */ /* * This is just a command-line wrapper for the operating-system specific code in wormulon/. * I wrote it because with this I'm able to test on systems with no GUI. Since I'm only running @@ -68,7 +48,7 @@ int main(int argc, char* argv[]) return 1; } device = argv[1]; - init_netload(&data, device); + init_speed(&data, device); for (;;) { diff --git a/panel-plugin/net.c b/panel-plugin/net.c index c2cbf63..b2eea50 100644 --- a/panel-plugin/net.c +++ b/panel-plugin/net.c @@ -1,28 +1,6 @@ -/* - * Copyright 2003,2005,2006 Bernhard Walle - * Copyright 2010 Florian Rivoal - * ------------------------------------------------------------------------------------------------- - * - * 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., 675 Mass - * Ave, Cambridge, MA 02139, USA. - * - * ------------------------------------------------------------------------------------------------- - */ - /* * This is just a wrapper between the netload-plugin and the wormulon source. - * Wormulon is a small command-line util which displays the netload. You can find it + * Wormulon is a small command-line util which displays the speed. You can find it * at http://raisdorf.net/wormulon. Most sourcecode is taken from wormulon. * * Thanks to Hendrik Scholz. Only his work made it possible to support a large @@ -51,7 +29,7 @@ /* ---------------------------------------------------------------------------------------------- */ -int init_netload(netdata* data, const char* device) +int init_speed(netdata* data, const char* device) { memset( data, 0, sizeof(netdata) ); diff --git a/panel-plugin/net.h b/panel-plugin/net.h index 82778c8..d26665f 100644 --- a/panel-plugin/net.h +++ b/panel-plugin/net.h @@ -77,10 +77,10 @@ typedef struct * @return true if no error occurs, false otherwise. If there's * an error, the error message may be set */ -int init_netload(netdata* data, const char* device); +int init_speed(netdata* data, const char* device); /** - * Gets the current netload. You must call init_netload() once before you use this function! + * Gets the current speed. You must call init_speed() once before you use this function! * @param in Input load in byte/s. * @param out Output load in byte/s. * @param tot Total load in byte/s. diff --git a/panel-plugin/netload.c b/panel-plugin/speed.c similarity index 98% rename from panel-plugin/netload.c rename to panel-plugin/speed.c index ab1f7df..7cfc732 100644 --- a/panel-plugin/netload.c +++ b/panel-plugin/speed.c @@ -213,23 +213,6 @@ static gboolean update_monitors(gpointer user_data) global->monitor->net_max[i] *= SHRINK_MAX; } } - -#ifdef DEBUG - switch (i) - { - case IN: - DBG("input: Max = %lu", global->monitor->net_max[i]); - break; - - case OUT: - DBG("output: Max = %lu", global->monitor->net_max[i]); - break; - - case TOT: - DBG("total: Max = %lu", global->monitor->net_max[i]); - break; - } -#endif /* DEBUG */ temp = (double)display[i] / global->monitor->net_max[i]; if (temp > 1) @@ -356,6 +339,7 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode, gtk_progress_bar_set_inverted(GTK_PROGRESS_BAR(global->monitor->status[i]), FALSE); } } + /* 竖直方向的XFCE_PANEL */ else if (mode == XFCE_PANEL_PLUGIN_MODE_VERTICAL) { gtk_orientable_set_orientation(GTK_ORIENTABLE(global->box), GTK_ORIENTATION_VERTICAL); @@ -373,7 +357,7 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode, gtk_progress_bar_set_inverted(GTK_PROGRESS_BAR(global->monitor->status[i]), FALSE); } } - else /* mode == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL */ + else /* 水平方向的XFCE_PANEL */ { gtk_orientable_set_orientation(GTK_ORIENTABLE(global->box), GTK_ORIENTATION_HORIZONTAL); gtk_orientable_set_orientation(GTK_ORIENTABLE(global->box_bars), GTK_ORIENTATION_HORIZONTAL); @@ -641,7 +625,7 @@ static void setup_monitor(t_global_monitor *global, gboolean supress_warnings) gtk_widget_hide(global->ebox_bars); } - if (!init_netload( &(global->monitor->data), global->monitor->options.network_device) + if (!init_speed( &(global->monitor->data), global->monitor->options.network_device) && !supress_warnings) { xfce_dialog_show_error (NULL, NULL, diff --git a/panel-plugin/netload.desktop.in.in b/panel-plugin/speed.desktop.in.in similarity index 85% rename from panel-plugin/netload.desktop.in.in rename to panel-plugin/speed.desktop.in.in index fdca671..a3778ad 100644 --- a/panel-plugin/netload.desktop.in.in +++ b/panel-plugin/speed.desktop.in.in @@ -3,7 +3,7 @@ Type=X-XFCE-PanelPlugin Encoding=UTF-8 _Name=网速小插件 _Comment=显示当前网速 -Icon=org.xfce.panel.netload +Icon=org.xfce.panel.speed X-XFCE-Module=speed X-XFCE-Internal=FALSE X-XFCE-API=2.0 diff --git a/po/POTFILES.in b/po/POTFILES.in index a56f5d3..4534627 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,3 +1,3 @@ -panel-plugin/netload.c -panel-plugin/netload.desktop.in.in +panel-plugin/speed.c +panel-plugin/speed.desktop.in.in panel-plugin/utils.c diff --git a/po/en_GB.po b/po/en_GB.po index e69dcd3..5542022 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -2,16 +2,12 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # -# Translators: -# Jeff Bailes , 2007 msgid "" msgstr "" "Project-Id-Version: Xfce Panel Plugins\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-11 00:47+0100\n" -"PO-Revision-Date: 2021-03-10 23:48+0000\n" -"Last-Translator: Nick Schermer \n" -"Language-Team: English (United Kingdom) (http://www.transifex.com/xfce/xfce-panel-plugins/language/en_GB/)\n" +"POT-Creation-Date: 2022-08-23 14:00+0800\n" +"PO-Revision-Date: 2022-08-23 14:00+0800\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,32 +15,32 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. Defaults -#: ../panel-plugin/netload.c:42 +#: ../panel-plugin/speed.c:42 msgid "Net" msgstr "" -#: ../panel-plugin/netload.c:61 +#: ../panel-plugin/speed.c:61 msgid "Xfce4-Speed-Plugin" msgstr "Xfce4-Speed-Plugin" -#: ../panel-plugin/netload.c:64 +#: ../panel-plugin/speed.c:64 msgid "Unknown error." msgstr "Unknown error." -#: ../panel-plugin/netload.c:65 +#: ../panel-plugin/speed.c:65 msgid "Linux proc device '/proc/net/dev' not found." msgstr "Linux proc device '/proc/net/dev' not found." -#: ../panel-plugin/netload.c:66 +#: ../panel-plugin/speed.c:66 msgid "Interface was not found." msgstr "Interface was not found." -#: ../panel-plugin/netload.c:169 +#: ../panel-plugin/speed.c:169 #, c-format msgid "<< %s >> (Interface down)" msgstr "<< %s >> (Interface down)" -#: ../panel-plugin/netload.c:256 +#: ../panel-plugin/speed.c:256 #, c-format msgid "" "<< %s >> (%s)\n" @@ -55,102 +51,102 @@ msgid "" "Total: %s" msgstr "" -#: ../panel-plugin/netload.c:259 +#: ../panel-plugin/speed.c:259 msgid "no IP address" msgstr "no IP address" -#: ../panel-plugin/netload.c:643 +#: ../panel-plugin/speed.c:643 #, c-format msgid "" "%s: Error in initializing:\n" "%s" msgstr "%s: Error in initalising:\n%s" -#: ../panel-plugin/netload.c:969 +#: ../panel-plugin/speed.c:969 msgid "Monitor CPU load, swap usage and memory footprint" msgstr "Monitor CPU load, swap usage and memory footprint" -#: ../panel-plugin/netload.c:971 +#: ../panel-plugin/speed.c:971 msgid "Copyright (c) 2003-2021\n" msgstr "" -#: ../panel-plugin/netload.c:1032 +#: ../panel-plugin/speed.c:1032 msgid "Bar color (i_ncoming):" msgstr "Bar colour (i_ncoming):" -#: ../panel-plugin/netload.c:1033 +#: ../panel-plugin/speed.c:1033 msgid "Bar color (_outgoing):" msgstr "Bar colour (_outgoing):" -#: ../panel-plugin/netload.c:1036 +#: ../panel-plugin/speed.c:1036 msgid "Maximum (inco_ming):" msgstr "Maximum (inco_ming):" -#: ../panel-plugin/netload.c:1037 +#: ../panel-plugin/speed.c:1037 msgid "Maximum (o_utgoing):" msgstr "Maximum (o_utgoing):" -#: ../panel-plugin/netload.c:1042 ../panel-plugin/netload.desktop.in.in.h:1 +#: ../panel-plugin/speed.c:1042 ../panel-plugin/speed.desktop.in.in.h:1 msgid "Network Monitor" msgstr "Network Monitor" -#: ../panel-plugin/netload.c:1044 +#: ../panel-plugin/speed.c:1044 msgid "_Close" msgstr "_Close" -#: ../panel-plugin/netload.c:1045 +#: ../panel-plugin/speed.c:1045 msgid "_Help" msgstr "" -#: ../panel-plugin/netload.c:1072 +#: ../panel-plugin/speed.c:1072 msgid "_Text to display:" msgstr "_Text to display:" -#: ../panel-plugin/netload.c:1103 +#: ../panel-plugin/speed.c:1103 msgid "Network _device:" msgstr "Network _device:" -#: ../panel-plugin/netload.c:1134 +#: ../panel-plugin/speed.c:1134 msgid "Update _interval:" msgstr "Update _interval:" -#: ../panel-plugin/netload.c:1148 +#: ../panel-plugin/speed.c:1148 msgid "s" msgstr "s" -#: ../panel-plugin/netload.c:1163 +#: ../panel-plugin/speed.c:1163 msgid "Show values as _bits" msgstr "" -#: ../panel-plugin/netload.c:1177 +#: ../panel-plugin/speed.c:1177 msgid "_Automatic maximum" msgstr "_Automatic maximum" -#: ../panel-plugin/netload.c:1212 +#: ../panel-plugin/speed.c:1212 msgid "KiB/s" msgstr "KiB/s" -#: ../panel-plugin/netload.c:1238 +#: ../panel-plugin/speed.c:1238 msgid "_Present data as:" msgstr "_Present data as:" -#: ../panel-plugin/netload.c:1248 +#: ../panel-plugin/speed.c:1248 msgid "Bars" msgstr "Bars" -#: ../panel-plugin/netload.c:1249 +#: ../panel-plugin/speed.c:1249 msgid "Values" msgstr "Values" -#: ../panel-plugin/netload.c:1250 +#: ../panel-plugin/speed.c:1250 msgid "Bars and values" msgstr "Bars and values" -#: ../panel-plugin/netload.c:1293 +#: ../panel-plugin/speed.c:1293 msgid "_Colorize values" msgstr "_Colourise values" -#: ../panel-plugin/netload.desktop.in.in.h:2 +#: ../panel-plugin/speed.desktop.in.in.h:2 msgid "Show network traffic" msgstr "Show network traffic" diff --git a/po/zh_CN.po b/po/zh_CN.po index 9fd117c..e53b807 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Xfce Panel Plugins\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-11 00:47+0100\n" -"PO-Revision-Date: 2021-03-10 23:48+0000\n" +"POT-Creation-Date: 2022-08-23 14:00+0800\n" +"PO-Revision-Date: 2022-08-23 14:00+0800\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -15,32 +15,32 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. Defaults -#: ../panel-plugin/netload.c:42 +#: ../panel-plugin/speed.c:42 msgid "Net" msgstr "网络" -#: ../panel-plugin/netload.c:61 +#: ../panel-plugin/speed.c:61 msgid "Xfce4-Speed-Plugin" msgstr "Xfce4-Speed-Plugin" -#: ../panel-plugin/netload.c:64 +#: ../panel-plugin/speed.c:64 msgid "Unknown error." msgstr "未知错误。" -#: ../panel-plugin/netload.c:65 +#: ../panel-plugin/speed.c:65 msgid "Linux proc device '/proc/net/dev' not found." msgstr "未找到 Linux proc 设备 ‘/proc/net/dev’。" -#: ../panel-plugin/netload.c:66 +#: ../panel-plugin/speed.c:66 msgid "Interface was not found." msgstr "未找到网络接口。" -#: ../panel-plugin/netload.c:169 +#: ../panel-plugin/speed.c:169 #, c-format msgid "<< %s >> (Interface down)" msgstr "<< %s >> (接口关闭)" -#: ../panel-plugin/netload.c:256 +#: ../panel-plugin/speed.c:256 #, c-format msgid "" "<< %s >> (%s)\n" @@ -51,102 +51,102 @@ msgid "" "Total: %s" msgstr "<< %s >> (%s)\n最近 %d个 时间段内\n%.2f 秒内的平均值:\n流入:%s\n流出:%s\n总共:%s" -#: ../panel-plugin/netload.c:259 +#: ../panel-plugin/speed.c:259 msgid "no IP address" msgstr "无 IP 地址" -#: ../panel-plugin/netload.c:643 +#: ../panel-plugin/speed.c:643 #, c-format msgid "" "%s: Error in initializing:\n" "%s" msgstr "%s:初始化时出错:\n%s" -#: ../panel-plugin/netload.c:969 +#: ../panel-plugin/speed.c:969 msgid "Monitor CPU load, swap usage and memory footprint" msgstr "监视 CPU 负载、交换分区用量和内存使用踪迹" -#: ../panel-plugin/netload.c:971 +#: ../panel-plugin/speed.c:971 msgid "Copyright (c) 2003-2021\n" msgstr "版权所有 (c) 2003-2021\n" -#: ../panel-plugin/netload.c:1032 +#: ../panel-plugin/speed.c:1032 msgid "Bar color (i_ncoming):" msgstr "柱图颜色(流入)(_N):" -#: ../panel-plugin/netload.c:1033 +#: ../panel-plugin/speed.c:1033 msgid "Bar color (_outgoing):" msgstr "柱图颜色(流出)(_O):" -#: ../panel-plugin/netload.c:1036 +#: ../panel-plugin/speed.c:1036 msgid "Maximum (inco_ming):" msgstr "最大值(流入)(_M):" -#: ../panel-plugin/netload.c:1037 +#: ../panel-plugin/speed.c:1037 msgid "Maximum (o_utgoing):" msgstr "最大值(流出)(_U):" -#: ../panel-plugin/netload.c:1042 ../panel-plugin/netload.desktop.in.in.h:1 +#: ../panel-plugin/speed.c:1042 ../panel-plugin/speed.desktop.in.in.h:1 msgid "Network Monitor" msgstr "网络监视器" -#: ../panel-plugin/netload.c:1044 +#: ../panel-plugin/speed.c:1044 msgid "_Close" msgstr "关闭(_C)" -#: ../panel-plugin/netload.c:1045 +#: ../panel-plugin/speed.c:1045 msgid "_Help" msgstr "帮助(_H)" -#: ../panel-plugin/netload.c:1072 +#: ../panel-plugin/speed.c:1072 msgid "_Text to display:" msgstr "要显示的文字(_T):" -#: ../panel-plugin/netload.c:1103 +#: ../panel-plugin/speed.c:1103 msgid "Network _device:" msgstr "网络设备(_D):" -#: ../panel-plugin/netload.c:1134 +#: ../panel-plugin/speed.c:1134 msgid "Update _interval:" msgstr "更新间隔(_I):" -#: ../panel-plugin/netload.c:1148 +#: ../panel-plugin/speed.c:1148 msgid "s" msgstr "秒" -#: ../panel-plugin/netload.c:1163 +#: ../panel-plugin/speed.c:1163 msgid "Show values as _bits" msgstr "以比特显示值(_B)" -#: ../panel-plugin/netload.c:1177 +#: ../panel-plugin/speed.c:1177 msgid "_Automatic maximum" msgstr "自动最大值(_A)" -#: ../panel-plugin/netload.c:1212 +#: ../panel-plugin/speed.c:1212 msgid "KiB/s" msgstr "KiB/s" -#: ../panel-plugin/netload.c:1238 +#: ../panel-plugin/speed.c:1238 msgid "_Present data as:" msgstr "显示方法(_P):" -#: ../panel-plugin/netload.c:1248 +#: ../panel-plugin/speed.c:1248 msgid "Bars" msgstr "柱图" -#: ../panel-plugin/netload.c:1249 +#: ../panel-plugin/speed.c:1249 msgid "Values" msgstr "文字" -#: ../panel-plugin/netload.c:1250 +#: ../panel-plugin/speed.c:1250 msgid "Bars and values" msgstr "柱图和文字" -#: ../panel-plugin/netload.c:1293 +#: ../panel-plugin/speed.c:1293 msgid "_Colorize values" msgstr "使用彩色显示文字(_C)" -#: ../panel-plugin/netload.desktop.in.in.h:2 +#: ../panel-plugin/speed.desktop.in.in.h:2 msgid "Show network traffic" msgstr "显示网络流量" diff --git a/po/zh_TW.po b/po/zh_TW.po index 79793d8..a4c63f1 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: Xfce Panel Plugins\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-11 00:47+0100\n" -"PO-Revision-Date: 2021-03-10 23:48+0000\n" +"POT-Creation-Date: 2022-08-23 14:00+0800\n" +"PO-Revision-Date: 2022-08-23 14:00+0800\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -14,32 +14,32 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. Defaults -#: ../panel-plugin/netload.c:42 +#: ../panel-plugin/speed.c:42 msgid "Net" msgstr "網路" -#: ../panel-plugin/netload.c:61 +#: ../panel-plugin/speed.c:61 msgid "Xfce4-Speed-Plugin" msgstr "Xfce4-Speed-Plugin" -#: ../panel-plugin/netload.c:64 +#: ../panel-plugin/speed.c:64 msgid "Unknown error." msgstr "未知錯誤。" -#: ../panel-plugin/netload.c:65 +#: ../panel-plugin/speed.c:65 msgid "Linux proc device '/proc/net/dev' not found." msgstr "找不到 Linux proc 裝置「/proc/net/dev」。" -#: ../panel-plugin/netload.c:66 +#: ../panel-plugin/speed.c:66 msgid "Interface was not found." msgstr "找不到介面。" -#: ../panel-plugin/netload.c:169 +#: ../panel-plugin/speed.c:169 #, c-format msgid "<< %s >> (Interface down)" msgstr "<< %s >> (介面 down)" -#: ../panel-plugin/netload.c:256 +#: ../panel-plugin/speed.c:256 #, c-format msgid "" "<< %s >> (%s)\n" @@ -50,102 +50,102 @@ msgid "" "Total: %s" msgstr "<< %s >> (%s)\n最近 %d 次測量平均\n間隔 %.2fs:\n傳入:%s\n傳出:%s\n總計:%s" -#: ../panel-plugin/netload.c:259 +#: ../panel-plugin/speed.c:259 msgid "no IP address" msgstr "無 IP 位址" -#: ../panel-plugin/netload.c:643 +#: ../panel-plugin/speed.c:643 #, c-format msgid "" "%s: Error in initializing:\n" "%s" msgstr "%s:初始化發生錯誤:\n%s" -#: ../panel-plugin/netload.c:969 +#: ../panel-plugin/speed.c:969 msgid "Monitor CPU load, swap usage and memory footprint" msgstr "監測 CPU 負載、置換空間及記憶體使用量" -#: ../panel-plugin/netload.c:971 +#: ../panel-plugin/speed.c:971 msgid "Copyright (c) 2003-2021\n" msgstr "Copyright (c) 2003-2021\n" -#: ../panel-plugin/netload.c:1032 +#: ../panel-plugin/speed.c:1032 msgid "Bar color (i_ncoming):" msgstr "條色彩 (傳入)(_N):" -#: ../panel-plugin/netload.c:1033 +#: ../panel-plugin/speed.c:1033 msgid "Bar color (_outgoing):" msgstr "條色彩 (傳出)(_O):" -#: ../panel-plugin/netload.c:1036 +#: ../panel-plugin/speed.c:1036 msgid "Maximum (inco_ming):" msgstr "最大 (傳入)(_M):" -#: ../panel-plugin/netload.c:1037 +#: ../panel-plugin/speed.c:1037 msgid "Maximum (o_utgoing):" msgstr "最大 (傳出)(_U):" -#: ../panel-plugin/netload.c:1042 ../panel-plugin/netload.desktop.in.in.h:1 +#: ../panel-plugin/speed.c:1042 ../panel-plugin/speed.desktop.in.in.h:1 msgid "Network Monitor" msgstr "網路監視器" -#: ../panel-plugin/netload.c:1044 +#: ../panel-plugin/speed.c:1044 msgid "_Close" msgstr "關閉(_C)" -#: ../panel-plugin/netload.c:1045 +#: ../panel-plugin/speed.c:1045 msgid "_Help" msgstr "說明(_H)" -#: ../panel-plugin/netload.c:1072 +#: ../panel-plugin/speed.c:1072 msgid "_Text to display:" msgstr "要顯示的文字(_T):" -#: ../panel-plugin/netload.c:1103 +#: ../panel-plugin/speed.c:1103 msgid "Network _device:" msgstr "網路裝置(_D):" -#: ../panel-plugin/netload.c:1134 +#: ../panel-plugin/speed.c:1134 msgid "Update _interval:" msgstr "更新時間隔(_I):" -#: ../panel-plugin/netload.c:1148 +#: ../panel-plugin/speed.c:1148 msgid "s" msgstr "秒" -#: ../panel-plugin/netload.c:1163 +#: ../panel-plugin/speed.c:1163 msgid "Show values as _bits" msgstr "以位元顯示值(_B)" -#: ../panel-plugin/netload.c:1177 +#: ../panel-plugin/speed.c:1177 msgid "_Automatic maximum" msgstr "自動最大(_A)" -#: ../panel-plugin/netload.c:1212 +#: ../panel-plugin/speed.c:1212 msgid "KiB/s" msgstr "KiB/s" -#: ../panel-plugin/netload.c:1238 +#: ../panel-plugin/speed.c:1238 msgid "_Present data as:" msgstr "顯示資料為(_P):" -#: ../panel-plugin/netload.c:1248 +#: ../panel-plugin/speed.c:1248 msgid "Bars" msgstr "條" -#: ../panel-plugin/netload.c:1249 +#: ../panel-plugin/speed.c:1249 msgid "Values" msgstr "值" -#: ../panel-plugin/netload.c:1250 +#: ../panel-plugin/speed.c:1250 msgid "Bars and values" msgstr "條與值" -#: ../panel-plugin/netload.c:1293 +#: ../panel-plugin/speed.c:1293 msgid "_Colorize values" msgstr "色彩化值(_C)" -#: ../panel-plugin/netload.desktop.in.in.h:2 +#: ../panel-plugin/speed.desktop.in.in.h:2 msgid "Show network traffic" msgstr "顯示網路流量"