Commit 49c859d
Add mac translation search path
Changed files (5)
modifiedlibbirdfont/BirdFont.valamodifiedlibbirdfont/PenTool.valamodifiedlibbirdfont/SearchPaths.valamodifiedpo/cs.pomodifiedscripts/mac_build.py
Diff
@@ -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")) {@@ -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; }@@ -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"; }@@ -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"@@ -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)