[gnome-games] Fix typography
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Fix typography
- Date: Thu, 23 Feb 2017 14:51:14 +0000 (UTC)
commit 15c9498f1052963eecefbc7cf4d34753f573016c
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Feb 23 13:10:05 2017 +0100
Fix typography
Fix many misuses of ..., " or ' and use the correct characters instead.
data/org.gnome.Games.appdata.xml.in | 4 ++--
data/ui/remote-display.ui | 4 ++--
plugins/desktop/src/desktop-tracker-query.vala | 12 ++++++------
plugins/dreamcast/src/dreamcast-header.vala | 2 +-
plugins/game-cube/src/game-cube-header.vala | 2 +-
plugins/love/src/love-package.vala | 4 ++--
plugins/mame/src/mame-game-uri-adapter.vala | 2 +-
.../master-system/src/master-system-header.vala | 2 +-
plugins/mega-drive/src/mega-drive-header.vala | 4 ++--
plugins/mega-drive/src/mega-drive-plugin.vala | 6 +++---
plugins/nintendo-ds/src/nintendo-ds-icon-extract.c | 2 +-
plugins/pc-engine/src/pc-engine-plugin.vala | 2 +-
plugins/playstation/src/playstation-header.vala | 2 +-
plugins/sega-saturn/src/sega-saturn-header.vala | 2 +-
plugins/sega-saturn/src/sega-saturn-plugin.vala | 8 ++++----
plugins/steam/src/steam-game-source.vala | 2 +-
plugins/steam/src/steam-registry.vala | 2 +-
plugins/steam/src/steam-title.vala | 2 +-
plugins/wii/src/wii-header.vala | 6 +++---
src/command/command-runner.vala | 6 +++---
src/core/plugin-registrar.vala | 4 ++--
src/gameinfo/gameinfo-doc.vala | 10 +++++-----
src/gamepad/gamepad-mapping.vala | 4 ++--
src/gamepad/gamepad-mappings-manager.vala | 4 ++--
src/gamepad/linux/linux-raw-gamepad.vala | 10 +++++-----
src/retro/retro-core-source.vala | 2 +-
src/retro/retro-runner.vala | 6 +++---
src/ui/application.vala | 2 +-
src/ui/game-thumbnail.vala | 6 +++---
src/utils/cue-sheet/cue-sheet.vala | 2 +-
30 files changed, 63 insertions(+), 63 deletions(-)
---
diff --git a/data/org.gnome.Games.appdata.xml.in b/data/org.gnome.Games.appdata.xml.in
index e35b91b..9f96466 100644
--- a/data/org.gnome.Games.appdata.xml.in
+++ b/data/org.gnome.Games.appdata.xml.in
@@ -14,12 +14,12 @@
</_p>
<_p>
You want to install Games if you just want a very simple and comfortable
- way to play your games and you don't need advanced features such as
+ way to play your games and you don’t need advanced features such as
speedrunning tools or video game development tools.
</_p>
<_p>Features:</_p>
<ul>
- <_li>List your installed games, your Steam games, your game ROMs...</_li>
+ <_li>List your installed games, your Steam games, your game ROMs…</_li>
<_li>Search in your games collection</_li>
<_li>Play your games</_li>
<_li>Resume your game to where you left it</_li>
diff --git a/data/ui/remote-display.ui b/data/ui/remote-display.ui
index cf67d1c..38f7aef 100644
--- a/data/ui/remote-display.ui
+++ b/data/ui/remote-display.ui
@@ -33,7 +33,7 @@
<property name="halign">center</property>
<property name="vexpand">True</property>
<property name="margin-bottom">6</property>
- <property name="label" translatable="yes"><b><span size="large">Use the
game's own window to play it</span></b></property>
+ <property name="label" translatable="yes"><b><span size="large">Use the
game’s own window to play it</span></b></property>
</object>
</child>
@@ -43,7 +43,7 @@
<property name="use-markup">True</property>
<property name="halign">center</property>
<property name="vexpand">True</property>
- <property name="label" translatable="yes">This game isn't integrated to GNOME Games.</property>
+ <property name="label" translatable="yes">This game isn’t integrated to GNOME Games.</property>
<style>
<class name="dim-label"/>
</style>
diff --git a/plugins/desktop/src/desktop-tracker-query.vala b/plugins/desktop/src/desktop-tracker-query.vala
index ad8fb9e..bd311d0 100644
--- a/plugins/desktop/src/desktop-tracker-query.vala
+++ b/plugins/desktop/src/desktop-tracker-query.vala
@@ -53,7 +53,7 @@ private class Games.DesktopTrackerQuery : Object, TrackerQuery {
string[] args;
var command = app_info.get_commandline ();
if (!Shell.parse_argv (command, out args))
- throw new CommandError.INVALID_COMMAND (_("Invalid command '%s'."), command);
+ throw new CommandError.INVALID_COMMAND (_("Invalid command “%s”."), command);
var runner = new CommandRunner (args, true);
games += new GenericGame (title, icon, cover, runner);
@@ -81,13 +81,13 @@ private class Games.DesktopTrackerQuery : Object, TrackerQuery {
var file = File.new_for_uri (uri);
if (!file.query_exists ())
- throw new TrackerError.FILE_NOT_FOUND (_("Tracker listed file not found: '%s'."),
uri);
+ throw new TrackerError.FILE_NOT_FOUND (_("Tracker listed file not found: “%s”."),
uri);
var path = file.get_path ();
var app_info = new DesktopAppInfo.from_filename (path);
if (app_info == null)
- throw new DesktopError.INVALID_APPINFO (_("Couldn't parse desktop entry '%s'."),
path);
+ throw new DesktopError.INVALID_APPINFO (_("Couldn’t parse desktop entry “%s”."),
path);
check_categories (app_info);
check_executable (app_info);
@@ -100,7 +100,7 @@ private class Games.DesktopTrackerQuery : Object, TrackerQuery {
foreach (var category in get_categories_black_list ())
if (category in categories)
- throw new DesktopError.BLACKLISTED_GAME (_("'%s' has blacklisted category
'%s'."), app_info.filename, category);
+ throw new DesktopError.BLACKLISTED_GAME (_("“%s” has blacklisted category
“%s”."), app_info.filename, category);
}
private void check_executable (DesktopAppInfo app_info) throws Error {
@@ -109,14 +109,14 @@ private class Games.DesktopTrackerQuery : Object, TrackerQuery {
foreach (var executable in get_executable_black_list ())
if (app_executable == executable ||
app_executable.has_suffix ("/" + executable))
- throw new DesktopError.BLACKLISTED_GAME (_("'%s' has blacklisted executable
'%s'."), app_info.filename, executable);
+ throw new DesktopError.BLACKLISTED_GAME (_("“%s” has blacklisted executable
“%s”."), app_info.filename, executable);
}
private void check_base_name (File file) throws Error {
var base_name = file.get_basename ();
if (base_name in get_base_name_black_list ())
- throw new DesktopError.BLACKLISTED_GAME (_("'%s' is blacklisted."), file.get_path ());
+ throw new DesktopError.BLACKLISTED_GAME (_("“%s” is blacklisted."), file.get_path ());
}
private static string[] categories_black_list;
diff --git a/plugins/dreamcast/src/dreamcast-header.vala b/plugins/dreamcast/src/dreamcast-header.vala
index 889d0f8..19e6309 100644
--- a/plugins/dreamcast/src/dreamcast-header.vala
+++ b/plugins/dreamcast/src/dreamcast-header.vala
@@ -51,7 +51,7 @@ private class Games.DreamcastHeader : Object {
header_offset = offset;
if (header_offset == null)
- throw new DreamcastError.INVALID_HEADER (_("The file doesn't have a Dreamcast
header."));
+ throw new DreamcastError.INVALID_HEADER (_("The file doesn’t have a Dreamcast
header."));
return header_offset;
}
diff --git a/plugins/game-cube/src/game-cube-header.vala b/plugins/game-cube/src/game-cube-header.vala
index 13e41c4..b2a06db 100644
--- a/plugins/game-cube/src/game-cube-header.vala
+++ b/plugins/game-cube/src/game-cube-header.vala
@@ -17,7 +17,7 @@ private class Games.GameCubeHeader: Object {
public void check_validity () throws Error {
var stream = new StringInputStream (file);
if (!stream.has_string (MAGIC_OFFSET, MAGIC_VALUE))
- throw new GameCubeError.INVALID_HEADER (_("The file doesn't have a Game Cube
header."));
+ throw new GameCubeError.INVALID_HEADER (_("The file doesn’t have a Game Cube
header."));
}
public string get_game_id () throws Error {
diff --git a/plugins/love/src/love-package.vala b/plugins/love/src/love-package.vala
index b31cb8c..f1eeeee 100644
--- a/plugins/love/src/love-package.vala
+++ b/plugins/love/src/love-package.vala
@@ -10,11 +10,11 @@ private class Games.LovePackage : Object {
this.uri = uri;
if (!contains_file ("main.lua"))
- throw new LoveError.INVALID_PACKAGE (_("This doesn't represent a valid LÖVE package:
'%s'."), uri);
+ throw new LoveError.INVALID_PACKAGE (_("This doesn’t represent a valid LÖVE package:
“%s”."), uri);
var config_file = get_file_string ("conf.lua");
if (config_file == null)
- throw new LoveError.INVALID_PACKAGE (_("This doesn't represent a valid LÖVE package:
'%s'."), uri);
+ throw new LoveError.INVALID_PACKAGE (_("This doesn’t represent a valid LÖVE package:
“%s”."), uri);
var regex = /^\s*[^\s]+\.([^\s\.]+)\s*=\s*(.+?)\s*$/;
diff --git a/plugins/mame/src/mame-game-uri-adapter.vala b/plugins/mame/src/mame-game-uri-adapter.vala
index a43c47a..e79c167 100644
--- a/plugins/mame/src/mame-game-uri-adapter.vala
+++ b/plugins/mame/src/mame-game-uri-adapter.vala
@@ -13,7 +13,7 @@ private class Games.MameGameUriAdapter : GameUriAdapter, Object {
game_id = /\.zip$/.replace (game_id, game_id.length, 0, "");
if (!supported_games.contains (game_id))
- throw new MameError.INVALID_GAME_ID (_("Invalid MAME game id '%s' for '%s'."),
game_id, uri);
+ throw new MameError.INVALID_GAME_ID (_("Invalid MAME game id “%s” for “%s”."),
game_id, uri);
var uid_string = @"mame-$game_id".down ();
var uid = new GenericUid (uid_string);
diff --git a/plugins/master-system/src/master-system-header.vala
b/plugins/master-system/src/master-system-header.vala
index 8593d8c..302614a 100644
--- a/plugins/master-system/src/master-system-header.vala
+++ b/plugins/master-system/src/master-system-header.vala
@@ -66,7 +66,7 @@ private class Games.MasterSystemHeader : Object {
public void check_validity () throws Error {
var stream = new StringInputStream (file);
if (!stream.has_string (MAGIC_OFFSET, MAGIC_VALUE))
- throw new MasterSystemError.INVALID_HEADER (_("The file doesn't have a Master System
header."));
+ throw new MasterSystemError.INVALID_HEADER (_("The file doesn’t have a Master System
header."));
}
public bool is_master_system () {
diff --git a/plugins/mega-drive/src/mega-drive-header.vala b/plugins/mega-drive/src/mega-drive-header.vala
index e2a42ee..1746ebf 100644
--- a/plugins/mega-drive/src/mega-drive-header.vala
+++ b/plugins/mega-drive/src/mega-drive-header.vala
@@ -62,7 +62,7 @@ private class Games.MegaDriveHeader : Object {
public void check_validity () throws Error {
if (system == MegaDriveSystem.INVALID)
- throw new MegaDriveError.INVALID_HEADER (_("The file doesn't have a Genesis/Sega
32X/Sega CD/Sega Pico header."));
+ throw new MegaDriveError.INVALID_HEADER (_("The file doesn’t have a Genesis/Sega
32X/Sega CD/Sega Pico header."));
}
public size_t get_offset () throws Error {
@@ -81,7 +81,7 @@ private class Games.MegaDriveHeader : Object {
}
}
- throw new MegaDriveError.INVALID_HEADER (_("The file doesn't have a Genesis/Sega
32X/Sega CD/Sega Pico header."));
+ throw new MegaDriveError.INVALID_HEADER (_("The file doesn’t have a Genesis/Sega
32X/Sega CD/Sega Pico header."));
}
private MegaDriveSystem parse_system () throws Error {
diff --git a/plugins/mega-drive/src/mega-drive-plugin.vala b/plugins/mega-drive/src/mega-drive-plugin.vala
index 8d0a070..cae3bc6 100644
--- a/plugins/mega-drive/src/mega-drive-plugin.vala
+++ b/plugins/mega-drive/src/mega-drive-plugin.vala
@@ -116,16 +116,16 @@ private class Games.MegaDrivePlugin : Object, Plugin {
private static File get_binary_file (CueSheet cue) throws Error {
if (cue.tracks_number == 0)
- throw new MegaDriveError.INVALID_CUE_SHEET (_("The file '%s' doesn't have a track."),
cue.file.get_uri ());
+ throw new MegaDriveError.INVALID_CUE_SHEET (_("The file “%s” doesn’t have a track."),
cue.file.get_uri ());
var track = cue.get_track (0);
var file = track.file;
if (file.file_format != CueSheetFileFormat.BINARY && file.file_format !=
CueSheetFileFormat.UNKNOWN)
- throw new MegaDriveError.INVALID_CUE_SHEET (_("The file '%s' doesn't have a valid
binary file format."), cue.file.get_uri ());
+ throw new MegaDriveError.INVALID_CUE_SHEET (_("The file “%s” doesn’t have a valid
binary file format."), cue.file.get_uri ());
if (!track.track_mode.is_mode1 ())
- throw new MegaDriveError.INVALID_CUE_SHEET (_("The file '%s' doesn't have a valid
track mode for track %d."), cue.file.get_uri (), track.track_number);
+ throw new MegaDriveError.INVALID_CUE_SHEET (_("The file “%s” doesn’t have a valid
track mode for track %d."), cue.file.get_uri (), track.track_number);
var header = new MegaDriveHeader (file.file);
header.check_validity ();
diff --git a/plugins/nintendo-ds/src/nintendo-ds-icon-extract.c
b/plugins/nintendo-ds/src/nintendo-ds-icon-extract.c
index 833f8f9..a7e1246 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-icon-extract.c
+++ b/plugins/nintendo-ds/src/nintendo-ds-icon-extract.c
@@ -33,7 +33,7 @@
if (error != NULL)
\
return NULL;
\
else
\
- g_set_error (error, 0, 0, "Couldn't access file data at 0x%x, probably not a NDS ROM", x);
\
+ g_set_error (error, 0, 0, "Couldn’t access file data at 0x%x, probably not a NDS ROM", x);
\
if (stream != NULL)
\
g_object_unref (stream);
\
return NULL;
\
diff --git a/plugins/pc-engine/src/pc-engine-plugin.vala b/plugins/pc-engine/src/pc-engine-plugin.vala
index 301c962..29b4fbc 100644
--- a/plugins/pc-engine/src/pc-engine-plugin.vala
+++ b/plugins/pc-engine/src/pc-engine-plugin.vala
@@ -41,7 +41,7 @@ private class Games.PcEnginePlugin : Object, Plugin {
private static Game cd_game_for_uri (string uri) throws Error {
if (!is_valid_disc (uri))
- throw new PcEngineError.INVALID_DISC ("'%s' isn't a valid PC-Engine CD-ROM² disc.",
uri);
+ throw new PcEngineError.INVALID_DISC ("“%s” isn’t a valid PC-Engine CD-ROM² disc.",
uri);
var uid = new FingerprintUid (uri, FINGERPRINT_PREFIX);
var title = new FilenameTitle (uri);
diff --git a/plugins/playstation/src/playstation-header.vala b/plugins/playstation/src/playstation-header.vala
index 24df63e..9bca049 100644
--- a/plugins/playstation/src/playstation-header.vala
+++ b/plugins/playstation/src/playstation-header.vala
@@ -46,7 +46,7 @@ private class Games.PlayStationHeader : Object {
if (_disc_id != null)
return;
- throw new PlayStationError.INVALID_HEADER (_("Invalid PlayStation header: disc ID not found
in '%s'."), file.get_uri ());
+ throw new PlayStationError.INVALID_HEADER (_("Invalid PlayStation header: disc ID not found
in “%s”."), file.get_uri ());
}
private string? search_id_in_header () throws Error {
diff --git a/plugins/sega-saturn/src/sega-saturn-header.vala b/plugins/sega-saturn/src/sega-saturn-header.vala
index ea965ee..59b2ca3 100644
--- a/plugins/sega-saturn/src/sega-saturn-header.vala
+++ b/plugins/sega-saturn/src/sega-saturn-header.vala
@@ -51,7 +51,7 @@ private class Games.SegaSaturnHeader : Object {
header_offset = offset;
if (header_offset == null)
- throw new SegaSaturnError.INVALID_HEADER (_("The file doesn't have a Sega Saturn
header."));
+ throw new SegaSaturnError.INVALID_HEADER (_("The file doesn’t have a Sega Saturn
header."));
return header_offset;
}
diff --git a/plugins/sega-saturn/src/sega-saturn-plugin.vala b/plugins/sega-saturn/src/sega-saturn-plugin.vala
index 0d44f71..c86843c 100644
--- a/plugins/sega-saturn/src/sega-saturn-plugin.vala
+++ b/plugins/sega-saturn/src/sega-saturn-plugin.vala
@@ -39,20 +39,20 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
private static File get_binary_file (CueSheet cue) throws Error {
if (cue.tracks_number == 0)
- throw new SegaSaturnError.INVALID_CUE_SHEET (_("The file '%s' doesn't have a
track."), cue.file.get_uri ());
+ throw new SegaSaturnError.INVALID_CUE_SHEET (_("The file “%s” doesn’t have a
track."), cue.file.get_uri ());
var track = cue.get_track (0);
var file = track.file;
if (file.file_format != CueSheetFileFormat.BINARY && file.file_format !=
CueSheetFileFormat.UNKNOWN)
- throw new SegaSaturnError.INVALID_CUE_SHEET (_("The file '%s' doesn't have a valid
binary file format."), cue.file.get_uri ());
+ throw new SegaSaturnError.INVALID_CUE_SHEET (_("The file “%s” doesn’t have a valid
binary file format."), cue.file.get_uri ());
if (!track.track_mode.is_mode1 ())
- throw new SegaSaturnError.INVALID_CUE_SHEET (_("The file '%s' doesn't have a valid
track mode for track %d."), cue.file.get_uri (), track.track_number);
+ throw new SegaSaturnError.INVALID_CUE_SHEET (_("The file “%s” doesn’t have a valid
track mode for track %d."), cue.file.get_uri (), track.track_number);
var file_info = file.file.query_info ("*", FileQueryInfoFlags.NONE);
if (file_info.get_content_type () != SPECIFIC_MIME_TYPE)
- throw new SegaSaturnError.INVALID_FILE_TYPE (_("The file '%s' doesn't have a valid
Sega Saturn binary file."), cue.file.get_uri ());
+ throw new SegaSaturnError.INVALID_FILE_TYPE (_("The file “%s” doesn’t have a valid
Sega Saturn binary file."), cue.file.get_uri ());
return file.file;
}
diff --git a/plugins/steam/src/steam-game-source.vala b/plugins/steam/src/steam-game-source.vala
index 3c41d89..7802ac7 100644
--- a/plugins/steam/src/steam-game-source.vala
+++ b/plugins/steam/src/steam-game-source.vala
@@ -96,7 +96,7 @@ private class Games.SteamGameSource : Object, GameSource {
game_id = registry.get_data ({"AppState", "appID"});
if (game_id == null)
- throw new SteamError.NO_APPID (_("Couldn't get Steam appid from manifest '%s'."),
appmanifest_path);
+ throw new SteamError.NO_APPID (_("Couldn’t get Steam appid from manifest “%s”."),
appmanifest_path);
if (game_id in games)
return;
diff --git a/plugins/steam/src/steam-registry.vala b/plugins/steam/src/steam-registry.vala
index 2d1e46d..61da79d 100644
--- a/plugins/steam/src/steam-registry.vala
+++ b/plugins/steam/src/steam-registry.vala
@@ -65,7 +65,7 @@ private class Games.SteamRegistry {
var file = File.new_for_path (appmanifest_path);
if (!file.query_exists ())
- throw new IOError.NOT_FOUND (_("File '%s' doesn't exist."), file.get_path ());
+ throw new IOError.NOT_FOUND (_("File “%s” doesn’t exist."), file.get_path ());
var dis = new DataInputStream (file.read ());
diff --git a/plugins/steam/src/steam-title.vala b/plugins/steam/src/steam-title.vala
index 18ff101..4ed383b 100644
--- a/plugins/steam/src/steam-title.vala
+++ b/plugins/steam/src/steam-title.vala
@@ -14,7 +14,7 @@ private class Games.SteamTitle : Object, Title {
name = registry.get_data ({"AppState", "name"});
if (name == null)
- throw new SteamError.NO_NAME (_("Couldn't get name from Steam registry."));
+ throw new SteamError.NO_NAME (_("Couldn’t get name from Steam registry."));
return name;
}
diff --git a/plugins/wii/src/wii-header.vala b/plugins/wii/src/wii-header.vala
index 5fe2b3f..be557b3 100644
--- a/plugins/wii/src/wii-header.vala
+++ b/plugins/wii/src/wii-header.vala
@@ -30,7 +30,7 @@ private class Games.WiiHeader: Object {
var magic = (string) buffer;
if (magic != MAGIC_VALUE)
- throw new WiiError.INVALID_HEADER (_("The file doesn't have a Wii header."));
+ throw new WiiError.INVALID_HEADER (_("The file doesn’t have a Wii header."));
}
public string get_game_id () throws WiiError {
@@ -41,7 +41,7 @@ private class Games.WiiHeader: Object {
stream.read (buffer);
}
catch (Error e) {
- throw new WiiError.INVALID_HEADER (_("The file doesn't have a Wii header."));
+ throw new WiiError.INVALID_HEADER (_("The file doesn’t have a Wii header."));
}
return (string) buffer;
@@ -52,7 +52,7 @@ private class Games.WiiHeader: Object {
return file.read ();
}
catch (Error e) {
- throw new WiiError.CANT_READ_FILE (_("Couldn't read file: %s"), e.message);
+ throw new WiiError.CANT_READ_FILE (_("Couldn’t read file: %s"), e.message);
}
}
}
diff --git a/src/command/command-runner.vala b/src/command/command-runner.vala
index bfb14c1..a37cb11 100644
--- a/src/command/command-runner.vala
+++ b/src/command/command-runner.vala
@@ -29,8 +29,8 @@ public class Games.CommandRunner : Object, Runner {
if (args.length > 0)
return true;
- debug ("Invalid command: it doesn't have any argument.");
- error_message = _("The game doesn't have a valid command.");
+ debug ("Invalid command: it doesn’t have any argument.");
+ error_message = _("The game doesn’t have a valid command.");
return false;
}
@@ -61,7 +61,7 @@ public class Games.CommandRunner : Object, Runner {
working_directory, args, envp, flags, child_setup, out pid,
out standard_input, out standard_output, out standard_error);
if (!result)
- throw new CommandError.EXECUTION_FAILED (_("Couldn't run '%s': execution
failed."), args[0]);
+ throw new CommandError.EXECUTION_FAILED (_("Couldn’t run “%s”: execution
failed."), args[0]);
}
catch (SpawnError e) {
warning ("%s\n", e.message);
diff --git a/src/core/plugin-registrar.vala b/src/core/plugin-registrar.vala
index fb660d0..c969207 100644
--- a/src/core/plugin-registrar.vala
+++ b/src/core/plugin-registrar.vala
@@ -45,11 +45,11 @@ private class Games.PluginRegistrar : TypeModule {
var object = Object.new (type);
if (object == null)
- throw new PluginError.NOT_A_PLUGIN (_("Couldn't create a new instance of plugin in
'%s'."), module_path);
+ throw new PluginError.NOT_A_PLUGIN (_("Couldn’t create a new instance of plugin in
“%s”."), module_path);
var plugin = object as Plugin;
if (plugin == null)
- throw new PluginError.NOT_A_PLUGIN (_("Couldn't create a new instance of plugin in
'%s'."), module_path);
+ throw new PluginError.NOT_A_PLUGIN (_("Couldn’t create a new instance of plugin in
“%s”."), module_path);
return plugin;
}
diff --git a/src/gameinfo/gameinfo-doc.vala b/src/gameinfo/gameinfo-doc.vala
index e937039..cc519df 100644
--- a/src/gameinfo/gameinfo-doc.vala
+++ b/src/gameinfo/gameinfo-doc.vala
@@ -12,7 +12,7 @@ public class Games.GameinfoDoc : Object {
var title = xml_doc.get_content (expr);
if (title == null)
- throw new GameinfoError.DISC_NOT_FOUND (_("No game title found for disc ID '%s'."),
disc_id);
+ throw new GameinfoError.DISC_NOT_FOUND (_("No game title found for disc ID “%s”."),
disc_id);
return title;
}
@@ -28,7 +28,7 @@ public class Games.GameinfoDoc : Object {
var title = xml_doc.get_content (expr);
if (title == null)
- throw new GameinfoError.DISC_NOT_FOUND (_("No disc title found for disc ID '%s'."),
disc_id);
+ throw new GameinfoError.DISC_NOT_FOUND (_("No disc title found for disc ID “%s”."),
disc_id);
return title;
}
@@ -38,7 +38,7 @@ public class Games.GameinfoDoc : Object {
var title = xml_doc.get_content (expr);
if (title == null)
- throw new GameinfoError.DISC_NOT_FOUND (_("No disc set ID found for disc ID '%s'."),
disc_id);
+ throw new GameinfoError.DISC_NOT_FOUND (_("No disc set ID found for disc ID “%s”."),
disc_id);
return title;
}
@@ -46,7 +46,7 @@ public class Games.GameinfoDoc : Object {
public int get_disc_set_index_for_disc_id (string disc_id) throws Error {
var test_expr = "/gameinfo/games/game/discs/disc[@id = \"" + disc_id + "\"]";
if (xml_doc.count_nodes (test_expr) == 0)
- throw new GameinfoError.DISC_NOT_FOUND (_("No disc found for disc ID '%s'."),
disc_id);
+ throw new GameinfoError.DISC_NOT_FOUND (_("No disc found for disc ID “%s”."),
disc_id);
var expr = "/gameinfo/games/game/discs/disc[@id = \"" + disc_id +
"\"]/preceding-sibling::disc";
@@ -56,7 +56,7 @@ public class Games.GameinfoDoc : Object {
public int get_disc_set_size_for_disc_id (string disc_id) throws Error {
var test_expr = "/gameinfo/games/game/discs/disc[@id = \"" + disc_id + "\"]";
if (xml_doc.count_nodes (test_expr) == 0)
- throw new GameinfoError.DISC_NOT_FOUND (_("No disc found for disc ID '%s'."),
disc_id);
+ throw new GameinfoError.DISC_NOT_FOUND (_("No disc found for disc ID “%s”."),
disc_id);
var expr = "/gameinfo/games/game/discs[disc[@id = \"" + disc_id + "\"]]/disc";
diff --git a/src/gamepad/gamepad-mapping.vala b/src/gamepad/gamepad-mapping.vala
index b497b32..7f817c3 100644
--- a/src/gamepad/gamepad-mapping.vala
+++ b/src/gamepad/gamepad-mapping.vala
@@ -9,10 +9,10 @@ private class Games.GamepadMapping : Object {
public GamepadMapping.from_sdl_string (string? mapping_string) throws GamepadMappingError {
if (mapping_string == null)
- throw new GamepadMappingError.NOT_A_MAPPING (_("The mapping string can't be null."));
+ throw new GamepadMappingError.NOT_A_MAPPING (_("The mapping string can’t be null."));
if (mapping_string == "")
- throw new GamepadMappingError.NOT_A_MAPPING (_("The mapping string can't be empty."));
+ throw new GamepadMappingError.NOT_A_MAPPING (_("The mapping string can’t be empty."));
var mappings = mapping_string.split (",");
foreach (var mapping in mappings) {
diff --git a/src/gamepad/gamepad-mappings-manager.vala b/src/gamepad/gamepad-mappings-manager.vala
index a774410..942cd96 100644
--- a/src/gamepad/gamepad-mappings-manager.vala
+++ b/src/gamepad/gamepad-mappings-manager.vala
@@ -22,7 +22,7 @@ private class Games.GamepadMappingsManager : Object {
add_from_resource ("/org/gnome/Games/gamepads/gamecontrollerdb.txt");
}
catch (Error e) {
- warning ("GamepadMappingsManager: Can't find gamecontrollerdb.txt: %s", e.message);
+ warning ("GamepadMappingsManager: Can’t find gamecontrollerdb.txt: %s", e.message);
}
try {
var dir = Application.get_config_dir ();
@@ -32,7 +32,7 @@ private class Games.GamepadMappingsManager : Object {
add_from_file (path);
}
catch (Error e) {
- warning ("GamepadMappingsManager: Can't add from user's config dir's %s: %s",
MAPPINGS_FILE_NAME, e.message);
+ warning ("GamepadMappingsManager: Can’t add from user’s config dir’s %s: %s",
MAPPINGS_FILE_NAME, e.message);
}
}
diff --git a/src/gamepad/linux/linux-raw-gamepad.vala b/src/gamepad/linux/linux-raw-gamepad.vala
index f759b89..6b2c04c 100644
--- a/src/gamepad/linux/linux-raw-gamepad.vala
+++ b/src/gamepad/linux/linux-raw-gamepad.vala
@@ -39,14 +39,14 @@ private class Games.LinuxRawGamepad : Object, RawGamepad {
fd = Posix.open (file_name, Posix.O_RDONLY | Posix.O_NONBLOCK);
if (fd < 0)
- throw new FileError.FAILED (_("Unable to open file '%s': %s"), file_name,
Posix.strerror (Posix.errno));
+ throw new FileError.FAILED (_("Unable to open file “%s”: %s"), file_name,
Posix.strerror (Posix.errno));
device = new Libevdev.Evdev ();
if (device.set_fd (fd) < 0)
- throw new FileError.FAILED (_("Evdev is unable to open '%s': %s"), file_name,
Posix.strerror (Posix.errno));
+ throw new FileError.FAILED (_("Evdev is unable to open “%s”: %s"), file_name,
Posix.strerror (Posix.errno));
if (!is_joystick ())
- throw new FileError.NXIO ("'%s' is not a joystick", file_name);
+ throw new FileError.NXIO ("“%s” is not a joystick", file_name);
// Poll the events in the default main loop
var channel = new IOChannel.unix_new (fd);
@@ -108,7 +108,7 @@ private class Games.LinuxRawGamepad : Object, RawGamepad {
private bool is_joystick () {
/* Same detection code as udev-builtin-input_id.c in systemd
- * joysticks don't necessarily have buttons; e. g.
+ * joysticks don’t necessarily have buttons; e. g.
* rudders/pedals are joystick-like, but buttonless; they have
* other fancy axes */
bool has_joystick_axes_or_buttons = has_key (Linux.Input.BTN_TRIGGER) ||
@@ -153,7 +153,7 @@ private class Games.LinuxRawGamepad : Object, RawGamepad {
code -= Linux.Input.ABS_HAT0X;
dpad_event (code / 2, code % 2, event.value);
- // We don't want to send an axis event as dpad events
+ // We don’t want to send an axis event as dpad events
// are handled differently by the gamepad objects, hence
// we return here.
return;
diff --git a/src/retro/retro-core-source.vala b/src/retro/retro-core-source.vala
index 7db5080..7a0b826 100644
--- a/src/retro/retro-core-source.vala
+++ b/src/retro/retro-core-source.vala
@@ -32,7 +32,7 @@ public class Games.RetroCoreSource : Object {
}
if (core_descriptor == null)
- throw new RetroError.MODULE_NOT_FOUND (_("No module found for platform '%s' and MIME
types [ '%s' ]."), platform, string.joinv ("', '", mime_types));
+ throw new RetroError.MODULE_NOT_FOUND (_("No module found for platform “%s” and MIME
types [ “%s” ]."), platform, string.joinv (_("”, “"), mime_types));
if (core_descriptor.has_firmwares (platform))
foreach (var firmware in core_descriptor.get_firmwares (platform))
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index 62e3447..55f5f96 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -211,7 +211,7 @@ public class Games.RetroRunner : Object, Runner {
var uri = media.uri;
if (!try_load_game (core, uri))
- throw new RetroError.INVALID_GAME_FILE (_("Invalid game file: '%s'."), uri);
+ throw new RetroError.INVALID_GAME_FILE (_("Invalid game file: “%s”."), uri);
}
core.shutdown.connect (on_shutdown);
@@ -554,9 +554,9 @@ public class Games.RetroRunner : Object, Runner {
var platform = core_source.get_platform ();
var platform_name = RetroPlatform.get_platform_name (platform);
if (platform_name != null)
- return _("The system “%s” isn't supported yet, but full support is
planned.").printf (platform_name);
+ return _("The system “%s” isn’t supported yet, but full support is
planned.").printf (platform_name);
}
- return _("The system isn't supported yet, but full support is planned.");
+ return _("The system isn’t supported yet, but full support is planned.");
}
}
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 5d56a95..750c020 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -207,7 +207,7 @@ public class Games.Application : Gtk.Application {
var file = File.new_for_uri("resource:///org/gnome/Games/" + css);
provider.load_from_file (file);
} catch (GLib.Error e) {
- warning ("Loading CSS file '%s'failed: %s", css, e.message);
+ warning ("Loading CSS file “%s” failed: %s", css, e.message);
}
return provider;
}
diff --git a/src/ui/game-thumbnail.vala b/src/ui/game-thumbnail.vala
index d967c21..6c7a648 100644
--- a/src/ui/game-thumbnail.vala
+++ b/src/ui/game-thumbnail.vala
@@ -142,7 +142,7 @@ private class Games.GameThumbnail: Gtk.DrawingArea {
var icon_info = theme.lookup_icon (icon_name, size, Gtk.IconLookupFlags.FORCE_SIZE);
emblem = icon_info.load_symbolic (color);
} catch (GLib.Error error) {
- warning (@"Unable to get icon '$icon_name': $(error.message)");
+ warning (@"Unable to get icon “$icon_name”: $(error.message)");
return;
}
@@ -169,7 +169,7 @@ private class Games.GameThumbnail: Gtk.DrawingArea {
return icon_info.load_icon ();
}
catch (Error e) {
- warning (@"Couldn't load the icon: $(e.message)\n");
+ warning (@"Couldn’t load the icon: $(e.message)\n");
return null;
}
}
@@ -201,7 +201,7 @@ private class Games.GameThumbnail: Gtk.DrawingArea {
cover_cache = icon_info.load_icon ();
}
catch (Error e) {
- warning (@"Couldn't load the icon: $(e.message)\n");
+ warning (@"Couldn’t load the icon: $(e.message)\n");
}
return cover_cache;
diff --git a/src/utils/cue-sheet/cue-sheet.vala b/src/utils/cue-sheet/cue-sheet.vala
index 3a0f5a6..80b14ad 100644
--- a/src/utils/cue-sheet/cue-sheet.vala
+++ b/src/utils/cue-sheet/cue-sheet.vala
@@ -22,7 +22,7 @@ public class Games.CueSheet : Object {
public CueSheetTrackNode get_track (uint i) throws Error {
if (i >= tracks.length)
- throw new CueSheetError.NOT_A_TRACK (_("'%s' doesn't have a track for index %u."),
file.get_uri (), i);
+ throw new CueSheetError.NOT_A_TRACK (_("“%s” doesn’t have a track for index %u."),
file.get_uri (), i);
return tracks[i];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]