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

GlotPress noreply at wordpress.org
Sun Sep 15 18:26:55 UTC 2013


#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:  Future Release
 Component:  general      |    Version:  0.1
Resolution:               |   Keywords:  has-patch
--------------------------+----------------------------

Comment (by yoavf):

 263.diff breaks things up a bit (in a somewhat complex way):

 - closest_original() compare strings lengths before doing textual
 comparison (filterable)
 - string_similarity() handles the actual comparison per word  (using
 levenshtein() / similar_text() depending on length)
 - the best matching string is then passed with the similarity percentage
 to gp_original_is_string_similar
 - is_string_similar() does that by default

 another improvement: instead of comparing to all the originals for every
 string, we only compare to the originals we haven't yet matched before
 ({{{unset( $originals_for_comparison[$entry->key()] );}}})

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


More information about the glotpress-updates mailing list