[glotpress-updates] [GlotPress] #263: On import, detect when a string has minor changes and keep the original translations.

GlotPress noreply at wordpress.org
Tue Apr 29 09:43:37 UTC 2014


#263: On import, detect when a string has minor changes and keep the original
translations.
--------------------------+-----------------------
  Reporter:  yoavf        |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  major        |  Milestone:  1.0
 Component:  general      |    Version:  0.1
Resolution:               |   Keywords:  has-patch
--------------------------+-----------------------

Comment (by yoavf):

 In [changeset:"881"]:
 {{{
 #!CommitTicketReference repository="" revision="881"
 String functions: introduce a couple of functions to measure string
 similiarity.
 gp_levenshtein() lets us compare strings longer than 255 bytes (php native
 levenshtein limit).
 gp_string_similarity() is a wrapper arounds it that returns a score
 between 0 (no similiarty) and 1 (same string), and makes sure we're not
 running comparisons on strings longer than 5000 chars (arbirary limit for
 performance purposes)
 See #263
 }}}

--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/263#comment:25>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'


More information about the glotpress-updates mailing list