[pitivi: 60/94] Fix captilization - 'No Preset' to 'No preset'
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 60/94] Fix captilization - 'No Preset' to 'No preset'
- Date: Sun, 11 Sep 2011 16:17:29 +0000 (UTC)
commit 205abf78aa8c143b835b6f6dc77f80867cc21683
Author: Feroze Naina <feroze feroze in>
Date: Tue Aug 30 18:51:58 2011 +0530
Fix captilization - 'No Preset' to 'No preset'
pitivi/ui/encodingdialog.py | 6 +++---
pitivi/ui/preset.py | 8 ++++----
pitivi/ui/projectsettings.py | 8 ++++----
3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 999debc..1f4461d 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -222,7 +222,7 @@ class EncodingDialog(Renderer, Loggable):
self.createNoPreset(self.render_presets)
def createNoPreset(self, mgr):
- mgr.prependPreset(_("No Preset"), {
+ mgr.prependPreset(_("No preset"), {
"depth": int(get_combo_value(self.sample_depth_combo)),
"channels": int(get_combo_value(self.channels_combo)),
"sample-rate": int(get_combo_value(self.sample_rate_combo)),
@@ -411,10 +411,10 @@ class EncodingDialog(Renderer, Loggable):
"""Get a unique name for a new preset for the specified PresetManager.
"""
existing_preset_names = list(mgr.getPresetNames())
- preset_name = _("New Preset")
+ preset_name = _("New preset")
i = 1
while preset_name in existing_preset_names:
- preset_name = _("New Preset %d") % i
+ preset_name = _("New preset %d") % i
i += 1
return preset_name
diff --git a/pitivi/ui/preset.py b/pitivi/ui/preset.py
index 894885b..9f7237c 100644
--- a/pitivi/ui/preset.py
+++ b/pitivi/ui/preset.py
@@ -92,7 +92,7 @@ class PresetManager(object):
filename = name + ".json"
filepath = os.path.join(self.user_path, filename)
- if not name == "No Preset":
+ if not name == "No preset":
fout = open(filepath, "w")
self.saveSection(fout, name)
@@ -219,7 +219,7 @@ class PresetManager(object):
if values[field] != 0:
setter(values[field])
else:
- setter(self.presets['No Preset'][field])
+ setter(self.presets['No preset'][field])
self._ignore_update_requests = False
def savePreset(self):
@@ -261,7 +261,7 @@ class PresetManager(object):
(dir, name) = os.path.split(self.presets[self.cur_preset]["filepath"])
except:
dir = None
- if self.cur_preset == "No Preset" or not self.cur_preset or \
+ if self.cur_preset == "No preset" or not self.cur_preset or \
dir == self.default_path:
# There is no preset selected, nothing to do.
return False
@@ -276,7 +276,7 @@ class PresetManager(object):
(dir, name) = os.path.split(self.presets[self.cur_preset]["filepath"])
except:
dir = None
- if self.cur_preset == "No Preset" or not self.cur_preset or \
+ if self.cur_preset == "No preset" or not self.cur_preset or \
dir == self.default_path:
# There is no preset selected, nothing to do.
return False
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index 360adc1..dccea3c 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -288,13 +288,13 @@ class ProjectSettingsDialog():
treeview.connect("focus-out-event", self._treeviewDefocusedCb, mgr)
def createAudioNoPreset(self, mgr):
- mgr.prependPreset(_("No Preset"), {
+ mgr.prependPreset(_("No preset"), {
"depth": int(get_combo_value(self.sample_depth_combo)),
"channels": int(get_combo_value(self.channels_combo)),
"sample-rate": int(get_combo_value(self.sample_rate_combo))})
def createVideoNoPreset(self, mgr):
- mgr.prependPreset(_("No Preset"), {
+ mgr.prependPreset(_("No preset"), {
"par": gst.Fraction(int(get_combo_value(self.par_combo).num),
int(get_combo_value(self.par_combo).denom)),
"frame-rate": gst.Fraction(int(get_combo_value(self.frame_rate_combo).num),
@@ -430,10 +430,10 @@ class ProjectSettingsDialog():
"""Get a unique name for a new preset for the specified PresetManager.
"""
existing_preset_names = list(mgr.getPresetNames())
- preset_name = _("New Preset")
+ preset_name = _("New preset")
i = 1
while preset_name in existing_preset_names:
- preset_name = _("New Preset %d") % i
+ preset_name = _("New preset %d") % i
i += 1
return preset_name
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]