[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ANN: make_strings v0.4.1
From: |
Alexander Malmberg |
Subject: |
ANN: make_strings v0.4.1 |
Date: |
Mon, 25 Feb 2002 02:32:30 +0100 |
Hi,
After a days hard work and extensive testing (hmm... :), I'd like to
announce make_strings v0.4.1. make_strings parses objective-c (and c,
maybe others) source code and produces localization .strings files. It
parses fairly intelligently and does a good job of merging changes into
.strings files. I've designed it to make it easy for a translator to
keep localization files up-to-date.
Anyway, you can get it at:
http://w1.423.telia.com/~u42308495/alex/make_strings-0.4.1.tar.gz (11kb)
There are fairly detailed instructions in Using.txt. For the impatient,
syntax is:
make_strings -L Language1 -L Language2 foo.m foo.h zot.m quux.c
Make sure Language1.lproj/ etc. exist first. If you're impatient you'll
also want to add --aggressive-import (very useful the first time you run
make_strings if you already have a Localizable.strings file) or
--aggressive-match.
To fix the translations, open the .strings files and search for 'Flag:'.
Details are in Using.txt.
I've also attached a quick patch of gnustep-make that lets you run 'make
strings' for an application. It will get the languages from
appname_LANGUAGES and the files from ..._OBJC_FILES and ..._C_FILES and
run make_strings with the right options. You can add additional options
with MAKE_STRINGS_OPTIONS, so you could use
make strings MAKE_STRINGS_OPTIONS=--aggressive-import
the first time you run it and:
make strings MAKE_STRINGS_OPTIONS=--aggressive-match
to keep the localization files up-to-date (or add it to your makefile).
As always, I appreciate comments, suggestions, bug reports, etc.
- Alexander Malmberg
Index: Instance/application.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/Instance/application.make,v
retrieving revision 1.3
diff -u -r1.3 application.make
--- Instance/application.make 22 Feb 2002 12:06:24 -0000 1.3
+++ Instance/application.make 25 Feb 2002 00:32:57 -0000
@@ -219,6 +219,13 @@
internal-app-uninstall::
(cd $(GNUSTEP_APPS); rm -rf $(APP_DIR_NAME))
+
+internal-app-strings::
+ make_strings $(MAKE_STRINGS_OPTIONS) -L "$(LANGUAGES)" \
+ $($(GNUSTEP_INSTANCE)_OBJC_FILES) \
+ $($(GNUSTEP_INSTANCE)_C_FILES)
+
+
## Local variables:
## mode: makefile
## End:
Index: Master/application.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/Master/application.make,v
retrieving revision 1.3
diff -u -r1.3 application.make
--- Master/application.make 20 Feb 2002 13:07:34 -0000 1.3
+++ Master/application.make 25 Feb 2002 00:32:57 -0000
@@ -27,6 +27,8 @@
APP_NAME := $(strip $(APP_NAME))
+strings:: $(APP_NAME:=.strings.app.variables)
+
internal-all:: $(APP_NAME:=.all.app.variables)
internal-install:: $(APP_NAME:=.install.app.variables)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ANN: make_strings v0.4.1,
Alexander Malmberg <=