Op Do, 2011-12-29 om 13:13 +0100 skryf Tim Anil: > Hi Friedel, > > > I use Translate Toolkit 1.9.0. > > I made additional tests with .pot file and "update from templates": > > > If the original string is 69 characters: > 0123456789012345678901234567890123456789012345678901234567890123456789 > And is changed to 70 characters: > 01234567890123456789012345678901234567890123456789012345678901234567890 > After "update from template", then it's OK, the translation is marked > "fuzzy" (98%) > > > If the original string is 70 characters: > 01234567890123456789012345678901234567890123456789012345678901234567890 > And is changed to 71 characters: > 012345678901234567890123456789012345678901234567890123456789012345678901 > After "update from template", then the translation is replaced with > the .pot text defined in "msgstr" (which can be empty in the .pot file > if "msgid" is the original string) and not marked "fuzzy" > > > So it is as if very slight modifications of the original string > (compared to its length) make loose the translation instead of marking > it fuzzy. > Could it be a problem of rounding (very close to 100 % ?). I don't > where to look in the source code to check this.
Ok, that helped. The issue is that the default parameters only considers strings up to 70 characters. You can check in translate/search/match.py for max_length=70, and change that to, say, 1000. If that fixes it, we can consider making that change in the translate toolkit for the next release. > Regarding the problem with Mac OS X strings file, I searched bug > database but didn't find a similar problem. I'm still not sure exactly what is up here. Is it related to the issue above (is it removed with the change I suggest)? If not, do you see any similar bugs with something like java .properties files? If not, feel free to add it to the bug database, and maybe have a look at what is happening if you can read a bit of code. Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/firefox-maybe-now-most-popular-africa ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle