It would be great if there could be multilingual support for some variables. I'm thinking in particular for the service_links_label_in_node variable.

This could best be provided via the variable module and it's hook_variable_info.

CommentFileSizeAuthor
#1 service_links-multilingual_variable_support.patch960 bytesAnonymous (not verified)

Comments

Anonymous’s picture

Added a patch to make the label translatable. Easy to extend to other variables.

TheCrow’s picture

Anonymous’s picture

That is probably a good Drupal 6 solution.

The variable module (which is an api module) only exists in Drupal 7. We should use it so (from project page):

So other modules can know about your module's variables and they can be translated, exported, etc.
You'll get automatic variable edit forms, tokens, access control and uninstall for free

It's created by Jose Reyero. In Drupal 7 i18n requires the variable module so it's the way to go...

simon georges’s picture

Status: Active » Needs work

The files[] directive in .info does nothing if the referenced files does not contain any class or interface, in that case, it is not necessary (see #1914074: Remove useless files[] directive from .info files that takes care of removing the others ;-)).

Otherwise, this seems legit.

TheCrow’s picture

Status: Needs work » Fixed

Reworked and committed

Status: Fixed » Closed (fixed)

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