Ticket #92 (new enhancement)

Opened 20 months ago

Last modified 14 months ago

Show references without links when there is no source file URL

Reported by: dimadin Owned by:
Priority: normal Milestone: 1.0
Component: interface Version:
Keywords: has-patch Cc: tracs@…

Description

Some projects are not public so we can't have links that point to source file. In those cases, we can only show file name and line without link since it could provide some context to translator.

Current example of usage is with translations of wpcom and gravatar. Although whole source of wpcom is not public, most parts of it (WP, bbPress, themes, plugins) are, so translators could see where string is used and see source file via detour. On gravatar, file names are descriptive and sometimes match URL structure so translator could guess where to find string in usage.

To add this functionality, function references in gp-template/helper-functions.php needs to be edited.

Attachments

references_without_urls.patch Download (747 bytes) - added by dimadin 14 months ago.
references_without_urls_2.patch Download (861 bytes) - added by dimadin 14 months ago.

Change History

  • Milestone set to 1.0
  • Keywords has-patch added

I have to patches for this. Difference between this is that they have different hooks. I made one then I thought about better solution.

Since some project can be proprietary so admins might not want to reveal file names, I added hook to override it.

Note: See TracTickets for help on using tickets.