| Summary: | [EasyHack] Export/Import .src comments to .sdf/.po format | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Björn Michaelsen <bjoern.michaelsen> |
| Component: | LibreOffice | Assignee: | Andras Timar <timar74> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | robinson.libreoffice, timar74 |
| Priority: | medium | Keywords: | easyHack, skillCpp |
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
Björn Michaelsen
2011-07-28 07:42:31 UTC
I think correct link is this: http://opengrok.libreoffice.org/xref/core/cui/source/options/optsave.src#234 @Andras: If this EasyHack is still valid, could you mentor or reasign to better suited mentor? @Björn: yes, it is still valid. http://cgit.freedesktop.org/libreoffice/core/commit/?id=3f00358bfdad0a18fe053c3d154f74e3aa6afba9 This enables export of comments to en-US sdf file. With the patch below, oo2po writes the x-comment to a developer comment in pot files. Problem solved.
--- /home/timar/src/translate-toolkit-1.9.0/translate/convert/oo2po.py 2010-08-23 08:45:46.000000000 +0200
+++ /usr/local/lib/python2.7/site-packages/translate/convert/oo2po.py 2012-04-14 16:14:42.305234337 +0200
@@ -75,10 +75,9 @@
else:
# if the language doesn't exist, the translation is missing ... so make it blank
part2 = oo.ooline()
- if "x-comment" in theoo.languages:
- translators_comment = theoo.languages["x-comment"]
- else:
- translators_comment = oo.ooline()
+ line = oo.ooline()
+ line.text = part1.getparts()[11]
+ translators_comment = line
key = oo.makekey(part1.getkey(), self.long_keys)
unitlist = []
for subkey in ("text", "quickhelptext", "title"):
Migrating Whiteboard tags to Keywords: (EasyHack SkillCpp) [NinjaEdit] |