Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit e2c4045

Browse files
author
Charles Ma
committed
BUG: fixed bug #176 Removed flags
1 parent a535a3c commit e2c4045

File tree

6 files changed

+42
-16
lines changed

6 files changed

+42
-16
lines changed

core/controllers/InstallController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ function step3Action()
247247
$formArray['description']->setValue($applicationConfig['global']['application.description']);
248248
$formArray['smartoptimizer']->setValue($applicationConfig['global']['smartoptimizer']);
249249
$formArray['timezone']->setValue($applicationConfig['global']['default.timezone']);
250-
$formArray['process']->setValue($applicationConfig['global']['processing']);
251250

252251
$assetstrores = $this->Assetstore->getAll();
253252

@@ -272,7 +271,6 @@ function step3Action()
272271
$applicationConfig['global']['defaultassetstore.id'] = $assetstrores[0]->getKey();
273272
$applicationConfig['global']['smartoptimizer'] = $form->getValue('smartoptimizer');
274273
$applicationConfig['global']['default.timezone'] = $form->getValue('timezone');
275-
$applicationConfig['global']['processing'] = $form->getValue('process');
276274

277275
$this->Component->Utility->createInitFile(BASE_PATH.'/core/configs/application.local.ini', $applicationConfig);
278276
$this->_redirect("/admin?checkRecentItem=true#tabs-modules");

core/layouts/layout.phtml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,40 @@ echo $this->doctype()
130130
<a href="#" > <?= $this->t('Help') ?></a>
131131
</li>
132132
<li>
133-
<?php if($this->lang=='fr')
134-
{
135-
echo '<a href="'.$this->webroot.'?lang=en"><img src="'.$this->coreWebroot.'/public/images/icons/english.png" alt="English"/>';
136-
}
137-
else
138-
{
139-
echo '<a href="'.$this->webroot.'?lang=fr"><img src="'.$this->coreWebroot.'/public/images/icons/french.png" alt="French"/>';
140-
}
133+
134+
<a href="#" style="margin-right: 20px">
135+
136+
<?php
137+
echo $this->t('My Language');
141138
?>
142-
</a>
139+
<img class="languageIcon" src="<?php echo $this->coreWebroot?>/public/images/icons/language.png" alt ="" />
140+
</a>
141+
<ul>
142+
<li>
143+
<?php
144+
if($this->lang=='en')
145+
{
146+
echo '<a href="#"><b>English</b></a>';
147+
}
148+
else
149+
{
150+
echo '<a href="'.$this->webroot.'?lang=en">English</a>';
151+
}
152+
?>
153+
</li>
154+
<li>
155+
<?php
156+
if($this->lang=='fr')
157+
{
158+
echo '<a href="#"><b>Français</b></a>';
159+
}
160+
else
161+
{
162+
echo '<a href="'.$this->webroot.'?lang=fr">Français</a>';
163+
}
164+
?>
165+
</li>
166+
</ul>
143167
</li>
144168
</ul>
145169
</div>

core/public/css/layout/main.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,13 @@ div.TopbarRight img.arrowUser{
549549
position:relative;
550550
top:1px;
551551
}
552+
553+
div.TopbarRight img.languageIcon{
554+
position: absolute;
555+
right: 0px;
556+
top: 0px;
557+
}
558+
552559
div.TopbarRight li li {
553560
display:block;
554561
float:none;
3.49 KB
Loading

core/translation/fr-main.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,5 @@ Add in group;Ajouter au groupe
251251
Set as moderator;Promouvoir en tant que mod�rateur
252252
Remove from community;Retirer de la communaut�
253253
Remove from group;Retirer du groupe
254-
Add Metadata;Ajouter M�tadonn�e
254+
Add Metadata;Ajouter M�tadonn�e
255+
My Language;Ma Langue

core/views/install/step3.phtml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ PURPOSE. See the above copyright notices for more information.
4141
<div class='installEnvironment'>
4242
<label for='environment'>Environment</label>
4343
{$this->form['environment']}
44-
</div>
45-
<div class='installProcess'>
46-
<label for='process'>Select process type</label>
47-
{$this->form['process']}
4844
</div>
4945
<div class='installTimezone'>
5046
<label for='environment'>Timezone</label>

0 commit comments

Comments
 (0)