Clone in a terminal:
Commit fe40210
Johan Mattsson - 2012-12-05T16:00:55+00:00
fe4021073ad7d49ea6a00f483c2c7c539d8ebb69johan.mattsson.m@gmail.com

localization

Changed files (9)

Diff

diff --git a/src/Birdfont.vala b/src/Birdfont.valaindex fc275c9..60c15b5 100644--- a/src/Birdfont.vala+++ b/src/Birdfont.vala@@ -19,13 +19,13 @@ using Supplement; namespace Birdfont {  static void print_export_help (string[] arg) {-	stdout.printf ("Usage: ");+	stdout.printf (_("Usage:")); 	stdout.printf (arg[0]); 	stdout.printf (" [OPTION ...] FILE\n");-	stdout.printf ("-h, --help                      print this message\n");-	stdout.printf ("-o, --output [DIRECTORY]        write files to this directory\n");-	stdout.printf ("-s, --svg                       write svg file\n");-	stdout.printf ("-t, --ttf                       write ttf and eot files\n");+	stdout.printf ("-h, --help                      " + _("print this message\n"));+	stdout.printf ("-o, --output [DIRECTORY]        " + _("write files to this directory\n"));+	stdout.printf ("-s, --svg                       " + _("write svg file\n"));+	stdout.printf ("-t, --ttf                       " + _("write ttf and eot files\n")); 	stdout.printf ("\n"); } @@ -115,17 +115,17 @@ public static int run_export (string[] arg) { 	directory = File.new_for_path (output_directory); 	 	if (!directory.query_exists ()) {-		stderr.printf ("Can't find output directory $directory\n");+		stderr.printf (_("Can't find output directory") + @"$((!)directory.get_path ())\n"); 		return 1; 	}  	if (!specific_formats || write_svg) {-		print (@"Writing $(supplement.current_font.get_name ()).svg to $output_directory\n");+		print (_("Writing") + @" $(supplement.current_font.get_name ()).svg to $output_directory\n"); 		ExportTool.export_svg_font_path (File.new_for_path (output_directory)); 	}  	if (!specific_formats || write_ttf) {-		print (@"Writing $(supplement.current_font.get_name ()).ttf to $output_directory\n");+		print (_("Writing") + @" $(supplement.current_font.get_name ()).ttf to $output_directory\n"); 		ExportTool.export_ttf_font_path (File.new_for_path (output_directory), false); 	} 	diff --git a/src/Main.vala b/src/Main.valaindex f87e4a6..7d479ca 100644--- a/src/Main.vala+++ b/src/Main.vala@@ -17,7 +17,7 @@  using Birdfont; using Supplement;-	+ public static int main (string[] arg) { 	GtkWindow native_window; 	MainWindow window;diff --git a/src/MenuTab.vala b/src/MenuTab.valaindex ecda507..8523b3d 100644--- a/src/MenuTab.vala+++ b/src/MenuTab.vala@@ -110,31 +110,31 @@ public class MenuTab : FontDisplay { <body> 	<div class="inner_format_box"> 		<div class="heading"><h2>Menu</h2></div>-		<div class="menu_item" onclick="call ('newfile:');" onmouseover="call ('help:(Ctrl+n) Create a new font');">New</div>-		<div class="menu_item" onclick="call ('open:');" onmouseover="call ('help:(Ctrl+o) Open an existing ffi file');">Open</div>-		<div class="menu_item" onclick="call ('save:');" onmouseover="call ('help:(Ctrl+s) Save font');">Save</div>-		<div class="menu_item" onclick="call ('save_as:');" onmouseover="call ('help:Save font with a different name');">Save as</div>-		<div class="menu_item" onclick="call ('kerning_context:');" onmouseover="call ('help:(Ctrl+k) Show kerning context');">Kerning context</div>-		<div class="menu_item" onclick="call ('grid:add');" onmouseover="call ('help:Add a new size for grid');">Add grid</div>-		<div class="menu_item" onclick="call ('grid:remove');" onmouseover="call ('help:Remove current grid size');">Remove grid</div>+		<div class="menu_item" onclick="call ('newfile:');" onmouseover="call ('help:(Ctrl+n) """ + _("Create a new font") + """');">""" + _("New") + """</div>+		<div class="menu_item" onclick="call ('open:');" onmouseover="call ('help:(Ctrl+o) """ + _("Open an existing ffi file") + """');">""" + _("Open") + """</div>+		<div class="menu_item" onclick="call ('save:');" onmouseover="call ('help:(Ctrl+s) """ + _("Save font") + """');">""" + _("Save") + """</div>+		<div class="menu_item" onclick="call ('save_as:');" onmouseover="call ('help:""" + _("Save font with a different name") + """');">""" + _("Save as") + """</div>+		<div class="menu_item" onclick="call ('kerning_context:');" onmouseover="call ('help:(Ctrl+k) """ + _("Show kerning context") + """');">""" + _("Kerning context") + """</div>+		<div class="menu_item" onclick="call ('grid:add');" onmouseover="call ('help:""" + _("Add a new size for grid") + """');">""" + _("Add grid") + """</div>+		<div class="menu_item" onclick="call ('grid:remove');" onmouseover="call ('help:""" + _("Remove current grid size") + """');">""" + _("Remove grid") + """</div> 	</div> 	 	<div class="inner_format_box">-		<div class="heading"><h2>Edit</h2></div>+		<div class="heading"><h2>""" + _("Edit") + """</h2></div> 		 		<div class="content"> 			<form> """); 				 c.append ("""-				<h3>Glyph sequence</h3>+				<h3>""" + _("Glyph sequence") + """</h3> 				<input class="text" type="text" id="glyph_sequence" value=""" + "\"" + Preferences.get ("glyph_sequence") + "\"" + """ onchange="update_text_fields ();"/><br /> -				<h3>Name</h3>+				<h3>""" + _("Name") + """</h3> 				<input class="text" type="text" id="fontname" value=""" + "\"" + f.get_name () + "\"" + """ onchange="update_text_fields ();"/><br /> 				-				<input class="button" type="button" value="Export" id="export_button" onclick="call ('export:fonts');" onmouseover="call ('help:(Ctrl+e) Export SVG, TTF & EOF fonts');"/>-				<input class="button" type="button" value="Preview" id="preview_button" onclick="call ('preview:fonts');" onmouseover="call ('help:(Ctrl+p) Export SVG font and view the result');"/><br />+				<input class="button" type="button" value=""" + "\"" + _("Export") + "\"" + """ id="export_button" onclick="call ('export:fonts');" onmouseover="call ('help:(Ctrl+e) """ + _("Export SVG, TTF & EOF fonts") + """');"/>+				<input class="button" type="button" value=""" + "\"" + _("Preview") + "\"" + """ id="preview_button" onclick="call ('preview:fonts');" onmouseover="call ('help:(Ctrl+p) """ + _("Export SVG font and view the result") + """');"/><br /> """); 	 c.append ("""@@ -150,7 +150,7 @@ c.append (""" """);  if (recent_fonts.length () > 0) {-	c.append ("""<div class="heading"><h2>Recent files</h2></div>""");+	c.append ("""<div class="heading"><h2>""" + _("Recent files") + """</h2></div>"""); 	c.append ("\n"); } @@ -263,7 +263,7 @@ c.append (""" 		bool saved = false; 		Font font = Supplement.get_current_font (); 		-		fn = MainWindow.file_chooser ("Save");+		fn = MainWindow.file_chooser (_("Save")); 		 		if (fn != null) { 			f = (!) fn;diff --git a/src/SaveDialog.vala b/src/SaveDialog.valaindex 5ba84d3..54c9bdd 100644--- a/src/SaveDialog.vala+++ b/src/SaveDialog.vala@@ -74,15 +74,15 @@ public class SaveDialog : FontDisplay { <body> 	 	<div style="width:300px; margin: 50px auto 0 auto;">-		<div class="heading"><h2>Save?</h2></div>+		<div class="heading"><h2>""" + _("Save?") + """</h2></div> 		 		<p>""" + fn + """</p> 		 		<form>-			<input class="button" type="button" value="Save"    onclick="call ('save_dialog:save');"/>-			<input class="button" type="button" value="Save as" onclick="call ('save_dialog:save_as');"/>-			<input class="button" type="button" value="Discard" onclick="call ('save_dialog:discard');"/>-			<input class="button" type="button" value="Cancel"  onclick="call ('save_dialog:cancel');"/>+			<input class="button" type="button" value=""" + "\"" + _("Save") + "\"" + """    onclick="call ('save_dialog:save');"/>+			<input class="button" type="button" value=""" + "\"" + _("Save as") + "\"" + """ onclick="call ('save_dialog:save_as');"/>+			<input class="button" type="button" value=""" + "\"" + _("Discard") + "\"" + """ onclick="call ('save_dialog:discard');"/>+			<input class="button" type="button" value=""" + "\"" + _("Cancel") + "\"" + """  onclick="call ('save_dialog:cancel');"/> 			<br /> 		</form> 	</div>diff --git a/src/Supplement.vala b/src/Supplement.valaindex fe723ff..143aeb4 100644--- a/src/Supplement.vala+++ b/src/Supplement.vala@@ -18,6 +18,8 @@ using Supplement;
 using Birdfont;
 
+const string GETTEXT_PACKAGE = "birdfont"; 
+
 namespace Supplement {
 
 public class Supplement {
@@ -41,6 +43,8 @@ public class Supplement { 		stdout.printf ("birdfont version %s\n", VERSION);
 		stdout.printf ("built on %s\n", BUILD_TIMESTAMP);
 		
+		init_gettext ();		
+		
 		args = new Argument.command_line (arg);
 
 		if (args.has_argument ("--help")) {
@@ -96,6 +100,39 @@ public class Supplement { 		
 		preferences.set_last_file (get_current_font ().get_path ());
 	}
+
+	static void init_gettext () {
+		File f;
+
+		Intl.setlocale (LocaleCategory.MESSAGES, "");
+		Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "utf-8");
+
+		f = File.new_for_path ("./locale");
+		if (f.query_exists ()) {
+			Intl.bindtextdomain (GETTEXT_PACKAGE, "./locale");
+			return;
+		}
+
+		f = File.new_for_path ("../locale");
+		if (f.query_exists ()) {
+			Intl.bindtextdomain (GETTEXT_PACKAGE, "../locale");
+			return;
+		}
+
+		f = File.new_for_path ("/usr/share/locale/sv/LC_MESSAGES/birdfont.mo");
+		if (f.query_exists ()) {
+			Intl.bindtextdomain (GETTEXT_PACKAGE, "/usr/local/share/locale");
+			return;
+		}		
+
+		f = File.new_for_path ("/usr/share/locale/sv/LC_MESSAGES/birdfont.mo");
+		if (f.query_exists ()) {
+			Intl.bindtextdomain (GETTEXT_PACKAGE, "/usr/share/locale");
+			return;
+		}
+		
+		warning ("translations not found");
+	}
 	
 	public static Font get_current_font () {
 		return current_font;
diff --git a/src/Toolbox.vala b/src/Toolbox.valaindex 2b06f42..d745729 100644--- a/src/Toolbox.vala+++ b/src/Toolbox.vala@@ -91,14 +91,14 @@ public class Toolbox : GLib.Object  { 		// Draw tool modifiers 		// DELETE tools: 		-		Tool new_point = new Tool ("new_point", "Right click to add new point, left click to move points and double click to ad new point on path", 'a');+		Tool new_point = new Tool ("new_point", _("Right click to add new point, left click to move points and double click to ad new point on path"), 'a'); 		new_point.select_action.connect ((self) => { 				select_draw_tool (); 			}); 		 		// draw_tool_modifiers.add_tool (new_point); -		Tool insert_point_on_path = new Tool ("insert_point_on_path", "Add new point on path", 'n');+		Tool insert_point_on_path = new Tool ("insert_point_on_path", _("Add new point on path"), 'n'); 		insert_point_on_path.select_action.connect ((self) => { 			select_draw_tool (); 			pen_tool.begin_from_new_point_on_path ();@@ -106,7 +106,7 @@ public class Toolbox : GLib.Object  { 		// draw_tool_modifiers.add_tool (insert_point_on_path); 		 		if (Supplement.experimental) {-			Tool new_point_on_path = new Tool ("new_point_on_path", "Begin new path from point on path", 'n');+			Tool new_point_on_path = new Tool ("new_point_on_path", _("Begin new path from point on path"), 'n'); 			new_point_on_path.select_action.connect ((self) => { 					select_draw_tool (); 					pen_tool.begin_from_new_point_on_path ();@@ -114,7 +114,7 @@ public class Toolbox : GLib.Object  { 			draw_tool_modifiers.add_tool (new_point_on_path);	 		} -		Tool tie_editpoint_tool = new Tool ("tie_point", "Tie curve handles for selected edit point", 'w');+		Tool tie_editpoint_tool = new Tool ("tie_point", _("Tie curve handles for selected edit point"), 'w'); 		tie_editpoint_tool.select_action.connect ((self) => { 			bool tie; 			@@ -134,14 +134,14 @@ public class Toolbox : GLib.Object  { 		}); 		draw_tool_modifiers.add_tool (tie_editpoint_tool);	 -		Tool tie_x_or_y = new Tool ("tie_x_or_y", "Tie coordinates to previous edit point", 'q');+		Tool tie_x_or_y = new Tool ("tie_x_or_y", _("Tie coordinates to previous edit point"), 'q'); 		tie_x_or_y.select_action.connect((self) => { 			select_draw_tool (); 			pen_tool.tie_x_or_y_coordinates = !pen_tool.tie_x_or_y_coordinates; 		}); 		// Fixa: draw_tool_modifiers.add_tool (tie_x_or_y);	 -		Tool erase_tool = new Tool ("erase_tool", "Delete edit points");+		Tool erase_tool = new Tool ("erase_tool", _("Delete edit points")); 		erase_tool.select_action.connect((self) => { 			select_draw_tool (); 		});@@ -150,7 +150,7 @@ public class Toolbox : GLib.Object  { 		// adjust precision 		string precision_value = Preferences.get ("precision"); 		-		precision = new SpinButton ("precision", "Set precision");+		precision = new SpinButton ("precision", _("Set precision")); 		 		if (precision_value != "") { 			precision.set_value (precision_value);@@ -178,7 +178,7 @@ public class Toolbox : GLib.Object  { 		Tool union_paths_tool = new MergeTool ("union_paths"); 		path_tool_modifiers.add_tool (union_paths_tool); 		-		Tool reverse_path_tool = new Tool ("reverse_path", "Create counter from outline", 'r');+		Tool reverse_path_tool = new Tool ("reverse_path", _("Create counter from outline"), 'r'); 		reverse_path_tool.select_action.connect ((self) => { 			Glyph g = MainWindow.get_current_glyph (); 			@@ -190,7 +190,7 @@ public class Toolbox : GLib.Object  { 		}); 		path_tool_modifiers.add_tool (reverse_path_tool); -		Tool move_layer = new Tool ("move_layer", "Move to path to bottom layer", 'd');+		Tool move_layer = new Tool ("move_layer", _("Move to path to bottom layer"), 'd'); 		move_layer.select_action.connect ((self) => { 			Glyph g = MainWindow.get_current_glyph (); @@ -202,7 +202,7 @@ public class Toolbox : GLib.Object  { 		path_tool_modifiers.add_tool (move_layer); 		 		// Character set tools-		Tool full_unicode = new Tool ("utf_8", "Show full unicode characters set");+		Tool full_unicode = new Tool ("utf_8", _("Show full unicode characters set")); 		full_unicode.select_action.connect ((self) => { 				MainWindow.get_tab_bar ().add_unique_tab (new OverView (), 100, false);	 				OverView o = MainWindow.get_overview ();@@ -213,7 +213,7 @@ public class Toolbox : GLib.Object  { 			}); 		characterset_tools.add_tool (full_unicode); -		Tool custom_character_set = new Tool ("custom_character_set", "Show default characters set", 'r', CTRL);+		Tool custom_character_set = new Tool ("custom_character_set", _("Show default characters set"), 'r', CTRL); 		custom_character_set.select_action.connect ((self) => { 			MainWindow.get_tab_bar ().add_unique_tab (new OverView (), 100, false); 			OverView o = MainWindow.get_overview ();@@ -224,7 +224,7 @@ public class Toolbox : GLib.Object  { 		}); 		characterset_tools.add_tool (custom_character_set); -		Tool avalilable_characters = new Tool ("available_characters", "Show characters in font", 'd', CTRL);+		Tool avalilable_characters = new Tool ("available_characters", _("Show characters in font"), 'd', CTRL); 		avalilable_characters.select_action.connect ((self) => { 			MainWindow.get_tab_bar ().add_unique_tab (new OverView (), 100, false); 			OverView o = MainWindow.get_overview ();@@ -233,7 +233,7 @@ public class Toolbox : GLib.Object  { 		}); 		characterset_tools.add_tool (avalilable_characters); -		Tool delete_glyph = new Tool ("delete_selected_glyph", "Delete selected glyph");+		Tool delete_glyph = new Tool ("delete_selected_glyph", _("Delete selected glyph")); 		delete_glyph.select_action.connect ((self) => { 			OverView o = MainWindow.get_overview (); 			@@ -299,7 +299,7 @@ public class Toolbox : GLib.Object  {  		guideline_tools.add_tool (help_lines); -		Tool xheight_help_lines = new Tool ("show_xheight_helplines", "Show help lines for x-height and baseline", 'x');+		Tool xheight_help_lines = new Tool ("show_xheight_helplines", _("Show help lines for x-height and baseline"), 'x'); 		xheight_help_lines.select_action.connect ((self) => { 			Glyph g = MainWindow.get_current_glyph (); 			bool v = !g.get_xheight_lines_visible ();@@ -314,7 +314,7 @@ public class Toolbox : GLib.Object  { 		}); 		guideline_tools.add_tool (xheight_help_lines); -		Tool background_help_lines = new Tool ("background_help_lines", "Show help lines at top and bottom margin", 't');+		Tool background_help_lines = new Tool ("background_help_lines", _("Show help lines at top and bottom margin"), 't'); 		background_help_lines.select_action.connect ((self) => { 			Glyph g = MainWindow.get_current_glyph (); 			bool v = !g.get_margin_lines_visible ();@@ -332,21 +332,21 @@ public class Toolbox : GLib.Object  { 		guideline_tools.add_tool (new_grid);  		// Zoom tools -		Tool zoom_in = new Tool ("zoom_in", "zoom in", '+', CTRL);+		Tool zoom_in = new Tool ("zoom_in", _("Zoom in"), '+', CTRL); 		zoom_in.select_action.connect ((self) => { 			zoom_tool.store_current_view (); 			glyph_canvas.get_current_display ().zoom_in (); 		}); 		view_tools.add_tool (zoom_in); -		Tool zoom_out = new Tool ("zoom_out", "Zoom out", '-', CTRL);+		Tool zoom_out = new Tool ("zoom_out", _("Zoom out"), '-', CTRL); 		zoom_out.select_action.connect ((self) => { 			zoom_tool.store_current_view (); 			glyph_canvas.get_current_display ().zoom_out (); 		}); 		view_tools.add_tool (zoom_out); -		Tool reset_zoom = new Tool ("zoom_1_1", "Zoom to scale 1:1", '0', CTRL);+		Tool reset_zoom = new Tool ("zoom_1_1", _("Zoom to scale 1:1"), '0', CTRL); 		reset_zoom.select_action.connect ((self) => { 				zoom_tool.store_current_view (); 				glyph_canvas.get_current_display ().reset_zoom ();@@ -354,21 +354,21 @@ public class Toolbox : GLib.Object  { 			}); 		view_tools.add_tool (reset_zoom); -		Tool full_glyph = new Tool ("full_glyph", "Show full glyph", 'f');+		Tool full_glyph = new Tool ("full_glyph", _("Show full glyph"), 'f'); 		full_glyph.select_action.connect((self) => { 			zoom_tool.store_current_view (); 			zoom_tool.zoom_full_glyph (); 		}); 		view_tools.add_tool (full_glyph); -		Tool zoom_boundries = new Tool ("zoom_boundries", "Zoom in at region boundries", 'v');+		Tool zoom_boundries = new Tool ("zoom_boundries", _("Zoom in at region boundries"), 'v'); 		zoom_boundries.select_action.connect((self) => { 			zoom_tool.store_current_view (); 			glyph_canvas.get_current_display ().zoom_max (); 		}); 		view_tools.add_tool (zoom_boundries); -		Tool zoom_bg = new Tool ("zoom_background_image", "Zoom in background image", 'b');+		Tool zoom_bg = new Tool ("zoom_background_image", _("Zoom in background image"), 'b'); 		zoom_bg.select_action.connect((self) => { 			if (MainWindow.get_current_glyph ().get_background_image () != null) { 				zoom_tool.store_current_view ();					@@ -381,20 +381,20 @@ public class Toolbox : GLib.Object  { 		}); 		view_tools.add_tool (zoom_bg); -		Tool zoom_prev = new Tool ("prev", "Previous view", 'j', CTRL);+		Tool zoom_prev = new Tool ("prev", _("Previous view"), 'j', CTRL); 		zoom_prev.select_action.connect((self) => { 			zoom_tool.previous_view (); 		}); 		view_tools.add_tool (zoom_prev); -		Tool zoom_next = new Tool ("next", "Next view", 'l', CTRL);+		Tool zoom_next = new Tool ("next", _("Next view"), 'l', CTRL); 		zoom_next.select_action.connect((self) => { 			zoom_tool.next_view (); 		}); 		view_tools.add_tool (zoom_next); 				 		// background tools-		background_scale = new SpinButton ("scale_background", "Set size for background image");+		background_scale = new SpinButton ("scale_background", _("Set size for background image")); 		background_scale.set_value_round (1); 		 		background_scale.new_value_action.connect((self) => {@@ -424,7 +424,7 @@ public class Toolbox : GLib.Object  { 		background_tools.add_tool (cut_background); 		this.cut_background = cut_background; 		-		Tool show_bg = new Tool ("show_background", "Show/hide background image");+		Tool show_bg = new Tool ("show_background", _("Show/hide background image")); 		show_bg.select_action.connect ((self) => { 			Glyph g = MainWindow.get_current_glyph (); 			g.set_background_visible (!g.get_background_visible ());@@ -432,12 +432,12 @@ public class Toolbox : GLib.Object  { 		}); 		background_tools.add_tool (show_bg); -		Tool bg_selection = new Tool ("insert_background", "Insert new background image");+		Tool bg_selection = new Tool ("insert_background", _("Insert new background image")); 		bg_selection.select_action.connect((self) => { 			Glyph? g = null; 			FontDisplay fd = MainWindow.get_current_display (); 			TooltipArea tp = MainWindow.get_tool_tip ();-			tp.show_text ("Creating thumbnails");+			tp.show_text (_("Creating thumbnails")); 			 			bg_selection.yield (); 		@@ -456,7 +456,7 @@ public class Toolbox : GLib.Object  { 		bg_selection.set_show_background (true); 		background_tools.add_tool (bg_selection); 		-		SpinButton background_contrast = new SpinButton ("background_contrast", "Set background contrast");+		SpinButton background_contrast = new SpinButton ("background_contrast", _("Set background contrast")); 		background_contrast.set_value_round (1);  		background_contrast.new_value_action.connect ((self) => {@@ -476,7 +476,7 @@ public class Toolbox : GLib.Object  { 		 		// Fixa: background_tools.add_tool (background_contrast); -		SpinButton background_threshold = new SpinButton ("background_threshold", "Set threshold");+		SpinButton background_threshold = new SpinButton ("background_threshold", _("Set threshold")); 		background_threshold.set_value_round (1);  		background_threshold.new_value_action.connect ((self) => {@@ -667,7 +667,7 @@ public class Toolbox : GLib.Object  { 	}  	public SpinButton add_new_grid () {-		SpinButton grid_width = new SpinButton ("grid_width", "Set size for grid");+		SpinButton grid_width = new SpinButton ("grid_width", _("Set size for grid")); 		 		grid_width.new_value_action.connect((self) => { 			grid_width.select_action (grid_width);diff --git a/src/wscript b/src/wscriptindex 77d446c..96ae341 100644--- a/src/wscript+++ b/src/wscript@@ -64,11 +64,12 @@ BIRDFONT = [ ]  PARAM = [+	'-X -D\'GETTEXT_PACKAGE="birdfont"\' ' 	'--thread', 	'--disable-warnings', 	'--enable-experimental', 	'--enable-experimental-non-null',-	'--vapidir=./'+	'--vapidir=./', ]  def build (bld):@@ -79,7 +80,7 @@ def build (bld): 		packages      = 'libxml-2.0', 		uselib        = 'CAIRO GLIB GIO PIXBUF XML', 		source        = BIRDFONT,-		name          = "libbirdfont"+		name          = "libbirdfont", 	)  	bld (diff --git a/translations/birdfont-sv_SE.po b/translations/birdfont-sv_SE.ponew file mode 100644index 0000000..5508819--- /dev/null+++ b/translations/birdfont-sv_SE.po@@ -0,0 +1,224 @@+# SOME DESCRIPTIVE TITLE.+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER+# This file is distributed under the same license as the PACKAGE package.+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.+#+#, fuzzy+msgid ""+msgstr ""+"Project-Id-Version: PACKAGE VERSION\n"+"Report-Msgid-Bugs-To: \n"+"POT-Creation-Date: 2012-12-05 16:30+0100\n"+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"+"Language-Team: LANGUAGE <LL@li.org>\n"+"Language: \n"+"MIME-Version: 1.0\n"+"Content-Type: text/plain; charset=utf-8\n"+"Content-Transfer-Encoding: 8bit\n"++#: src/Birdfont.vala:22+msgid "Usage:"+msgstr ""++#: src/Birdfont.vala:25+msgid "print this message\n"+msgstr ""++#: src/Birdfont.vala:26+msgid "write files to this directory\n"+msgstr ""++#: src/Birdfont.vala:27+msgid "write svg file\n"+msgstr ""++#: src/Birdfont.vala:28+msgid "write ttf and eot files\n"+msgstr ""++#: src/Birdfont.vala:118+msgid "Can't find output directory"+msgstr ""++#: src/Birdfont.vala:123 src/Birdfont.vala:128+msgid "Writing"+msgstr ""++#: src/MenuTab.vala:113+msgid "Create a new font"+msgstr ""++#: src/MenuTab.vala:114+msgid "Open an existing ffi file"+msgstr ""++#: src/MenuTab.vala:115+msgid "Save font"+msgstr ""++#: src/MenuTab.vala:116+msgid "Save font with a different name"+msgstr ""++#: src/MenuTab.vala:117+msgid "Show kerning context"+msgstr ""++#: src/MenuTab.vala:118+msgid "Add a new size for grid"+msgstr ""++#: src/MenuTab.vala:119+msgid "Remove current grid size"+msgstr ""++#: src/MenuTab.vala:136+msgid "Export"+msgstr ""++#: src/MenuTab.vala:137+msgid "Preview"+msgstr ""++#: src/MenuTab.vala:153+msgid "Recent files"+msgstr ""++#: src/MenuTab.vala:266 src/SaveDialog.vala:82+msgid "Save"+msgstr "Spara"++#: src/SaveDialog.vala:83+msgid "Save as"+msgstr "Spara som"++#: src/SaveDialog.vala:84+msgid "Discard"+msgstr ""++#: src/SaveDialog.vala:85+msgid "Cancel"+msgstr ""++#: src/Toolbox.vala:94+msgid ""+"Right click to add new point, left click to move points and double click to "+"ad new point on path"+msgstr ""++#: src/Toolbox.vala:101+msgid "Add new point on path"+msgstr ""++#: src/Toolbox.vala:109+msgid "Begin new path from point on path"+msgstr ""++#: src/Toolbox.vala:117+msgid "Tie curve handles for selected edit point"+msgstr ""++#: src/Toolbox.vala:137+msgid "Tie coordinates to previous edit point"+msgstr ""++#: src/Toolbox.vala:144+msgid "Delete edit points"+msgstr ""++#: src/Toolbox.vala:153+msgid "Set precision"+msgstr ""++#: src/Toolbox.vala:181+msgid "Create counter from outline"+msgstr ""++#: src/Toolbox.vala:193+msgid "Move to path to bottom layer"+msgstr ""++#: src/Toolbox.vala:205+msgid "Show full unicode characters set"+msgstr ""++#: src/Toolbox.vala:216+msgid "Show default characters set"+msgstr ""++#: src/Toolbox.vala:227+msgid "Show characters in font"+msgstr ""++#: src/Toolbox.vala:236+msgid "Delete selected glyph"+msgstr ""++#: src/Toolbox.vala:302+msgid "Show help lines for x-height and baseline"+msgstr ""++#: src/Toolbox.vala:317+msgid "Show help lines at top and bottom margin"+msgstr ""++#: src/Toolbox.vala:335+msgid "Zoom in"+msgstr ""++#: src/Toolbox.vala:342+msgid "Zoom out"+msgstr ""++#: src/Toolbox.vala:349+msgid "Zoom to scale 1:1"+msgstr ""++#: src/Toolbox.vala:357+msgid "Show full glyph"+msgstr ""++#: src/Toolbox.vala:364+msgid "Zoom in at region boundries"+msgstr ""++#: src/Toolbox.vala:371+msgid "Zoom in background image"+msgstr ""++#: src/Toolbox.vala:384+msgid "Previous view"+msgstr ""++#: src/Toolbox.vala:390+msgid "Next view"+msgstr ""++#: src/Toolbox.vala:397+msgid "Set size for background image"+msgstr ""++#: src/Toolbox.vala:427+msgid "Show/hide background image"+msgstr ""++#: src/Toolbox.vala:435+msgid "Insert new background image"+msgstr ""++#: src/Toolbox.vala:440+msgid "Creating thumbnails"+msgstr ""++#: src/Toolbox.vala:459+msgid "Set background contrast"+msgstr ""++#: src/Toolbox.vala:479+msgid "Set threshold"+msgstr ""++#: src/Toolbox.vala:670+msgid "Set size for grid"+msgstr ""diff --git a/wscript b/wscriptindex 2284ed9..ec1006c 100644--- a/wscript+++ b/wscript@@ -30,6 +30,8 @@ def configure(conf): 
 	conf.find_program('ldconfig', var='LDCONFIG', mandatory=False)
 
+	conf.define('GETTEXT_PACKAGE', 'birdfont')
+
 	if conf.options.win32 :
 		conf.recurse('win32')
 

Contact

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