EDIT: Issueshttps://dev.e-taxonomy.eu/redmine/https://dev.e-taxonomy.eu/redmine/redmine/favicon.ico?14691914852016-06-23T12:14:03ZEDIT Project Management
Redmine feature request #5914 (New): provide drupal installation profile for multilingual siteshttps://dev.e-taxonomy.eu/redmine/issues/59142016-06-23T12:14:03ZAndreas Kohlbecker
<p>requires steps:</p>
<p><strong>1. install the required modules</strong> </p>
<p><strong>IMPORTANT*: The translations supplied with the cdm_dataportal module will only be imported during the module installation if the according languages are set up *before</strong> installing the module!!!!</p>
<ol>
<li><p>enable language and i18n & i10N modules (see <a class="issue tracker-5 status-1 priority-11 priority-default child" title="feature request: enable required i18n modules by default (New)" href="https://dev.e-taxonomy.eu/redmine/issues/5913">#5913</a> for details)</p></li>
<li><p>enable all languages provided with the cdm_dataportal module.</p></li>
<li><p>import the translations: </p></li>
</ol>
<p>first install and enable l10n_upate</p>
<pre>drush -l "<drupal-site>" en l10n_update
</pre>
<p>then import the translations</p>
<pre>drush l10n-update-refresh
drush l10n-update --languages=...
</pre>
<ol>
<li>enable the cdm_dataportal module</li>
</ol>
<p>Alternatively we could provide easy to use functions that allow portal maintainers to activate languages and to automatically import the according translations. </p>
<p><strong>2. setup the language switcher</strong> </p>
<ol>
<li><p>place 'Language switcher' block in reqion 'navigation bar' and set the block title to ''</p></li>
<li><p>add the following css rules to the 'CDM DataPortal base theme' 'User defined styles':</p></li>
</ol>
<pre>#block-locale-language {
margin-top: -2.8em;
float: right;
}
ul.language-switcher-locale-session {
padding-right: 5px;
}
ul.language-switcher-locale-session li {
display: inline;
}
ul.language-switcher-locale-session li a:link,
ul.language-switcher-locale-session li a:visited {
color: white;
}
</pre>
<p><strong>3. Configure content types</strong> </p>
<p>This is recommended for the content types <u>article</u> and <u>Basic page</u>:</p>
<ol>
<li>in admin/structure/types/manage/{content_type} : </li>
</ol>
<p>a. Publishing options > Multilingual support: (x)Enabled, with translation </p>
<p>a. submit form</p>
<p>a. Multilingual settings > Extended language options: <a class="wiki-page new" href="https://dev.e-taxonomy.eu/redmine/projects/edit/wiki/X%5D">Set current language as default for new content & [x</a> Require language (Do not allow Language Neutral). </p>
<ol>
<li>admin/structure/types/manage/{content_type}/display :</li>
</ol>
<p>a. set <u>Language</u> to <u>Hidden</u></p>
<ol>
<li>go to <code>/node/1/translate</code> and click <u>add translation</u> or directly go to <code>/node/add/page?translation=1&target=es}}. This will create {{{node/2</code> as spanish translation of <code>node/1</code> </li>
</ol>
<p><strong>5. Site set up</strong> </p>
<ol>
<li><p>go to <code>/admin/config/system/site-information?variable_realm_key_language=es</code> and set the spanish <u>Default front page: [node/2]</u> </p></li>
<li><p>if you need to tranlate the site name, go to the same page as above and set the <u>Site name</u></p></li>
<li><p>multilingual front page variable : <code>admin/config/regional/i18n/variable</code> <u>Site information</u> > <u>[x] Default front page</u></p></li>
</ol>
<p><strong>6. Set up menus</strong> </p>
<ol>
<li><p>in <code>admin/structure/menu/manage/main-menu/edit</code> Multilingual options >> Translation mode set <u>(x) Fixed Language.</u> and choose Language <u>English</u></p></li>
<li><p>got to <code>admin/config/regional/translate/i18n_string</code> check <u><a class="wiki-page new" href="https://dev.e-taxonomy.eu/redmine/projects/edit/wiki/X%5D">Menu</u> and <u>[x</a> Clean up left over strings</u> and submit the form</p></li>
<li><p>Now a new Menu items can be added. The language of the menu item is determined by the node language it is pointing to. </p></li>
</ol>
<p><strong>7. Set permissions</strong> </p>
<p>Add permissions to @CDM admin@:</p>
<pre>administer content translations
administer languages
translate content
translate interface
translate user-defined strings
</pre>
<hr>
<p><strong>Creating Profiles</strong> </p>
<ul>
<li><p><a href="https://www.drupal.org/node/1852008" class="external">How to Create a Drupal Installation Profile with Profiler and Profiler Builder</a></p>
<ul>
<li> <a href="https://www.drupal.org/project/profiler" class="external">Profiler</a></li>
</ul></li>
<li><p><a href="https://evolvingweb.ca/blog/creating-multilingual-install-profile-drupal" class="external">Creating a Multilingual Install Profile for Drupal</a></p></li>
<li><p>drush make</p>
<ul>
<li><a href="https://www.drupal.org/node/1476014" class="external">Managing Drush make files for an installation profile</a></li>
<li><a href="https://www.drupal.org/node/1006620" class="external">Drush Make theory for happy profile development</a></li>
</ul></li>
</ul>
<p><strong>Examples and Templates</strong> </p>
<p>The drupal module <a href="https://www.drupal.org/project/l10n_install" class="external">l10n_install</a> could serve as template for our own installation profile. Source code for Drupal 7 is found here: <a href="http://cgit.drupalcode.org/l10n_install/tree/?h=7.x-1.x">http://cgit.drupalcode.org/l10n_install/tree/?h=7.x-1.x</a></p>
feature request #5913 (New): enable required i18n modules by defaulthttps://dev.e-taxonomy.eu/redmine/issues/59132016-06-23T09:55:40ZAndreas Kohlbecker
<p>modules to download:</p>
<pre>languageicons
i18n
l10n_update
imce
imce_wysiwyg
wysiwyg
admin_menu
</pre>
<p>modules to be enabled in during installation in the CDM_Portal profile.</p>
<pre>languageicons
i18n
i18n_menu
i18n_node
i18n_string
i18n_translation
i18n_variable
l10n_update
</pre>
<p>additional modules not related to i18n:</p>
<pre>imce
imce_wysiwyg
wysiwyg
admin_menu
admin_menu_toolbar
</pre>
<p>Enabling of these modules should also happen during the update to the next release.</p>
<hr>
<p>see also <a class="wiki-page" href="https://dev.e-taxonomy.eu/redmine/projects/edit/wiki/CdmDataportalMultilingual">CdmDataportalMultilingual</a></p>
feature request #5847 (New): translation, internationalization of advanced Search links & Search ...https://dev.e-taxonomy.eu/redmine/issues/58472016-05-31T11:09:39ZAndreas Kohlbecker
<p>This is a split off from #5665 </p>
<p>Advanced Search links & Search page Titles:</p>
<ul>
<li><p>The secondary links in the advanced search are cached, so the first language with which the page is called determined the text of the tabs. The menu entries must be interationialized</p>
<ul>
<li>also the page titles must be i18nizd ?</li>
<li>see <a href="https://groups.drupal.org/node/152929" class="external">How to make a Drupal 7 module i18n enabled</a> or <a href="https://www.drupal.org/node/140311" class="external"><strong>Menu item title and description callbacks, localization</strong></a> </li>
</ul></li>
</ul>