Recent

Author Topic: In place Translation editor for text or caption properties ...  (Read 2028 times)

patyi

  • Full Member
  • ***
  • Posts: 169
The goal is to handle original and translated text in place, in the Lazarus IDE.

I was wondering if it would be possible to spot the translation of the components caption or text properties you enter.
Need a caption or text property editor is like working as a po-editor. This editor would be able to save the resource strings in the po files into the traditional way, but later in the Lazarus IDE, if I change some caption or text properties in a particular form, writes over the old one and update the translation in the po files. Normally other resource strings would remains working as usual.

Sorry for my English ...

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7501
Re: In place Translation editor for text or caption properties ...
« Reply #1 on: March 22, 2014, 09:56:10 pm »
gettext mostly works with the text as key, so afaik no, that is not possible.

Some editors and tools do keep source location (file+linenumber) and/or  property (form.component.property) name syntax in comments in the .po. It might be possible to build something on that.

I mostly used dxgettext and GORM though, not lazarus and poedit.