diff -Nru indicator-cpufreq-0.1.4/AUTHORS indicator-cpufreq-0.2/AUTHORS --- indicator-cpufreq-0.1.4/AUTHORS 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/AUTHORS 2013-01-25 19:37:18.000000000 +0700 @@ -1 +1 @@ -Copyright (C) 2010 Артём Попов +Copyright (C) 2010 Artem Popov diff -Nru indicator-cpufreq-0.1.4/bin/indicator-cpufreq indicator-cpufreq-0.2/bin/indicator-cpufreq --- indicator-cpufreq-0.1.4/bin/indicator-cpufreq 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/bin/indicator-cpufreq 2013-01-25 20:05:48.000000000 +0700 @@ -1,7 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/env python3 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE -# Copyright (C) 2010 Артём Попов +# Copyright (C) 2010 Artem Popov # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Software Foundation. @@ -49,8 +49,6 @@ if python_path: os.putenv('PYTHONPATH', "%s:%s" % (os.getenv('PYTHONPATH', ''), ':'.join(python_path))) # for subprocesses os.putenv('PYTHONPATH', "%s:%s" % (os.getenv('PYTHONPATH', ''), ':'.join(python_path))) # for subprocesses os.putenv('PYTHONPATH', PROJECT_ROOT_DIRECTORY) # for subprocesses -from indicator_cpufreq import indicator_cpufreqconfig - LEVELS = ( logging.ERROR, logging.WARNING, logging.INFO, @@ -58,15 +56,15 @@ ) if __name__ == "__main__": - - version = indicator_cpufreqconfig.__indicator_cpufreq_data_directory__ # Support for command line options. usage = _("indicator-cpufreq [options]") - parser = optparse.OptionParser(version="indicator-cpufreq %s" % version, usage=usage) + parser = optparse.OptionParser(usage=usage) parser.add_option('-d', '--debug', dest='debug_mode', action='store_true', - help=_('Print the maximum debugging info (implies -vv)')) + help=_('print the maximum debugging info (implies -vv)')) parser.add_option('-v', '--verbose', dest='logging_level', action='count', help=_('set error_level output to warning, info, and then debug')) + parser.add_option('-f', '--frequency', dest='show_frequency', action='store_true', + help=_('show the frequency with text along with the icon')) parser.set_defaults(logging_level=0, foo=None) (options, args) = parser.parse_args() @@ -77,6 +75,6 @@ # Run your cli application there. from indicator_cpufreq.indicator import MyIndicator - import gtk - ind = MyIndicator() - gtk.main() + from gi.repository import Gtk + ind = MyIndicator(options.show_frequency) + Gtk.main() diff -Nru indicator-cpufreq-0.1.4/bin/indicator-cpufreq-selector indicator-cpufreq-0.2/bin/indicator-cpufreq-selector --- indicator-cpufreq-0.1.4/bin/indicator-cpufreq-selector 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/bin/indicator-cpufreq-selector 2013-01-25 19:38:22.000000000 +0700 @@ -1,7 +1,7 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- # -# Copyright (C) 2010 Артём Попов +# Copyright (C) 2010 Artem Popov # Copyright (C) 2008 Canonical Ltd. # # This program is free software: you can redistribute it and/or modify it @@ -16,18 +16,16 @@ # You should have received a copy of the GNU General Public License along # with this program. If not, see . -import gobject +from gi.repository import GLib import dbus.service import dbus.mainloop.glib from indicator_cpufreq import cpufreq - class PermissionDeniedByPolicy(dbus.DBusException): _dbus_error_name = 'com.ubuntu.DeviceDriver.PermissionDeniedByPolicy' - class IndicatorCpufreqSelector(dbus.service.Object): DBUS_INTERFACE_NAME = 'com.ubuntu.IndicatorCpufreqSelector' @@ -121,5 +119,5 @@ object = IndicatorCpufreqSelector(bus, '/Selector') #object.enforce_polkit = False - mainloop = gobject.MainLoop() + mainloop = GLib.MainLoop() mainloop.run() diff -Nru indicator-cpufreq-0.1.4/debian/changelog indicator-cpufreq-0.2/debian/changelog --- indicator-cpufreq-0.1.4/debian/changelog 2012-03-28 13:07:56.000000000 +0700 +++ indicator-cpufreq-0.2/debian/changelog 2013-01-26 08:38:38.000000000 +0700 @@ -1,3 +1,16 @@ +indicator-cpufreq (0.2-0ubuntu1) raring; urgency=low + + * New upstream release (LP: #1105609): + - App ported to Python 3. + - Fixes LP: #1008438. + - Fixes LP: #1079864. + - Translation updates. + * debian/copyright format updated. + * Manually build py3 binary in debian/rules. + * Fix remaining lintian warnings (LP: #1082259). + + -- Artem Popov Fri, 25 Jan 2013 21:47:41 +0700 + indicator-cpufreq (0.1.4-0ubuntu2) precise; urgency=low * Allow both "sudo" and "admin" groups to change CPU frequency diff -Nru indicator-cpufreq-0.1.4/debian/compat indicator-cpufreq-0.2/debian/compat --- indicator-cpufreq-0.1.4/debian/compat 2011-07-24 14:52:51.000000000 +0700 +++ indicator-cpufreq-0.2/debian/compat 2013-01-24 23:05:55.000000000 +0700 @@ -1 +1 @@ -7 +9 diff -Nru indicator-cpufreq-0.1.4/debian/control indicator-cpufreq-0.2/debian/control --- indicator-cpufreq-0.1.4/debian/control 2011-11-07 08:19:55.000000000 +0700 +++ indicator-cpufreq-0.2/debian/control 2013-01-25 22:06:02.000000000 +0700 @@ -1,22 +1,23 @@ Source: indicator-cpufreq Section: python Priority: extra -Build-Depends: debhelper (>= 7.0.50~), - python (>= 2.6.6-3~), - python-distutils-extra (>= 2.10) +Build-Depends: debhelper (>= 9), + python3, + python3-distutils-extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Artem Popov -Standards-Version: 3.9.2 +Standards-Version: 3.9.4 Homepage: https://launchpad.net/indicator-cpufreq +X-Python3-Version: >= 3.2 Package: indicator-cpufreq Architecture: all Depends: ${misc:Depends}, - ${python:Depends}, - python-gobject, - python-dbus, - python-appindicator, - python-gtk2, + ${python3:Depends}, + python3, + python3-dbus, + python3-gi, + gir1.2-appindicator3-0.1, libcpufreq0 Description: CPU frequency scaling indicator Indicator applet for displaying and changing CPU frequency on the fly. It diff -Nru indicator-cpufreq-0.1.4/debian/copyright indicator-cpufreq-0.2/debian/copyright --- indicator-cpufreq-0.1.4/debian/copyright 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/debian/copyright 2013-01-25 21:50:34.000000000 +0700 @@ -1,11 +1,12 @@ -Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 -Name: indicator-cpufreq -Maintainer: Артём Попов +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: indicator-cpufreq +Upstream-Contact: Artem Popov Source: https://launchpad.net/indicator-cpufreq Files: * -Copyright: (C) 2010 Rosetta Contributors and Canonical Ltd 2010 -Copyright: (C) 2010 Артём Попов +Copyright: 2010, Artem Popov + 2010, Rosetta Contributors and Canonical Ltd License: GPL-3 - The full text of the GPL is distributed in - /usr/share/common-licenses/GPL-3 on Debian systems. + On Debian systems, the full text of the GNU General Public + License version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. diff -Nru indicator-cpufreq-0.1.4/debian/rules indicator-cpufreq-0.2/debian/rules --- indicator-cpufreq-0.1.4/debian/rules 2011-11-07 08:20:19.000000000 +0700 +++ indicator-cpufreq-0.2/debian/rules 2013-01-25 19:42:33.000000000 +0700 @@ -1,7 +1,16 @@ #!/usr/bin/make -f %: - dh --with python2 $@ + dh $@ --with python3 + +override_dh_auto_clean: + python3 setup.py clean + +override_dh_auto_build: + python3 setup.py build + +override_dh_auto_install: + python3 setup.py install --root=$(CURDIR)/debian/indicator-cpufreq --install-layout=deb override_dh_install: dh_install diff -Nru indicator-cpufreq-0.1.4/indicator_cpufreq/cpufreq.py indicator-cpufreq-0.2/indicator_cpufreq/cpufreq.py --- indicator-cpufreq-0.1.4/indicator_cpufreq/cpufreq.py 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/indicator_cpufreq/cpufreq.py 2013-01-25 20:53:13.000000000 +0700 @@ -1,6 +1,6 @@ # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE -# Copyright (C) 2010 Артём Попов +# Copyright (C) 2010 Artem Popov # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Software Foundation. @@ -136,25 +136,28 @@ return (min.value, max.value) def get_driver(cpu): - return _libcpufreq.cpufreq_get_driver(cpu) + return _libcpufreq.cpufreq_get_driver(cpu).decode() def get_policy(cpu): p = _libcpufreq.cpufreq_get_policy(cpu) - policy = (p.contents.min, p.contents.max, p.contents.governor) + policy = (p.contents.min, p.contents.max, p.contents.governor.decode()) _libcpufreq.cpufreq_put_policy(p) return policy -def _marshall_structs(first, field): +def _marshall_structs(first, field, decode=False): values = [] p = first while p: - values.append(getattr(p.contents, field)) + if decode: + values.append(getattr(p.contents, field).decode()) + else: + values.append(getattr(p.contents, field)) p = p.contents.next return values def get_available_governors(cpu): structs = _libcpufreq.cpufreq_get_available_governors(cpu) - values = _marshall_structs(structs, 'governor') + values = _marshall_structs(structs, 'governor', decode=True) _libcpufreq.cpufreq_put_available_governors(structs) return values @@ -199,7 +202,7 @@ return _libcpufreq.cpufreq_modify_policy_max(cpu, max_freq) def modify_policy_governor(cpu, governor): - return _libcpufreq.cpufreq_modify_policy_governor(cpu, governor) + return _libcpufreq.cpufreq_modify_policy_governor(cpu, governor.encode()) def set_frequency(cpu, target_frequency): return _libcpufreq.cpufreq_set_frequency(cpu, target_frequency) diff -Nru indicator-cpufreq-0.1.4/indicator_cpufreq/indicator_cpufreqconfig.py indicator-cpufreq-0.2/indicator_cpufreq/indicator_cpufreqconfig.py --- indicator-cpufreq-0.1.4/indicator_cpufreq/indicator_cpufreqconfig.py 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/indicator_cpufreq/indicator_cpufreqconfig.py 1970-01-01 06:00:00.000000000 +0600 @@ -1,80 +0,0 @@ -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- -### BEGIN LICENSE -# Copyright (C) 2010 Артём Попов -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License version 3, as published -# by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranties of -# MERCHANTABILITY, SATISFACTORY QUALITY, 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, see . -### END LICENSE - -# THIS IS IndicatorCpufreq CONFIGURATION FILE -# YOU CAN PUT THERE SOME GLOBAL VALUE -# Do not touch unless you know what you're doing. -# you're warned :) - -__all__ = [ - 'project_path_not_found', - 'get_data_file', - 'get_data_path', - ] - -# Where your project will look for your data (for instance, images and ui -# files). By default, this is ../data, relative your trunk layout -__indicator_cpufreq_data_directory__ = '../data/' -__license__ = 'GPL-3' - -import os - -import gettext -from gettext import gettext as _ -gettext.textdomain('indicator-cpufreq') - -class project_path_not_found(Exception): - """Raised when we can't find the project directory.""" - - -def get_data_file(*path_segments): - """Get the full path to a data file. - - Returns the path to a file underneath the data directory (as defined by - `get_data_path`). Equivalent to os.path.join(get_data_path(), - *path_segments). - """ - return os.path.join(get_data_path(), *path_segments) - - -def get_data_path(): - """Retrieve indicator-cpufreq data path - - This path is by default /../data/ in trunk - and /usr/share/indicator-cpufreq in an installed version but this path - is specified at installation time. - """ - - # Get pathname absolute or relative. - path = os.path.join( - os.path.dirname(__file__), __indicator_cpufreq_data_directory__) - - abs_data_path = os.path.abspath(path) - if not os.path.exists(abs_data_path): - raise project_path_not_found - - return abs_data_path - -# FIXME: hack to get icon_theme_path until we resolve it with quickly -def get_icon_path(): - if __indicator_cpufreq_data_directory__ == '../data/': - path = os.path.join(os.path.dirname(__file__), '../icons') - abs_data_path = os.path.abspath(path) - if not os.path.exists(abs_data_path): - raise project_path_not_found - return abs_data_path - else: - return None diff -Nru indicator-cpufreq-0.1.4/indicator_cpufreq/indicator.py indicator-cpufreq-0.2/indicator_cpufreq/indicator.py --- indicator-cpufreq-0.1.4/indicator_cpufreq/indicator.py 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/indicator_cpufreq/indicator.py 2013-01-25 21:21:30.000000000 +0700 @@ -1,6 +1,6 @@ # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- # -# Copyright (C) 2010 Артём Попов +# Copyright (C) 2010 Artem Popov # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Software Foundation. @@ -16,15 +16,14 @@ # FIXME: # org.freedesktop.PolicyKit1 (cheat at distutils-extra) -import gobject -import gtk -import appindicator +from gi.repository import GLib +from gi.repository import Gtk +from gi.repository import AppIndicator3 as appindicator import locale import dbus from indicator_cpufreq import cpufreq -from indicator_cpufreq.indicator_cpufreqconfig import get_data_file, get_icon_path import gettext from gettext import gettext as _ @@ -42,25 +41,26 @@ } def readable_governor(g): - if governor_names.has_key(g): + if g in governor_names: return governor_names[g] else: return g -class MyIndicator(appindicator.Indicator): - def __init__(self): - appindicator.Indicator.__init__(self, "indicator-cpufreq", +class MyIndicator(object): + def __init__(self, show_frequency=False): + self.show_frequency = show_frequency + self.ind = appindicator.Indicator.new("indicator-cpufreq", "indicator-cpufreq", - appindicator.CATEGORY_HARDWARE) - self.set_status(appindicator.STATUS_ACTIVE) - - self.set_icon_theme_path("/usr/share/icons") + appindicator.IndicatorCategory.HARDWARE) + self.ind.set_status(appindicator.IndicatorStatus.ACTIVE) + + self.ind.set_icon_theme_path("/usr/share/icons") #self.set_icon(get_data_file('media', 'indicator-cpufreq.png')) - self.set_icon('indicator-cpufreq') + self.ind.set_icon('indicator-cpufreq') - menu = gtk.Menu() + menu = Gtk.Menu() self.select_items = {} - group = None + group = [] maxcpu = 0 while cpufreq.cpu_exists(maxcpu) == 0: @@ -68,37 +68,37 @@ self.cpus = range(maxcpu) # frequency menu items - freqs = cpufreq.get_available_frequencies(self.cpus[0]) + #freqs = cpufreq.get_available_frequencies(self.cpus[0]) + freqs = reversed(sorted(set(cpufreq.get_available_frequencies(self.cpus[0])))) for freq in freqs: - menu_item = gtk.RadioMenuItem(group, readable_frequency(freq)) - if group is None: - group = menu_item + menu_item = Gtk.RadioMenuItem.new_with_label(group, readable_frequency(freq)) + group = menu_item.get_group() menu.append(menu_item) menu_item.connect("activate", self.select_activated, 'frequency', freq) self.select_items[freq] = menu_item - menu.append(gtk.SeparatorMenuItem()) + menu.append(Gtk.SeparatorMenuItem()) # governor menu items governors = cpufreq.get_available_governors(self.cpus[0]) for governor in governors: if governor == 'userspace': continue - menu_item = gtk.RadioMenuItem(group, readable_governor(governor)) + menu_item = Gtk.RadioMenuItem.new_with_label(group, readable_governor(governor)) + group = menu_item.get_group() menu.append(menu_item) menu_item.connect('activate', self.select_activated, 'governor', governor) self.select_items[governor] = menu_item - - menu.show_all() - - self.set_menu(menu) + + menu.show_all() + self.ind.set_menu(menu) self.update_ui() - gobject.timeout_add(1500, self.poll_timeout) + GLib.timeout_add_seconds(1, self.poll_timeout) def poll_timeout(self): self.update_ui() return True - + def update_ui(self): for i in self.select_items.values(): i.handler_block_by_func(self.select_activated) @@ -107,13 +107,14 @@ # use the highest freq among cores for display freq = max([cpufreq.get_freq_kernel(cpu) for cpu in self.cpus]) - ratio = min([25, 50, 75, 100], key=lambda x: abs(x - (float(freq) / fmax * 100))) + ratio = min([25, 50, 75, 100], key=lambda x: abs((fmax - fmin) * x / 100.0 - (freq - fmin))) if freq < fmax and ratio == 100: ratio = 75 #self.set_icon(get_data_file('media', 'indicator-cpufreq-%d.png' % ratio)) - self.set_icon('indicator-cpufreq-%d' % ratio) - + self.ind.set_icon('indicator-cpufreq-%d' % ratio) + if self.show_frequency: + self.ind.set_label(readable_frequency(freq), "3.00 GHz") if governor == 'userspace': self.select_items[freq].set_active(True) else: @@ -125,7 +126,7 @@ #self.props.label = readable_frequency(freq) def select_activated(self, menuitem, select, value): - if menuitem.active: + if menuitem.get_active(): bus = dbus.SystemBus() proxy = bus.get_object("com.ubuntu.IndicatorCpufreqSelector", "/Selector", introspect=False) cpus = [dbus.UInt32(cpu) for cpu in self.cpus] @@ -139,9 +140,7 @@ def can_set(self): pass -gobject.type_register(MyIndicator) - if __name__ == "__main__": ind = MyIndicator() - gtk.main() + Gtk.main() diff -Nru indicator-cpufreq-0.1.4/PKG-INFO indicator-cpufreq-0.2/PKG-INFO --- indicator-cpufreq-0.1.4/PKG-INFO 2011-07-25 03:09:13.000000000 +0700 +++ indicator-cpufreq-0.2/PKG-INFO 2013-01-25 21:31:07.000000000 +0700 @@ -1,15 +1,15 @@ Metadata-Version: 1.1 Name: indicator-cpufreq -Version: 0.1.4 +Version: 0.2 Summary: CPU frequency scaling indicator Home-page: https://launchpad.net/indicator-cpufreq -Author: Артём Попов +Author: Artem Popov Author-email: artfwo@gmail.com License: GPL-3 Description: Indicator applet for displaying and changing CPU frequency on-the-fly. Platform: UNKNOWN -Requires: appindicator Requires: dbus -Requires: gobject -Requires: gtk +Requires: gi.repository.AppIndicator3 +Requires: gi.repository.GLib +Requires: gi.repository.Gtk Provides: indicator_cpufreq diff -Nru indicator-cpufreq-0.1.4/po/ast.po indicator-cpufreq-0.2/po/ast.po --- indicator-cpufreq-0.1.4/po/ast.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/ast.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,77 @@ +# Asturian translation for indicator-cpufreq +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2011-10-29 11:32+0000\n" +"Last-Translator: ASTUR2000 \n" +"Language-Team: Asturian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-10-30 05:24+0000\n" +"X-Generator: Launchpad (build 14197)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "indicator-cpufreq [options]" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "Amosar la másima información de depuranción (implies -vv)" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "" +"Poner error_level output pa'allertar, información, ya dempués depurar" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "%s GHz" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "%.2f" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "Aforrador" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "Embaxo demanda" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "Aforru d'enerxía" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "Rendimientu" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "Camudar la escala de frecuencia CPU" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "" +"La direutiva'l sistema nun-y almite camudar la escala frecuencia la CPU." + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "" +"Un indicador pal siguimientu ya la camudancia d'escala de frecuencia CPU" + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "Indicador de frecuencia CPU n'escala" diff -Nru indicator-cpufreq-0.1.4/po/cs.po indicator-cpufreq-0.2/po/cs.po --- indicator-cpufreq-0.1.4/po/cs.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/cs.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,74 @@ +# Czech translation for indicator-cpufreq +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2012-05-13 20:38+0000\n" +"Last-Translator: Tadeáš Pařík \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-05-14 04:52+0000\n" +"X-Generator: Launchpad (build 15238)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "indicator-cpufreq [volby]" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "Zobrazí maximální možné ladící informace (předpokládá -vv)" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "nastavit výstup error_level na varování, info a poté režim lazení" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "%s GHz" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "%.2f" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "Konzervativní" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "Podle potřeby" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "Úsporný" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "Výkon" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "Změna škálování frekvence CPU" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "Systémová nastavení vám brání ve změně škálování frekvence CPU." + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "Indikátor pro monitorování a přepínání frekvence CPU" + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "Indikátor škálování frekvence CPU" diff -Nru indicator-cpufreq-0.1.4/po/de.po indicator-cpufreq-0.2/po/de.po --- indicator-cpufreq-0.1.4/po/de.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/de.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,76 @@ +# German translation for indicator-cpufreq +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2011-11-29 11:56+0000\n" +"Last-Translator: Jan Simon \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-11-30 05:47+0000\n" +"X-Generator: Launchpad (build 14404)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "indicator-cpufreq [Optionen]" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "Gibt die maximalen Debugging-Informationen aus (beinhaltet -vv)" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "" +"Setzt die error_level Ausgabe auf Warnung, Information und dann Debug" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "%s GHz" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "%.2f" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "Konservativ" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "Bedarf" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "Energiesparen" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "Leistung" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "Ändere CPU-Frequenzskalierung" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "" +"Systemrichtlinien verhindern die Änderung der CPU-Frequenzskalierung." + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "Ein Indicator zum Beobachten und Ändern der CPU-Frequenzskalierung" + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "CPU-Frequenzskalierungs Indicator" diff -Nru indicator-cpufreq-0.1.4/po/es.po indicator-cpufreq-0.2/po/es.po --- indicator-cpufreq-0.1.4/po/es.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/es.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,77 @@ +# Spanish translation for indicator-cpufreq +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2012-03-28 06:47+0000\n" +"Last-Translator: Fitoschido \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-03-29 04:51+0000\n" +"X-Generator: Launchpad (build 15032)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "indicator-cpufreq [opciones]" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "Mostrar el máximo de información de depuración (implica -vv)" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "establecer salida error_level a warning, info, y después depurar" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "%s GHz" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "%.2f" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "Conservador" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "Demandado" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "Ahorro de energía" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "Rendimiento" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "Cambiar la escala de frecuencia de CPU" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "" +"La directiva del sistema no le permite cambiar la escala de frecuencia de la " +"CPU." + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "" +"Un indicador para el seguimiento y el cambio de escala de frecuencia de CPU" + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "Frecuencia de la CPU de escala en el indicador" diff -Nru indicator-cpufreq-0.1.4/po/fi.po indicator-cpufreq-0.2/po/fi.po --- indicator-cpufreq-0.1.4/po/fi.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/fi.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,14 +8,14 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-01-16 12:20+0000\n" +"PO-Revision-Date: 2012-02-28 10:41+0000\n" "Last-Translator: Jiri Grönroos \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" -"X-Generator: Launchpad (build 13405)\n" +"X-Launchpad-Export-Date: 2012-02-29 04:57+0000\n" +"X-Generator: Launchpad (build 14874)\n" #. Support for command line options. #: ../bin/indicator-cpufreq.py:64 @@ -59,19 +59,17 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "Muuta suorittimen kellotaajuutta" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." msgstr "" +"Järjestelmäkäytäntö estää sinua muuttamasta suorittimen kellotaajuutta." #: ../indicator-cpufreq.desktop.in.h:1 msgid "An indicator for monitoring and switching CPU frequency scaling" -msgstr "" +msgstr "Ilmaisin suorittimen kellotaajuuden hallintaa varten" #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" -msgstr "" - -#~ msgid "Show debug messages" -#~ msgstr "Näytä vianjäljitysviestit" +msgstr "Suorittimen kellotaajuuden ilmaisin" diff -Nru indicator-cpufreq-0.1.4/po/fr.po indicator-cpufreq-0.2/po/fr.po --- indicator-cpufreq-0.1.4/po/fr.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/fr.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,13 +8,13 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-05-07 00:09+0000\n" -"Last-Translator: Simon Richard \n" +"PO-Revision-Date: 2011-07-28 07:51+0000\n" +"Last-Translator: LEROY Jean-Christophe \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" +"X-Launchpad-Export-Date: 2011-07-29 05:41+0000\n" "X-Generator: Launchpad (build 13405)\n" #. Support for command line options. @@ -60,19 +60,21 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "Ajustement de la fréquence du CPU" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." -msgstr "" +msgstr "La politique de système vous empêche d'ajuster la fréquence du CPU." #: ../indicator-cpufreq.desktop.in.h:1 msgid "An indicator for monitoring and switching CPU frequency scaling" msgstr "" +"Un indicateur de surveillance et de commutation d'ajustement de fréquence du " +"CPU" #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" -msgstr "" +msgstr "Indicateur d'ajustement de fréquence du CPU" #~ msgid "easter egg found" #~ msgstr "Oeuf de pâque trouvé" diff -Nru indicator-cpufreq-0.1.4/po/hr.po indicator-cpufreq-0.2/po/hr.po --- indicator-cpufreq-0.1.4/po/hr.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/hr.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,75 @@ +# Croatian translation for indicator-cpufreq +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2012-06-02 10:55+0000\n" +"Last-Translator: gogo \n" +"Language-Team: Croatian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-06-03 05:11+0000\n" +"X-Generator: Launchpad (build 15342)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "indikator-cpufrek [mogućnosti]" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "Ispiši najveću informaciju otklanjanja greške (implies -vv)" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "" +"postavi error_level izlaz za upozorenje, informacije i onda otkloni grešku" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "%s GHz" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "%.2f" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "Konzervativno" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "Na zahtjev" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "Štedljivo" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "Performanse" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "Promjena CPU frekvencije" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "Pravila sustava sprječavaju promjene CPU frekvencije." + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "Indikator za nadzor i promjenu CPU frekvencije" + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "Indikator CPU frekvencije" diff -Nru indicator-cpufreq-0.1.4/po/hu.po indicator-cpufreq-0.2/po/hu.po --- indicator-cpufreq-0.1.4/po/hu.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/hu.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,14 +8,14 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-01-30 14:20+0000\n" -"Last-Translator: Papp Bence \n" +"PO-Revision-Date: 2012-01-22 13:02+0000\n" +"Last-Translator: Péter Trombitás \n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" -"X-Generator: Launchpad (build 13405)\n" +"X-Launchpad-Export-Date: 2012-01-23 05:35+0000\n" +"X-Generator: Launchpad (build 14700)\n" #. Support for command line options. #: ../bin/indicator-cpufreq.py:64 @@ -60,28 +60,20 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "A CPU-frekvencia skálázás megváltoztatása" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." msgstr "" +"A rendszer házirendje nem engedélyezi CPU-frekvencia skálázás " +"megváltoztatását." #: ../indicator-cpufreq.desktop.in.h:1 msgid "An indicator for monitoring and switching CPU frequency scaling" msgstr "" +"Egy indikátor a CPU-frekvencia skálázás megjelenítésére és annak " +"változtatására" #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" -msgstr "" - -#~ msgid "Show debug messages" -#~ msgstr "Hibakeresési üzenetek mutatása" - -#~ msgid "easter egg found" -#~ msgstr "húsvéti tojást talált" - -#~ msgid "Schweet" -#~ msgstr "Schweet" - -#~ msgid "foo should be assigned to bar" -#~ msgstr "foo-hoz rendelni kellene bar-t" +msgstr "CPU-frekvencia skálázó indikátor" diff -Nru indicator-cpufreq-0.1.4/po/ia.po indicator-cpufreq-0.2/po/ia.po --- indicator-cpufreq-0.1.4/po/ia.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/ia.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,75 @@ +# Interlingua translation for indicator-cpufreq +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2011-11-19 17:52+0000\n" +"Last-Translator: Emilio Sepulveda \n" +"Language-Team: Interlingua \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-11-20 06:04+0000\n" +"X-Generator: Launchpad (build 14299)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "indicator-cpufreq [optiones]" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "Conservative" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "Sparnio de energia" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "Prestation" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "Cambia le scala de frequentia del CPU" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "" +"Un politica de systema impide te cambiar le scala de frequentia de CPU" + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "Un indicator pro controlar e cambiar le scala de frequentia de CPU" + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "Indicator de scala de frequentia de CPU" diff -Nru indicator-cpufreq-0.1.4/po/is.po indicator-cpufreq-0.2/po/is.po --- indicator-cpufreq-0.1.4/po/is.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/is.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,74 @@ +# Icelandic translation for indicator-cpufreq +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2012-03-07 12:23+0000\n" +"Last-Translator: Sigurpáll Sigurðsson \n" +"Language-Team: Icelandic \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-03-08 05:09+0000\n" +"X-Generator: Launchpad (build 14914)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "indicator-cpufreq [stillingar]" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "%s GHz" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "%.2f" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "" + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "" + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "" diff -Nru indicator-cpufreq-0.1.4/po/it.po indicator-cpufreq-0.2/po/it.po --- indicator-cpufreq-0.1.4/po/it.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/it.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,14 +8,14 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-04-28 22:19+0000\n" -"Last-Translator: Giuseppe Buzzanca (PiDy) \n" +"PO-Revision-Date: 2012-05-13 15:58+0000\n" +"Last-Translator: Bennici Piercarlo \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" -"X-Generator: Launchpad (build 13405)\n" +"X-Launchpad-Export-Date: 2012-05-14 04:52+0000\n" +"X-Generator: Launchpad (build 15238)\n" #. Support for command line options. #: ../bin/indicator-cpufreq.py:64 @@ -59,19 +59,19 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "Cambiare la frequenza scalare della CPU" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." msgstr "" +"La politica di sistema impedisce di modificare la frequenza scalare della CPU" #: ../indicator-cpufreq.desktop.in.h:1 msgid "An indicator for monitoring and switching CPU frequency scaling" msgstr "" +"Un indicatore per il monitoraggio e la commutazione della frequenza scalare " +"della CPU" #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" -msgstr "" - -#~ msgid "Show debug messages" -#~ msgstr "Mostra i messaggi di debug" +msgstr "Indicatore della frequenza scalare della CPU" diff -Nru indicator-cpufreq-0.1.4/po/lt.po indicator-cpufreq-0.2/po/lt.po --- indicator-cpufreq-0.1.4/po/lt.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/lt.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,14 +8,14 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-03-20 20:15+0000\n" -"Last-Translator: Aurimas Fišeras \n" +"PO-Revision-Date: 2012-10-05 02:45+0000\n" +"Last-Translator: Mantas Kriaučiūnas \n" "Language-Team: Lithuanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" -"X-Generator: Launchpad (build 13405)\n" +"X-Launchpad-Export-Date: 2012-10-06 05:12+0000\n" +"X-Generator: Launchpad (build 16061)\n" #. Support for command line options. #: ../bin/indicator-cpufreq.py:64 @@ -60,7 +60,7 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "Keisti procesoriaus dažnį" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." @@ -68,11 +68,8 @@ #: ../indicator-cpufreq.desktop.in.h:1 msgid "An indicator for monitoring and switching CPU frequency scaling" -msgstr "" +msgstr "Procesoriaus dažnio stebėjimo bei keitimo indikatorius" #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" -msgstr "" - -#~ msgid "Show debug messages" -#~ msgstr "Rodyti derinimo pranešimus" +msgstr "CPU dažnio stebėjimas bei keitimas" diff -Nru indicator-cpufreq-0.1.4/po/nl.po indicator-cpufreq-0.2/po/nl.po --- indicator-cpufreq-0.1.4/po/nl.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/nl.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,14 +8,14 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-03-22 11:22+0000\n" +"PO-Revision-Date: 2012-04-28 22:55+0000\n" "Last-Translator: Rachid \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" -"X-Generator: Launchpad (build 13405)\n" +"X-Launchpad-Export-Date: 2012-04-29 05:13+0000\n" +"X-Generator: Launchpad (build 15149)\n" #. Support for command line options. #: ../bin/indicator-cpufreq.py:64 @@ -24,7 +24,7 @@ #: ../bin/indicator-cpufreq.py:67 msgid "Print the maximum debugging info (implies -vv)" -msgstr "Laat de maximale debug informatie zien (houd in: -vv)" +msgstr "Maximale debug-informatie tonen (houd in: -vv)" #: ../bin/indicator-cpufreq.py:69 msgid "set error_level output to warning, info, and then debug" @@ -33,7 +33,7 @@ #: ../indicator_cpufreq/indicator.py:34 #, python-format msgid "%s GHz" -msgstr "%s Ghz" +msgstr "%s GHz" #: ../indicator_cpufreq/indicator.py:34 #, python-format @@ -59,7 +59,7 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "Schaling van CPU-frequentie veranderen" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." @@ -72,15 +72,3 @@ #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" msgstr "" - -#~ msgid "Show debug messages" -#~ msgstr "Toon debug berichten" - -#~ msgid "easter egg found" -#~ msgstr "paasei gevonden" - -#~ msgid "Schweet" -#~ msgstr "Schweet" - -#~ msgid "foo should be assigned to bar" -#~ msgstr "foo moet worden toegewezen aan een paneel" diff -Nru indicator-cpufreq-0.1.4/po/pl.po indicator-cpufreq-0.2/po/pl.po --- indicator-cpufreq-0.1.4/po/pl.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/pl.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,27 +8,27 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-06-12 19:11+0000\n" -"Last-Translator: Piotr Kozica (\"koza\") \n" +"PO-Revision-Date: 2013-01-10 23:06+0000\n" +"Last-Translator: Kamil Warguła \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" -"X-Generator: Launchpad (build 13405)\n" +"X-Launchpad-Export-Date: 2013-01-12 05:08+0000\n" +"X-Generator: Launchpad (build 16420)\n" #. Support for command line options. #: ../bin/indicator-cpufreq.py:64 msgid "indicator-cpufreq [options]" -msgstr "" +msgstr "indicator-cpufreq [opcje]" #: ../bin/indicator-cpufreq.py:67 msgid "Print the maximum debugging info (implies -vv)" -msgstr "" +msgstr "Wypisz maksimum informacji diagnostycznych (implies -vv)" #: ../bin/indicator-cpufreq.py:69 msgid "set error_level output to warning, info, and then debug" -msgstr "" +msgstr "set error_level output to warning, info, and then debug" #: ../indicator_cpufreq/indicator.py:34 #, python-format @@ -42,16 +42,16 @@ #: ../indicator_cpufreq/indicator.py:37 msgid "Conservative" -msgstr "" +msgstr "Konserwatywny" #: ../indicator_cpufreq/indicator.py:38 msgid "Ondemand" -msgstr "" +msgstr "Na żądanie" #. 'userspace': _("Userspace"), #: ../indicator_cpufreq/indicator.py:40 msgid "Powersave" -msgstr "" +msgstr "Oszczędzanie energii" #: ../indicator_cpufreq/indicator.py:41 msgid "Performance" @@ -59,16 +59,18 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "Zmiana częstotliwości skalowania procesora" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." msgstr "" +"Zasady systemu uniemożliwiają zmiany skalowania częstotliwości procesora." #: ../indicator-cpufreq.desktop.in.h:1 msgid "An indicator for monitoring and switching CPU frequency scaling" msgstr "" +"Wskaźnik monitorowania i przełączania skalowania częstotliwości procesora" #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" -msgstr "" +msgstr "Aplet skalowania częstotliwości procesora" diff -Nru indicator-cpufreq-0.1.4/po/pt.po indicator-cpufreq-0.2/po/pt.po --- indicator-cpufreq-0.1.4/po/pt.po 1970-01-01 06:00:00.000000000 +0600 +++ indicator-cpufreq-0.2/po/pt.po 2013-01-25 21:13:10.000000000 +0700 @@ -0,0 +1,76 @@ +# Portuguese translation for indicator-cpufreq +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the indicator-cpufreq package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: indicator-cpufreq\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-07-20 16:36+0700\n" +"PO-Revision-Date: 2012-08-15 17:08+0000\n" +"Last-Translator: Major Pipe \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-08-16 04:51+0000\n" +"X-Generator: Launchpad (build 15810)\n" + +#. Support for command line options. +#: ../bin/indicator-cpufreq.py:64 +msgid "indicator-cpufreq [options]" +msgstr "Opções" + +#: ../bin/indicator-cpufreq.py:67 +msgid "Print the maximum debugging info (implies -vv)" +msgstr "" + +#: ../bin/indicator-cpufreq.py:69 +msgid "set error_level output to warning, info, and then debug" +msgstr "" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%s GHz" +msgstr "%s GHz" + +#: ../indicator_cpufreq/indicator.py:34 +#, python-format +msgid "%.2f" +msgstr "%.2f" + +#: ../indicator_cpufreq/indicator.py:37 +msgid "Conservative" +msgstr "Poupança" + +#: ../indicator_cpufreq/indicator.py:38 +msgid "Ondemand" +msgstr "Adaptável" + +#. 'userspace': _("Userspace"), +#: ../indicator_cpufreq/indicator.py:40 +msgid "Powersave" +msgstr "Mínimo" + +#: ../indicator_cpufreq/indicator.py:41 +msgid "Performance" +msgstr "Máximo" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 +msgid "Change CPU frequency scaling" +msgstr "Mudar frequência do processador" + +#: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 +msgid "System policy prevents you from changing CPU frequency scaling." +msgstr "" +"As definições do sistema não lhe permitem modificar a velocidade do " +"processador." + +#: ../indicator-cpufreq.desktop.in.h:1 +msgid "An indicator for monitoring and switching CPU frequency scaling" +msgstr "Um indicador para monitorizar e alterar a velocidade do processador." + +#: ../indicator-cpufreq.desktop.in.h:2 +msgid "CPU Frequency Scaling Indicator" +msgstr "Indicador da velocidade do processador." diff -Nru indicator-cpufreq-0.1.4/po/ru.po indicator-cpufreq-0.2/po/ru.po --- indicator-cpufreq-0.1.4/po/ru.po 2011-07-23 16:00:39.000000000 +0700 +++ indicator-cpufreq-0.2/po/ru.po 2013-01-25 21:13:10.000000000 +0700 @@ -8,14 +8,14 @@ "Project-Id-Version: indicator-cpufreq\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-07-20 16:36+0700\n" -"PO-Revision-Date: 2011-04-20 11:29+0000\n" -"Last-Translator: Eugene Marshal \n" +"PO-Revision-Date: 2013-01-25 04:28+0000\n" +"Last-Translator: Artem Popov \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-07-21 05:14+0000\n" -"X-Generator: Launchpad (build 13405)\n" +"X-Launchpad-Export-Date: 2013-01-25 05:40+0000\n" +"X-Generator: Launchpad (build 16445)\n" #. Support for command line options. #: ../bin/indicator-cpufreq.py:64 @@ -24,7 +24,7 @@ #: ../bin/indicator-cpufreq.py:67 msgid "Print the maximum debugging info (implies -vv)" -msgstr "Вывести максимальное количество сведения об отладке (-vv)" +msgstr "Вывести максимальное количество сведений об отладке (-vv)" #: ../bin/indicator-cpufreq.py:69 msgid "set error_level output to warning, info, and then debug" @@ -59,19 +59,16 @@ #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:1 msgid "Change CPU frequency scaling" -msgstr "" +msgstr "Изменение частоты процессора" #: ../indicator_cpufreq/com.ubuntu.indicatorcpufreq.policy.in.h:2 msgid "System policy prevents you from changing CPU frequency scaling." -msgstr "" +msgstr "Системная политика препятствует изменению частоты процессора." #: ../indicator-cpufreq.desktop.in.h:1 msgid "An indicator for monitoring and switching CPU frequency scaling" -msgstr "" +msgstr "Индикатор для отображения и переключения частоты процессора" #: ../indicator-cpufreq.desktop.in.h:2 msgid "CPU Frequency Scaling Indicator" -msgstr "" - -#~ msgid "Show debug messages" -#~ msgstr "Показывать отладочные сообщения" +msgstr "Индикатор частоты процессора" diff -Nru indicator-cpufreq-0.1.4/setup.py indicator-cpufreq-0.2/setup.py --- indicator-cpufreq-0.1.4/setup.py 2011-07-25 03:08:05.000000000 +0700 +++ indicator-cpufreq-0.2/setup.py 2013-01-25 20:38:40.000000000 +0700 @@ -1,84 +1,20 @@ -#!/usr/bin/env python -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- -### BEGIN LICENSE -# Copyright (C) 2010 Артём Попов -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License version 3, as published -# by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranties of -# MERCHANTABILITY, SATISFACTORY QUALITY, 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, see . -### END LICENSE - -###################### DO NOT TOUCH THIS (HEAD TO THE SECOND PART) ###################### - -import os -import sys - -try: - import DistUtilsExtra.auto -except ImportError: - print >> sys.stderr, 'To build indicator-cpufreq you need https://launchpad.net/python-distutils-extra' - sys.exit(1) -assert DistUtilsExtra.auto.__version__ >= '2.18', 'needs DistUtilsExtra.auto >= 2.18' - -def update_data_path(prefix, oldvalue=None): - - try: - fin = file('indicator_cpufreq/indicator_cpufreqconfig.py', 'r') - fout = file(fin.name + '.new', 'w') - - for line in fin: - fields = line.split(' = ') # Separate variable from value - if fields[0] == '__indicator_cpufreq_data_directory__': - # update to prefix, store oldvalue - if not oldvalue: - oldvalue = fields[1] - line = "%s = '%s'\n" % (fields[0], prefix) - else: # restore oldvalue - line = "%s = %s" % (fields[0], oldvalue) - fout.write(line) - - fout.flush() - fout.close() - fin.close() - os.rename(fout.name, fin.name) - except (OSError, IOError), e: - print ("ERROR: Can't find indicator_cpufreq/indicator_cpufreqconfig.py") - sys.exit(1) - return oldvalue - - -class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto): - def run(self): - previous_value = update_data_path(self.prefix + '/share/indicator-cpufreq/') - DistUtilsExtra.auto.install_auto.run(self) - update_data_path(self.prefix, previous_value) - - - -################################################################################## -###################### YOU SHOULD MODIFY ONLY WHAT IS BELOW ###################### -################################################################################## +#! /usr/bin/env python3 +import DistUtilsExtra.auto import glob +import os +from DistUtilsExtra.command import * DistUtilsExtra.auto.setup( name='indicator-cpufreq', - version='0.1.4', + version='0.2', license='GPL-3', - author='Артём Попов', + author='Artem Popov', author_email='artfwo@gmail.com', description='CPU frequency scaling indicator', long_description='Indicator applet for displaying and changing CPU frequency on-the-fly.', url='https://launchpad.net/indicator-cpufreq', - cmdclass={'install': InstallAndUpdateDataDirectory}, - # FIXME: install icons as data_files until we resolve it with quickly + # install icons as data_files because distutils don't do that well data_files=[ ('share/icons/ubuntu-mono-dark/status/22', glob.glob('icons/ubuntu-mono-dark/*')),