Skip to content

Commit b9832e7

Browse files
piotrdragkaiw
authored andcommitted
1 parent 2b4154c commit b9832e7

10 files changed

Lines changed: 23 additions & 23 deletions

File tree

bin/meld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def setup_resources():
224224
try:
225225
provider.load_from_path(css_file)
226226
except GLib.GError as err:
227-
print(_("Couldn't load Meld-specific CSS (%s)\n%s") % (css_file, err))
227+
print(_("Couldnt load Meld-specific CSS (%s)\n%s") % (css_file, err))
228228
Gtk.StyleContext.add_provider_for_screen(
229229
Gdk.Screen.get_default(), provider,
230230
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)

data/org.gnome.meld.gschema.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<key name="detect-encodings" type="as">
6464
<default>[]</default>
6565
<summary>Additional automatically detected text encodings</summary>
66-
<description>Meld will use these text encodings to try to decode loaded text files before trying any other encodings. In addition to the encodings in this list, UTF-8 and the current locale-default encoding will always be used; other encodings may also be tried, depending on the user's locale.</description>
66+
<description>Meld will use these text encodings to try to decode loaded text files before trying any other encodings. In addition to the encodings in this list, UTF-8 and the current locale-default encoding will always be used; other encodings may also be tried, depending on the users locale.</description>
6767
</key>
6868

6969

@@ -86,7 +86,7 @@
8686
<key name="highlight-syntax" type='b'>
8787
<default>false</default>
8888
<summary>Highlight syntax</summary>
89-
<description>Whether to highlight syntax in comparisons. Because of Meld's own color highlighting, this is off by default.</description>
89+
<description>Whether to highlight syntax in comparisons. Because of Melds own color highlighting, this is off by default.</description>
9090
</key>
9191
<key name="style-scheme" type="s">
9292
<default>"classic"</default>
@@ -167,7 +167,7 @@
167167
<key name="folder-time-resolution" type="i">
168168
<default>100</default>
169169
<summary>File timestamp resolution</summary>
170-
<description>When comparing based on mtime, this is the minimum difference in nanoseconds between two files before they're considered to have different mtimes. This is useful when comparing files between filesystems with different timestamp resolution.</description>
170+
<description>When comparing based on mtime, this is the minimum difference in nanoseconds between two files before theyre considered to have different mtimes. This is useful when comparing files between filesystems with different timestamp resolution.</description>
171171
</key>
172172
<key name="folder-filter-text" type="b">
173173
<default>true</default>
@@ -249,7 +249,7 @@
249249
]
250250
</default>
251251
<summary>Text-based filters</summary>
252-
<description>List of predefined text-based regex filters that, if active, will remove text from being used in a file comparison. The text will still be displayed, but won't contribute to the comparison itself.</description>
252+
<description>List of predefined text-based regex filters that, if active, will remove text from being used in a file comparison. The text will still be displayed, but wont contribute to the comparison itself.</description>
253253
</key>
254254
</schema>
255255
</schemalist>

data/ui/filediff.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<object class="GtkActionGroup" id="FilediffActions">
66
<child>
77
<object class="GtkAction" id="MakePatch">
8-
<property name="label" translatable="yes">Format as Patch...</property>
8+
<property name="label" translatable="yes">Format as Patch</property>
99
<property name="tooltip" translatable="yes">Create a patch using differences between files</property>
1010
<signal name="activate" handler="make_patch" swapped="no"/>
1111
</object>
@@ -185,7 +185,7 @@
185185
<property name="skip_taskbar_hint">True</property>
186186
<property name="message_type">warning</property>
187187
<property name="text" translatable="yes">Save changes to documents before closing?</property>
188-
<property name="secondary_text" translatable="yes">If you don't save, changes will be permanently lost.</property>
188+
<property name="secondary_text" translatable="yes">If you dont save, changes will be permanently lost.</property>
189189
<child internal-child="vbox">
190190
<object class="GtkBox" id="dialog-vbox1">
191191
<property name="visible">True</property>

data/ui/vcview.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</child>
1515
<child>
1616
<object class="GtkAction" id="VcCommit">
17-
<property name="label" translatable="yes">Co_mmit...</property>
17+
<property name="label" translatable="yes">Co_mmit</property>
1818
<property name="tooltip" translatable="yes">Commit changes to version control</property>
1919
<property name="icon_name">vc-commit-24</property>
2020
<signal name="activate" handler="on_button_commit_clicked" swapped="no"/>

meld/dirdiff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ def _show_tree_wide_errors(self, invalid_filenames, shadowed_entries):
883883
formatted_entries = [[] for i in range(self.num_panes)]
884884
for pane, root, f1, f2 in shadowed_entries:
885885
paths = [os.path.join(root, f) for f in (f1, f2)]
886-
entry_str = _("'%s' hidden by '%s'") % (paths[0], paths[1])
886+
entry_str = _("“%s” hidden by “%s”") % (paths[0], paths[1])
887887
formatted_entries[pane].append(entry_str)
888888

889889
if invalid_filenames or shadowed_entries:
@@ -955,7 +955,7 @@ def copy_selected(self, direction):
955955
except (OSError, IOError, shutil.Error) as err:
956956
misc.error_dialog(
957957
_("Error copying file"),
958-
_("Couldn't copy %s\nto %s.\n\n%s") % (
958+
_("Couldnt copy %s\nto %s.\n\n%s") % (
959959
GLib.markup_escape_text(src),
960960
GLib.markup_escape_text(dst),
961961
GLib.markup_escape_text(str(err)),

meld/filediff.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ def save_file(self, pane, saveas=False, force_overwrite=False):
14701470
msgarea = self.msgarea_mgr[pane].new_from_text_and_icon(
14711471
'dialog-warning-symbolic', primary, secondary)
14721472
msgarea.add_button(_("Save Anyway"), Gtk.ResponseType.ACCEPT)
1473-
msgarea.add_button(_("Don't Save"), Gtk.ResponseType.CLOSE)
1473+
msgarea.add_button(_("Dont Save"), Gtk.ResponseType.CLOSE)
14741474

14751475
def on_file_changed_response(msgarea, response_id, *args):
14761476
self.msgarea_mgr[pane].clear()
@@ -1499,9 +1499,9 @@ def on_file_changed_response(msgarea, response_id, *args):
14991499
(_("_Save as UTF-8"), Gtk.ResponseType.OK),
15001500
]
15011501
reencode = misc.modal_dialog(
1502-
primary=_(u"Couldn't encode text as “%s”") % encoding,
1502+
primary=_(u"Couldnt encode text as “%s”") % encoding,
15031503
secondary=_(
1504-
u"File “%s” contains characters that can't be encoded "
1504+
u"File “%s” contains characters that cant be encoded "
15051505
u"using encoding “%s”.\n"
15061506
u"Would you like to save as UTF-8?") % (
15071507
bufdata.label, encoding),
@@ -1542,7 +1542,7 @@ def file_saved_cb(self, saver, result, user_data):
15421542
gfile.get_parse_name())
15431543
misc.error_dialog(
15441544
primary=_("Could not save file %s.") % filename,
1545-
secondary=_("Couldn't save file due to:\n%s") % (
1545+
secondary=_("Couldnt save file due to:\n%s") % (
15461546
GLib.markup_escape_text(str(err))),
15471547
)
15481548
self.state = melddoc.STATE_SAVING_ERROR

meld/meldapp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ def cleanup():
288288
parser.local_error(_("too many arguments (wanted 0-3, got %d)") %
289289
len(args))
290290
elif options.auto_merge and len(args) < 3:
291-
parser.local_error(_("can't auto-merge less than 3 files"))
291+
parser.local_error(_("cant auto-merge less than 3 files"))
292292
elif options.auto_merge and any([os.path.isdir(f) for f in args]):
293-
parser.local_error(_("can't auto-merge directories"))
293+
parser.local_error(_("cant auto-merge directories"))
294294

295295
if parser.should_exit:
296296
cleanup()
@@ -346,7 +346,7 @@ def make_file_from_command_line(arg):
346346
try:
347347
for p, f in zip(paths, files):
348348
if f.get_path() is None:
349-
raise ValueError(_("invalid path or URI \"%s\"") % p)
349+
raise ValueError(_("invalid path or URI “%s”") % p)
350350
tab = self.open_files(
351351
files, window=window,
352352
close_on_error=close_on_error,

meld/meldwindow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def __init__(self):
4747

4848
actions = (
4949
("FileMenu", None, _("_File")),
50-
("New", Gtk.STOCK_NEW, _("_New Comparison..."), "<Primary>N",
50+
("New", Gtk.STOCK_NEW, _("_New Comparison"), "<Primary>N",
5151
_("Start a new comparison"),
5252
self.on_menu_file_new_activate),
5353
("Save", Gtk.STOCK_SAVE, None, None,
5454
_("Save the current file"),
5555
self.on_menu_save_activate),
56-
("SaveAs", Gtk.STOCK_SAVE_AS, _("Save As..."), "<Primary><shift>S",
56+
("SaveAs", Gtk.STOCK_SAVE_AS, _("Save As"), "<Primary><shift>S",
5757
_("Save the current file with a different name"),
5858
self.on_menu_save_as_activate),
5959
("Close", Gtk.STOCK_CLOSE, None, None,
@@ -73,7 +73,7 @@ def __init__(self):
7373
self.on_menu_copy_activate),
7474
("Paste", Gtk.STOCK_PASTE, None, None, _("Paste the clipboard"),
7575
self.on_menu_paste_activate),
76-
("Find", Gtk.STOCK_FIND, _("Find..."), None, _("Search for text"),
76+
("Find", Gtk.STOCK_FIND, _("Find"), None, _("Search for text"),
7777
self.on_menu_find_activate),
7878
("FindNext", None, _("Find Ne_xt"), "<Primary>G",
7979
_("Search forwards for the same text"),
@@ -82,7 +82,7 @@ def __init__(self):
8282
_("Search backwards for the same text"),
8383
self.on_menu_find_previous_activate),
8484
("Replace", Gtk.STOCK_FIND_AND_REPLACE,
85-
_("_Replace..."), "<Primary>H",
85+
_("_Replace"), "<Primary>H",
8686
_("Find and replace text"),
8787
self.on_menu_replace_activate),
8888

meld/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def colour_lookup_with_fallback(name, attribute):
200200
if not style_attr:
201201
import sys
202202
print(_(
203-
"Couldn't find colour scheme details for %s-%s; "
203+
"Couldnt find colour scheme details for %s-%s; "
204204
"this is a bad install") % (name, attribute), file=sys.stderr)
205205
sys.exit(1)
206206

meld/patchdialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def file_saved_cb(self, saver, result, *args):
128128
filename = GLib.markup_escape_text(gfile.get_parse_name())
129129
error_dialog(
130130
primary=_("Could not save file %s.") % filename,
131-
secondary=_("Couldn't save file due to:\n%s") % (
131+
secondary=_("Couldnt save file due to:\n%s") % (
132132
GLib.markup_escape_text(str(err))),
133133
)
134134

0 commit comments

Comments
 (0)