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

GlotPress noreply at wordpress.org
Mon Dec 2 19:02:43 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:  1.0
 Component:  general      |    Version:  0.1
Resolution:               |   Keywords:  has-patch
--------------------------+-----------------------

Comment (by yoavf):

 Replying to [comment:9 yoavf]:
 >  I'll work on that sometimes next week.

 That took a while :)

 263.2 diff changes things a bit:
 - it now collects unmatched strings (no exact originals) to the
 possibly_added array.
 - It put all unused strings in the possibly_dropped array
 - It creates a comparison array which combines the possibly_dropped array
 with existing obsolete originals
 - it will loop over all the possibly_added strings, and will try find
 similar strings in the comparison array
 - If it finds a match, then it marks that original as active, and its
 existing translation as fuzzy
 - No match? it's a new original that gets added

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


More information about the glotpress-updates mailing list