Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[babel-dev] Script to import translated strings

I've recently committed my 'import' script; the one I use to import large contributions into our database. This is the code that is used to align the file names and the string names, then it imports strings only if they have never been translated to the import value -- meaning it won't overwrite an entry that someone has fixed/updated post-import.

Additionally, when I process an import, I specify a target project/version to avoid importing strings that otherwise align, but are out of context. This really should not happen anyway, but it is a safety net.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.babel/server/classes/export/import_translation_zip.php?root=Technology_Project&view=markup

The code is a bit rough, but it works reliably.

Denis

--
Denis Roy
Manager, IT Infrastructure
Eclipse Foundation, Inc.  --  http://www.eclipse.org/
Office: 613.224.9461 x224 (Eastern time)
Cell: 819.210.6481
denis.roy@xxxxxxxxxxx



Back to the top