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
Comment #0.0
jherencia commentedMinor changes.
Comment #0.1
jherencia commentedMinor correction.
Comment #1
MGParisi commentedHave you filed an issue in the panels about this not being translatable?
Comment #2
jherencia commentedYes, here it is #1179034: Translatable panel titles: Implement i18n_strings.
Comment #3
sreynen commentedHi 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.
Comment #4
sreynen commentedPlease set this back to "needs review" when you respond to make sure someone sees it.
Comment #5
klausiThis user has been approved already.
Comment #6
jherencia commented@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
Comment #6.0
jherencia commentedFixed git instructions.
Comment #7
kristen polI looked at the sandbox code and the problem is that it is using the
t()function for the title. Thet()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
Comment #8
alexiscott commentedUnderstood that we are waiting until an official version. But here's a temporary patch for Drupal 6.
Comment #8.0
alexiscott commentedfix typo
Comment #9
avpaderno