Description

This module adds the ability to translate:

  • Panels page title
  • Panels pane titles

Right now there is no other module that provides this functionality, but you could implement theme_preprocess_panel_pane in your theme to get panels pane titles translated as explained in the issue related (see ahead).

This is not the best way to resolve this problem but while this functionality it's not in Panels this is a good option.

The translation are handled and inserted with Core's Translation interface.

Other modules providing same functionality

I haven't found a similar module.

Drupal version

It is for Drupal 7, port to Drupal 6 will be considered if needed.

Sandbox url

Link to my sandbox.

Git instructions

git clone --branch master git.drupal.org:sandbox/jherencia/1280726.git panels_title_i18n

Comments

jherencia’s picture

Issue summary: View changes

Minor changes.

jherencia’s picture

Issue summary: View changes

Minor correction.

MGParisi’s picture

Have you filed an issue in the panels about this not being translatable?

jherencia’s picture

sreynen’s picture

Status: Needs review » Needs work

Hi jherencia,

Could you turn this into a patch for Panels and post it to that issue? It sounds like Panels maintainers want to include this functionality and you have a way to do it, so putting your work into Panels seems like the best solution.

sreynen’s picture

Please set this back to "needs review" when you respond to make sure someone sees it.

klausi’s picture

Status: Needs work » Closed (duplicate)

This user has been approved already.

jherencia’s picture

@sreynen I think Panels mantainers want to provide a better way to handle title translations. I'm going to try to contact them and ask if they like this method till a better one is implemented.

See: #1179034: Translatable panel titles: Implement i18n_strings

jherencia’s picture

Issue summary: View changes

Fixed git instructions.

kristen pol’s picture

I looked at the sandbox code and the problem is that it is using the t() function for the title. The t() function should be used for hard-coded strings and not user-defined strings.

I see the patch at:

http://drupal.org/node/1179034

is doing the right thing by implementing the i18n_string API. Best to help out with getting that patch tested and reviewed so it gets accepted ASAP.

Kristen

alexiscott’s picture

Understood that we are waiting until an official version. But here's a temporary patch for Drupal 6.

alexiscott’s picture

Issue summary: View changes

fix typo

avpaderno’s picture

Title: Panels title i18n » [D7] Panels title i18n
Issue summary: View changes
Status: Closed (duplicate) » Closed (won't fix)