[Kbabel] Re: New datatool for kbabel

Stanislav Visnovsky visnovsky at kde.org
Mon Feb 28 19:39:29 CET 2005


Hi!

Thanks a lot for the patch!

I'm just wondering how to present this validator to users. The name in the 
desktop file looks too long for me and also its hard to use by not advanced 
user.

What about this:
Making it a bit generic class and then create a number of different datatools 
from it. Your one is like validation for a given language. In principle your 
code can form a basis for other datatools, even the ones that already exist.

Stano


Dňa Nedeľa 27 Február 2005 15:16 Albert Cervera Areny napísal:
> Hello Stanislav,
> 	As I've seen the feature freeze in the cvs has finished I think it'd be
> interesting to add this plugin I made for kbabel.
>
> 	It's quite simple, it just checks translations against a list of regular
> expressions in a XML file. I aim to improve it so it could check translated
> or original strings and I'd like to show on screen which of the errors has
> been detected, that's why I force the use of a name/description for each
> regular expression. This might require modifying kbabel itself but I'd send
> the patch if you agree, of course.
>
> 	Right now I send you what I've already done. We're already using it in the
> Catalan team and it's helping quite a lot with some kinds of gramatical
> errors, though I also miss it the possibility to add exceptions to the
> rules (another TODO).
>
> 	To work, only uncompress in the datatools dir. and modify Makefile.am like
> this. The XML file path is hardcoded to
> ~/.kde/share/apps/kbabel/regexplist.xml
>
> Index: Makefile.am
> ===================================================================
> RCS file: /home/kde/kdesdk/kbabel/datatools/Makefile.am,v
> retrieving revision 1.8
> diff -u -3 -p -r1.8 Makefile.am
> --- Makefile.am 15 Oct 2003 15:03:40 -0000      1.8
> +++ Makefile.am 27 Feb 2005 14:00:03 -0000
> @@ -3,7 +3,7 @@
>  # this has all of the subdirectories that make will recurse into.  if
>  # there are none, comment this out
>  SUBDIRS = arguments accelerators context equations pluralforms xml \
> -not-translated whitespace length setfuzzy punctuation
> +not-translated whitespace length setfuzzy punctuation regexp
>
>  #pkgincludedir = $(includedir)/kbabel


More information about the kbabel mailing list