Updated: Comment #N

Problem/Motivation

There is a module https://drupal.org/project/media_translation which extends i18n to translate attached files and media.

Proposed resolution

Provide new plugin or extend existing i18n.

Remaining tasks

User interface changes

API changes

Original report by @username

Original post:

I just made a fresh installation, and noticed that the module now also can handel translations of media files made by the media translation module ( https://drupal.org/project/media_translation )

That's great! But when I clicked on it I got this error:

Notice: Undefined index: string translation in tmgmt_i18n_string_get_strings() (line 43 of /var/www/sites/all/modules/tmgmt/sources/i18n_string/tmgmt_i18n_string.module).

Comments

blueminds’s picture

Title: Media translation source, undefined index » Provide support for file and media_type
Category: Bug report » Feature request
Issue summary: View changes
StatusFileSize
new809 bytes

This is a feature request as there is no support for File Type or Media Translation. Provided patch with quick fix - to not display links to translate those mentioned.

berdir’s picture

We can solve this in a bit more generic way.

i18n_object_info() is a bit more generic than we currently use it, string translation is just one use case.

So, what we're interested in is only i18n_objects that have the 'string translation' key set, those two don't.

miro_dietiker’s picture

Priority: Normal » Minor

This module / feature has a low usage, thus setting priority accordingly.

berdir’s picture

Title: Provide support for file and media_type » I18n object groups that don't define string translation results in notices
Category: Feature request » Bug report
Priority: Minor » Normal

Support for those modules would be a new feature request anyway.

This is about the bug that we're not filtering out i18n object groups that don't use string translation.

So changing back to a bug report and normal prio.

blueminds’s picture

Status: Active » Needs review
StatusFileSize
new703 bytes

something like this?

berdir’s picture

Status: Needs review » Fixed

Yes, added a comment and committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.