anjuta r4244 - in trunk: . plugins/project-wizard/templates
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4244 - in trunk: . plugins/project-wizard/templates
- Date: Thu, 11 Sep 2008 18:00:03 +0000 (UTC)
Author: sgranjoux
Date: Thu Sep 11 18:00:02 2008
New Revision: 4244
URL: http://svn.gnome.org/viewvc/anjuta?rev=4244&view=rev
Log:
* plugins/project-wizard/templates/anjuta-plugin.wiz,
plugins/project-wizard/templates/anjuta-plugin-vala.wiz,
plugins/project-wizard/templates/cpp.wiz,
plugins/project-wizard/templates/django.wiz,
plugins/project-wizard/templates/gcj.wiz,
plugins/project-wizard/templates/gnome.wiz,
plugins/project-wizard/templates/gtk.wiz,
plugins/project-wizard/templates/gtkmm.wiz,
plugins/project-wizard/templates/java.wiz,
plugins/project-wizard/templates/mkfile.wiz,
plugins/project-wizard/templates/minimal.wiz,
plugins/project-wizard/templates/python.wiz,
plugins/project-wizard/templates/sdl.wiz,
plugins/project-wizard/templates/terminal.wiz,
plugins/project-wizard/templates/wxwin.wiz,
plugins/project-wizard/templates/xlib.wiz,
plugins/project-wizard/templates/xlib-dock.wiz,
plugins/project-wizard/templates/extract-translatable-strings.pl,
plugins/project-wizard/templates/translatable-strings.h:
Fix #551574 Project names and descriptions are not translatable
Modified:
trunk/ChangeLog
trunk/plugins/project-wizard/templates/anjuta-plugin-vala.wiz
trunk/plugins/project-wizard/templates/anjuta-plugin.wiz
trunk/plugins/project-wizard/templates/cpp.wiz
trunk/plugins/project-wizard/templates/django.wiz
trunk/plugins/project-wizard/templates/extract-translatable-strings.pl
trunk/plugins/project-wizard/templates/gcj.wiz
trunk/plugins/project-wizard/templates/gnome.wiz
trunk/plugins/project-wizard/templates/gtk.wiz
trunk/plugins/project-wizard/templates/gtkmm.wiz
trunk/plugins/project-wizard/templates/java.wiz
trunk/plugins/project-wizard/templates/minimal.wiz
trunk/plugins/project-wizard/templates/mkfile.wiz
trunk/plugins/project-wizard/templates/python.wiz
trunk/plugins/project-wizard/templates/sdl.wiz
trunk/plugins/project-wizard/templates/terminal.wiz
trunk/plugins/project-wizard/templates/translatable-strings.h
trunk/plugins/project-wizard/templates/wxwin.wiz
trunk/plugins/project-wizard/templates/xlib-dock.wiz
trunk/plugins/project-wizard/templates/xlib.wiz
Modified: trunk/plugins/project-wizard/templates/anjuta-plugin-vala.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/anjuta-plugin-vala.wiz (original)
+++ trunk/plugins/project-wizard/templates/anjuta-plugin-vala.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Anjuta Plugin</name>
- <description>Anjuta plugin project that uses libanjuta framework</description>
+ <_name>Anjuta Plugin</_name>
+ <_description>Anjuta plugin project that uses libanjuta framework</_description>
<icon>anjuta-plugin-logo.png</icon>
<category>Vala</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/anjuta-plugin.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/anjuta-plugin.wiz (original)
+++ trunk/plugins/project-wizard/templates/anjuta-plugin.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Anjuta Plugin</name>
- <description>Anjuta plugin project that uses libanjuta framework</description>
+ <_name>Anjuta Plugin</_name>
+ <_description>Anjuta plugin project that uses libanjuta framework</_description>
<icon>anjuta-plugin-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/cpp.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/cpp.wiz (original)
+++ trunk/plugins/project-wizard/templates/cpp.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Generic C++</name>
- <description>A generic C++ project</description>
+ <_name>Generic C++</_name>
+ <_description>A generic C++ project</_description>
<icon>cpp-logo.png</icon>
<category>C++</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/django.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/django.wiz (original)
+++ trunk/plugins/project-wizard/templates/django.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Django Project</name>
- <description>Python webproject using Django Web Framework</description>
+ <_name>Django Project</_name>
+ <_description>Python webproject using Django Web Framework</_description>
<icon>django-logo.png</icon>
<category>Python</category>
<required-program>django-admin.py</required-program>
Modified: trunk/plugins/project-wizard/templates/extract-translatable-strings.pl
==============================================================================
--- trunk/plugins/project-wizard/templates/extract-translatable-strings.pl (original)
+++ trunk/plugins/project-wizard/templates/extract-translatable-strings.pl Thu Sep 11 18:00:02 2008
@@ -13,7 +13,19 @@
next;
}
my $content = `cat $one_file`;
- my @strings = $content =~ /_[\d\w\-\_]+=(\"[^\"]+\")/sgm;
+
+ # Find translatable attribute (name starting with _)
+ my @strings = $content =~ /_[\d\w\-\_]+=\"([^\"]+)\"/sgm;
+ foreach my $one_string (@strings)
+ {
+ $one_string =~ s/>/>/gs;
+ $one_string =~ s/</</gs;
+ $one_string =~ s/"/\\"/gs;
+ $trans_strings{$one_string} = $one_string;
+ }
+
+ # Find translatable content (element name starting with _)
+ @strings = $content =~ /<\s*_[^\>]+>([^\<]+)</sgm;
foreach my $one_string (@strings)
{
$one_string =~ s/>/>/gs;
@@ -24,5 +36,5 @@
}
foreach my $one_trans_string (sort keys (%trans_strings))
{
- print "char *s = N_($one_trans_string);\n";
+ print "char *s = N_(\"$one_trans_string\");\n";
}
Modified: trunk/plugins/project-wizard/templates/gcj.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gcj.wiz (original)
+++ trunk/plugins/project-wizard/templates/gcj.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Generic gcj compiled java</name>
- <description>A generic natively compiled java project using the GNU Java Compiler (gcj)</description>
+ <_name>Generic gcj compiled java</_name>
+ <_description>A generic natively compiled java project using the GNU Java Compiler (gcj)</_description>
<icon>gcj-logo.png</icon>
<category>Java</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/gnome.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gnome.wiz (original)
+++ trunk/plugins/project-wizard/templates/gnome.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>GNOME</name>
- <description>A generic GNOME project</description>
+ <_name>GNOME</_name>
+ <_description>A generic GNOME project</_description>
<icon>gnome-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/gtk.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gtk.wiz (original)
+++ trunk/plugins/project-wizard/templates/gtk.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>GTK+</name>
- <description>A generic GTK+ project</description>
+ <_name>GTK+</_name>
+ <_description>A generic GTK+ project</_description>
<icon>gtk-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/gtkmm.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gtkmm.wiz (original)
+++ trunk/plugins/project-wizard/templates/gtkmm.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>GTKmm</name>
- <description>A generic GTKmm (C++) project</description>
+ <_name>GTKmm</_name>
+ <_description>A generic GTKmm (C++) project</_description>
<icon>gtkmm-logo.png</icon>
<category>C++</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/java.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/java.wiz (original)
+++ trunk/plugins/project-wizard/templates/java.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Generic java (automake)</name>
- <description>A generic java project using automake project management</description>
+ <_name>Generic java (automake)</_name>
+ <_description>A generic java project using automake project management</_description>
<icon>java-logo.png</icon>
<category>Java</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/minimal.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/minimal.wiz (original)
+++ trunk/plugins/project-wizard/templates/minimal.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Generic (Minimal)</name>
- <description>A generic minimal and flat project </description>
+ <_name>Generic (Minimal)</_name>
+ <_description>A generic minimal and flat project </_description>
<icon>terminal-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/mkfile.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/mkfile.wiz (original)
+++ trunk/plugins/project-wizard/templates/mkfile.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Makefile project</name>
- <description>Makefile-based project</description>
+ <_name>Makefile project</_name>
+ <_description>Makefile-based project</_description>
<icon>mkfile-logo.png</icon>
<category>C</category>
<required-program>make</required-program>
Modified: trunk/plugins/project-wizard/templates/python.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/python.wiz (original)
+++ trunk/plugins/project-wizard/templates/python.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Generic python (automake)</name>
- <description>A generic python project using automake project management</description>
+ <_name>Generic python (automake)</_name>
+ <_description>A generic python project using automake project management</_description>
<icon>python-logo.png</icon>
<category>Python</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/sdl.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/sdl.wiz (original)
+++ trunk/plugins/project-wizard/templates/sdl.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>SDL</name>
- <description>A sample SDL project</description>
+ <_name>SDL</_name>
+ <_description>A sample SDL project</_description>
<icon>appwiz_sdl.png</icon>
<category>C</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/terminal.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/terminal.wiz (original)
+++ trunk/plugins/project-wizard/templates/terminal.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Generic</name>
- <description>A generic project</description>
+ <_name>Generic</_name>
+ <_description>A generic project</_description>
<icon>terminal-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/translatable-strings.h
==============================================================================
--- trunk/plugins/project-wizard/templates/translatable-strings.h (original)
+++ trunk/plugins/project-wizard/templates/translatable-strings.h Thu Sep 11 18:00:02 2008
@@ -1,3 +1,16 @@
+char *s = N_("A generic C++ project");
+char *s = N_("A generic GNOME project");
+char *s = N_("A generic GTK+ project");
+char *s = N_("A generic GTKmm (C++) project");
+char *s = N_("A generic Xlib dock applet");
+char *s = N_("A generic Xlib project");
+char *s = N_("A generic java project using automake project management");
+char *s = N_("A generic minimal and flat project ");
+char *s = N_("A generic natively compiled java project using the GNU Java Compiler (gcj)");
+char *s = N_("A generic project");
+char *s = N_("A generic python project using automake project management");
+char *s = N_("A generic wx Widgets project");
+char *s = N_("A sample SDL project");
char *s = N_("Add C++ support:");
char *s = N_("Add gtk-doc system:");
char *s = N_("Add internationalization:");
@@ -5,6 +18,8 @@
char *s = N_("Adds C++ support to the project so that C++ source files can be built");
char *s = N_("Adds support for building shared libraries in your project");
char *s = N_("Adds support for internationalization so that your project can have translations in different languages");
+char *s = N_("Anjuta Plugin");
+char *s = N_("Anjuta plugin project that uses libanjuta framework");
char *s = N_("Author:");
char *s = N_("Basic information");
char *s = N_("Berkeley Software Distribution License (BSD)");
@@ -16,11 +31,21 @@
char *s = N_("Destination:");
char *s = N_("Display description of the plugin");
char *s = N_("Display title of the plugin");
+char *s = N_("Django Project");
char *s = N_("Django Project information");
char *s = N_("Email address:");
char *s = N_("GCJ needs to know which class contains the main() function");
+char *s = N_("GNOME");
+char *s = N_("GTK+");
+char *s = N_("GTKmm");
char *s = N_("General Project Information");
char *s = N_("General Public License (GPL)");
+char *s = N_("Generic");
+char *s = N_("Generic (Minimal)");
+char *s = N_("Generic C++");
+char *s = N_("Generic gcj compiled java");
+char *s = N_("Generic java (automake)");
+char *s = N_("Generic python (automake)");
char *s = N_("Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 >= 2.2.0'");
char *s = N_("Icon File:");
char *s = N_("Icon file for the plugin");
@@ -31,6 +56,8 @@
char *s = N_("License");
char *s = N_("Main Class:");
char *s = N_("Main class");
+char *s = N_("Makefile project");
+char *s = N_("Makefile-based project");
char *s = N_("Mininum SDL version required");
char *s = N_("Name of the value to watch");
char *s = N_("No license");
@@ -48,6 +75,7 @@
char *s = N_("Project name must not contain spaces, because it will be the name of the project build target (executable, library etc.)");
char *s = N_("Project name:");
char *s = N_("Project options");
+char *s = N_("Python webproject using Django Web Framework");
char *s = N_("Require Package:");
char *s = N_("Require SDL version:");
char *s = N_("Require SDL_gfx library");
@@ -60,6 +88,7 @@
char *s = N_("Require SDL_net:");
char *s = N_("Require SDL_ttf library");
char *s = N_("Require SDL_ttf:");
+char *s = N_("SDL");
char *s = N_("Select code license");
char *s = N_("Shell values to watch");
char *s = N_("Use libglade for the UI");
@@ -69,5 +98,8 @@
char *s = N_("Values to watch");
char *s = N_("Version:");
char *s = N_("Whether the plugin has menus or toolbars");
+char *s = N_("Wx Widgets");
+char *s = N_("Xlib");
+char *s = N_("Xlib dock");
char *s = N_("gtk-doc is used to compile API documentations for GObject based classes");
char *s = N_("project name");
Modified: trunk/plugins/project-wizard/templates/wxwin.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/wxwin.wiz (original)
+++ trunk/plugins/project-wizard/templates/wxwin.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Wx Widgets</name>
- <description>A generic wx Widgets project</description>
+ <_name>Wx Widgets</_name>
+ <_description>A generic wx Widgets project</_description>
<icon>wxwin-logo.png</icon>
<category>C++</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/xlib-dock.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/xlib-dock.wiz (original)
+++ trunk/plugins/project-wizard/templates/xlib-dock.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Xlib dock</name>
- <description>A generic Xlib dock applet</description>
+ <_name>Xlib dock</_name>
+ <_description>A generic Xlib dock applet</_description>
<icon>xlib-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
Modified: trunk/plugins/project-wizard/templates/xlib.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/xlib.wiz (original)
+++ trunk/plugins/project-wizard/templates/xlib.wiz Thu Sep 11 18:00:02 2008
@@ -1,6 +1,6 @@
<project-wizard>
- <name>Xlib</name>
- <description>A generic Xlib project</description>
+ <_name>Xlib</_name>
+ <_description>A generic Xlib project</_description>
<icon>xlib-logo.png</icon>
<category>C</category>
<required-program>automake</required-program>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]