Closed (fixed)
Project:
Drupal Commons
Version:
7.x-3.2
Component:
Installer
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
15 Feb 2013 at 08:08 UTC
Updated:
25 Jun 2013 at 18:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
slowflyer commentedCurrently the variables seemed not to be used at all...
The text:
Welcome to our community
Share your thoughts, find answers to your questions.
Is hardcoded in a panel pane.
Comment #2
japerryCurrently commons only supports english, and we bypass the language selector upon install. For multilingual support, we would have to do a more indepth audit of the whole installer, which has lots of hardcoded english content.
Comment #3
slowflyer commentedI think that's not an issue of the installer...
The installer can stay in english and produce an english version ...
But if yout start making Commons multilingual after installation, it should be easier to do...
f.e. writing the welcome text to a node instead of a non translatable panel pane, would make it more easy.
Comment #4
jpontani commentedAttached a patch that wraps the default values for variable_get in t().
Comment #5
slowflyer commentedThe patch #4 seems not to solve the issue ...
Comment #6
jpontani commentedThe variables are used in the panels config, and are set upon installation.
Comment #7
ezra-g commentedComment #8
ezra-g commentedAs I revisit this issue it seems the ultimate solution would be for the homepage text to be a piece of featurized content with proper translation.
However, t() seems like an acceptable stopgap given our future plans to provide featurized content, such as demo text.
Comment #9
ezra-g commentedComment #10
devin carlson commentedVariable translation can be taken care of by declaring variables to the Variable module (a dependency of the Internationalization module).
The attached patch declares all of the Commons Site Homepage variables.
Comment #11
devin carlson commentedTested #10 by setting up a simple English + French Commons site and attempting to translate the homepage text using variable translation.
Comment #12
devin carlson commentedCommitted #10 to Commons Site Homepage 7.x-3.x.
http://drupalcode.org/project/commons_site_homepage.git/commit/d5233f1