You are here

README.txt in File Entity (fieldable files) 7.2

Same filename and directory in other branches
  1. 7.3 README.txt
If you want to translate file entities the Drupal 7 entity_translation module needs to be enabled.

Step 1) download and enable the file_entity module
Step 2) download and enable the entity_translation module
Step 3) enable the locale module and add your additional languages here:
/admin/config/regional/language , be sure to configure language detection as well, I prefer prefix, configure the prefix for all enabled languages.

Step 4)
go to the /admin/config/regional/entity_translation
page and check off the file entity type underneith "Translatable entity types"
then save, after you have done this, translation options for each enabled language will show up if you also enable the field translation option in the structure of your file entity type for 'managed fields' , so for instance alt field and the title field would be a good thing to enable translatable field option for.

Step 5) enable field translation on alt and title fields for file entity image type go to : /admin/structure/file-types/manage/image/fields

Step 6) Once you do this, you will get translation options for the translatable fields that have translatable field option enabled.
so to if you've correctly configured things you'll be able to add the translation in this page here: /file/1/translate

More translation usage with views:
Translate one file entity alt and title fields

and then create a view of unformated fields with the article type
add the image field to the view
save the view

hover your mouse over the image in the default language (most likely english /en) , the default language hover should show the image title in that language
switch language, hover the mouse over the image and this language (in my case French /fr ) the hover should display the image title in french.

File

README.txt
View source
  1. If you want to translate file entities the Drupal 7 entity_translation module needs to be enabled.
  2. Step 1) download and enable the file_entity module
  3. Step 2) download and enable the entity_translation module
  4. Step 3) enable the locale module and add your additional languages here:
  5. /admin/config/regional/language , be sure to configure language detection as well, I prefer prefix, configure the prefix for all enabled languages.
  6. Step 4)
  7. go to the /admin/config/regional/entity_translation
  8. page and check off the file entity type underneith "Translatable entity types"
  9. then save, after you have done this, translation options for each enabled language will show up if you also enable the field translation option in the structure of your file entity type for 'managed fields' , so for instance alt field and the title field would be a good thing to enable translatable field option for.
  10. Step 5) enable field translation on alt and title fields for file entity image type go to : /admin/structure/file-types/manage/image/fields
  11. Step 6) Once you do this, you will get translation options for the translatable fields that have translatable field option enabled.
  12. so to if you've correctly configured things you'll be able to add the translation in this page here: /file/1/translate
  13. More translation usage with views:
  14. Translate one file entity alt and title fields
  15. and then create a view of unformated fields with the article type
  16. add the image field to the view
  17. save the view
  18. hover your mouse over the image in the default language (most likely english /en) , the default language hover should show the image title in that language
  19. switch language, hover the mouse over the image and this language (in my case French /fr ) the hover should display the image title in french.