Clone in a terminal:
Commit 49c859d
Johan Mattsson - 2014-09-20T18:45:43+00:00
49c859ded68c594966d10b49a7858c54f4686a8bjohan.mattsson.m@gmail.com

Add mac translation search path

Changed files (5)

Diff

diff --git a/libbirdfont/BirdFont.vala b/libbirdfont/BirdFont.valaindex c0a58af..49a751c 100644--- a/libbirdfont/BirdFont.vala+++ b/libbirdfont/BirdFont.vala@@ -671,6 +671,12 @@ public string t_ (string t) { 	return _(t); } +/** Translate mac menu items */+public static string translate_mac (string t) {+	string s = t_(t);+	return s.replace ("_", "");+}+ /** Print a warning if Birdfont was started with the --test argument. */ public static void warn_if_test (string message) { 	if (BirdFont.has_argument ("--test")) {diff --git a/libbirdfont/PenTool.vala b/libbirdfont/PenTool.valaindex be711fb..3abbbf7 100644--- a/libbirdfont/PenTool.vala+++ b/libbirdfont/PenTool.vala@@ -269,6 +269,8 @@ public class PenTool : Tool { 	public static void delete_selected_points () { 		Glyph g = MainWindow.get_current_glyph (); +		print ("Break path.");+ 		foreach (PointSelection p in selected_points) { 			p.point.deleted = true; 		}diff --git a/libbirdfont/SearchPaths.vala b/libbirdfont/SearchPaths.valaindex 9ad34a4..3595a69 100644--- a/libbirdfont/SearchPaths.vala+++ b/libbirdfont/SearchPaths.vala@@ -115,7 +115,7 @@ public class SearchPaths {  		f = PREFIX + "/share/locale/sv/LC_MESSAGES/birdfont.mo"; 		if (exists (f)) {-			return f;+			return PREFIX + "/share/locale/"; 		}  		f = "/usr/share/locale/sv/LC_MESSAGES/birdfont.mo";@@ -127,7 +127,12 @@ public class SearchPaths { 		if (exists (f)) { 			return BirdFont.exec_path + "/Contents/Resources/locale"; 		}-		++		f = BirdFont.bundle_path + "/Contents/Resources/locale";+		if (exists (f)) {+			return BirdFont.bundle_path + "/Contents/Resources/locale";+		}+				 		warning ("translations not found"); 		return "/usr/share/locale"; 	}diff --git a/po/cs.po b/po/cs.poindex f4fd6a0..732a7a2 100644--- a/po/cs.po+++ b/po/cs.po@@ -965,7 +965,7 @@ msgstr "Podrobnosti, od 0.001 do 9.999, výchozí hodnota je 1"  #: birdfont-autotrace/AutoTrace.vala:71 msgid "print this message"-msgstr "Vytisknout tuto zprávu\n"+msgstr "Vytisknout tuto zprávu"  #: birdfont-autotrace/AutoTrace.vala:72 msgid "use quadratic control points"diff --git a/scripts/mac_build.py b/scripts/mac_build.pyindex 81e00e1..f1db873 100644--- a/scripts/mac_build.py+++ b/scripts/mac_build.py@@ -56,6 +56,7 @@ library_cflags = "-fno-common -fPIC " + cflags configfile.write_config (prefix) compile_translations() build.libbirdfont(prefix, cc, library_cflags, library_ldflags, valac, valaflags, library, False)+build.birdfont_autotrace(prefix, cc, cflags, ldflags, valac, valaflags, library, False) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library, False) build.birdfont_import(prefix, cc, cflags, ldflags, valac, valaflags, library, False) 

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112