-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix: Traduccion Club ONGs - Implementacion ClubsTrait
- Loading branch information
elyambay
committed
Oct 24, 2018
1 parent
961e4a5
commit b49e5ba
Showing
5 changed files
with
79 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
Namespace App\Traits; | ||
|
||
trait ClubsTrait{ | ||
public function club($rubro, $getImagen = null){ | ||
if(app()->getLocale() == "en"){ | ||
switch ($rubro) { | ||
case 1: | ||
$imagen = "images/caratula-bancos.PNG"; | ||
$club = "Banking Club"; | ||
break; | ||
case 2: | ||
$imagen = "images/caratula-agro-en.PNG"; | ||
$club = "Agribusiness Club"; | ||
break; | ||
case 3: | ||
$imagen = "images/caratula-autos.PNG"; | ||
$club = 'Car and Machine Club'; | ||
break; | ||
case 4: | ||
$imagen = "images/caratula-naviera-en.PNG"; | ||
$club = "Shipping Club"; | ||
break; | ||
case 6: | ||
$imagen = "images/caratula-bancos.PNG"; | ||
$club = "Club: Survey of Non-Governmental Organizations"; | ||
break; | ||
default: | ||
$imagen = "images/caratula-bancos.PNG"; | ||
$club = "de Bancos"; | ||
break; | ||
} | ||
}else{ | ||
switch ($rubro) { | ||
case 1: | ||
$imagen = "images/caratula-bancos.PNG"; | ||
$club = "Club - Bancos de Paraguay"; | ||
break; | ||
case 2: | ||
$imagen = "images/caratula-agro.PNG"; | ||
$club = "Club - Empresas de Agronegocios - Paraguay"; | ||
break; | ||
case 3: | ||
$imagen = "images/caratula-autos.PNG"; | ||
$club = 'Club - Empresas del Sector Automotriz, Maquinarias y Utilitarios'; | ||
break; | ||
case 4: | ||
$imagen = "images/caratula-naviera.PNG"; | ||
$club = "Club - Navieras de Paraguay"; | ||
break; | ||
case 6: | ||
$imagen = "images/caratula-bancos.PNG"; | ||
$club = "Club - Encuesta de Organizaciones No Gubernamentales"; | ||
break; | ||
default: | ||
$imagen = "images/caratula-bancos.PNG"; | ||
$club = "Club de Bancos"; | ||
break; | ||
} | ||
} | ||
if($getImagen){ | ||
return $imagen; | ||
} | ||
return $club; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters