Menu

#1328 Joomla language files support

5.5
closed-fixed
Joomla (1)
5
2021-05-19
2017-08-18
Alex Feel
No

I suggest adding support for Joomla language files. In fact, now there is support for files of the format key = string, but the Joomla language files format is slightly different, because language files contains quotes: key = "string". For this reason, when translating, care must be taken not to accidentally delete these quotes, because they are displayed as symbols for translation. In addition, some key = "string" strings that contain several sentences, for example, COM_KEY_CONSTANT = "My value is. I like it." are divided into two separate lines in OmegaT. Perhaps this can be solved by adding a new file filter?

Useful links:

I've attached sample Joomla language file.

1 Attachments

Discussion

  • Didier Briel

    Didier Briel - 2017-08-22

    for example, COM_KEY_CONSTANT = "My value is. I like it." are divided into two separate lines in OmegaT.

    If you don't want that to happen, simply do not check Enable Sentence-level Segmenting in the project properties.

    Didier

     
  • Didier Briel

    Didier Briel - 2017-08-22

    As a workaround for quotes, you can either put them in separate segments with two segmentation rules:
    Break
    Pattern before: "
    Pattern after: nothing

    Break
    Pattern before: nothing
    Pattern after: "

    Or you can protect them as tags. In Options > Preferences > Tag processing, enter \" in "Regular expression for custom tags".

    Didier

     
  • Alex Feel

    Alex Feel - 2017-08-25

    Thank you! It helped. I'm new with OmegaT so I didn't know all the features. But is there any hope that in the future there will be an opportunity to hide quotes in the Joomla language files when translating, as it is done in the Transifex online service?

     

    Last edit: Alex Feel 2017-08-25
    • Didier Briel

      Didier Briel - 2017-08-25

      I'm not saying it will not be done in the future.
      But, as far as I know, there is no current plan to develop that filter.

      Didier

       
  • Aaron Madlon-Kay

    • status: open --> open-fixed
    • assigned_to: Hiroshi Miura
    • Group: 4.1 --> 5.5
     
  • Aaron Madlon-Kay

    Implemented on master in [19fe0a].

     

    Related

    Commit: [19fe0a]

  • Aaron Madlon-Kay

    • status: open-fixed --> closed-fixed
     
  • Aaron Madlon-Kay

    Released in OmegaT 5.5.0.

     

Log in to post a comment.

MongoDB Logo MongoDB