Needs work
Project:
Localization server
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2010 at 19:00 UTC
Updated:
4 Jan 2013 at 15:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
gábor hojtsySo that would be a submission function to replace Windows line ending with Unix line endings? How can we do an update function for this in a sensible way?
Comment #2
droplet commentedhere is my patch. does it safe ?
and then require apply it into _l10n_community_import_one_string as well
Comment #3
gábor hojtsyIs this the reason for #999092: Import duplicate check broken in fact?
Comment #4
droplet commentedgreat, we can adding to l10n_community_trim().
Comment #5
good_man commentedExtra tab, you should run your patch on your patch :)
Powered by Dreditor.
Comment #6
droplet commented:)
Comment #7
good_man commentedOkay nice simple patch let's wait Gabor.
Comment #8
gábor hojtsyLooks good. What is going to happen to existing translations which might be wrong?
Comment #9
good_man commentedWe better need to trim them once and for all, just once. Then will leave it to this patch to filter the new ones.
Comment #10
droplet commentedmaybe hook_update, replace all of them once.
Comment #11
droplet commentedComment #12
good_man commentedAwesome! just a minor issue:
TABS :) replace with spaces.
Powered by Dreditor.
Comment #13
droplet commented#11 removed the TABS
Comment #14
good_man commentedI think it's ready.
Comment #15
SebCorbin commentedPatch #11 applied, everything is ok for me.
Comment #16
SebCorbin commentedI was wondering though, what about the possible duplicates generated by the update?
Comment #17
droplet commentedumm. it results two identical strings. but would not broken l10n_server functional or bring conflict error.
from LDO DB(snapshot-125, 04-10-2011), it has 3804 rows contains '\r\n' line breaks and 101 rows duplicated strings (around 10 strings have 3~7 duplicates result.)
**
Manually way to kill these 101 rows string better than write a update function to solve it I though..
Seems like FR is the most active group to use UI submitting strings
Comment #18
SebCorbin commentedWe need to add the duplicate removal to the update function, as this module is used on other sites.
l10n_community.install from #11 is also missing a new line at end of file