-
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.
- Loading branch information
elyambay
committed
Sep 11, 2018
1 parent
5295a1d
commit 23d3606
Showing
46 changed files
with
663 additions
and
273 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use Illuminate\Support\Facades\Lang; | ||
use Session; | ||
|
||
|
||
class LanguageController extends Controller | ||
{ | ||
public function switchLang($lang){ | ||
|
||
if (array_key_exists($lang, config('languages'))) { | ||
session()->put('applocale', $lang); | ||
} | ||
return redirect()->back(); | ||
} | ||
|
||
public function switchLangReport($lang){ | ||
if (array_key_exists($lang, config('languages'))) { | ||
session()->put('applocale', $lang); | ||
} | ||
return "true"; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,30 @@ | ||
<?php | ||
|
||
namespace App\Http\Middleware; | ||
|
||
use Closure; | ||
use Session; | ||
use Config; | ||
use App; | ||
|
||
|
||
class Localization | ||
{ | ||
/** | ||
* Handle an incoming request. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \Closure $next | ||
* @return mixed | ||
*/ | ||
public function handle($request, Closure $next) | ||
{ | ||
if (Session::has('applocale') AND array_key_exists(Session::get('applocale'), Config::get('languages'))) { | ||
App::setLocale(Session::get('applocale')); | ||
} | ||
else { // This is optional as Laravel will automatically set the fallback language if there is none specified | ||
App::setLocale(Config::get('app.fallback_locale')); | ||
} | ||
return $next($request); | ||
} | ||
} |
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,5 @@ | ||
<?php | ||
return [ | ||
'en' => 'English', | ||
'es' => 'Español', | ||
]; |
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,11 @@ | ||
|
||
.language-switch-tooltip { | ||
position: fixed; | ||
right: 85px; | ||
padding:0px 0.5rem; | ||
text-align: right; | ||
background-color: #323232; | ||
border-radius: 2px; | ||
color: #FFF; | ||
width:auto; | ||
} |
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,7 @@ | ||
<?php | ||
return [ | ||
"breadcrumb_report" => "Report", | ||
"breadcrumb_home" => "Home", | ||
"breadcrumb_results"=> "Results", | ||
"title_practices" => "Práctices", | ||
]; |
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,7 @@ | ||
<?php | ||
return [ | ||
"breadcrumb_report" => "Report", | ||
"breadcrumb_home" => "Home", | ||
"title_list" => "List of Indicators", | ||
"button_sample" => "Universe Composition", | ||
]; |
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,11 @@ | ||
<?php | ||
return [ | ||
"button_new_position" => "Position", | ||
"button_review" => "Review", | ||
"table_description" => "Description", | ||
"table_salary" => "Salary", | ||
"table_options" => "Options", | ||
"label_list" => "List of Positions", | ||
"label_greeting" => "Greetings", | ||
"first_time_p" => "This is the first time you participate on this study. Please create a new position", | ||
]; |
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,11 @@ | ||
<?php | ||
return[ | ||
"label_description" => "Description", | ||
"label_club" => "Club", | ||
"label_segment" => "Segment", | ||
"label_branches" => "Number of Branches", | ||
"label_headcount" => "Number of Employees", | ||
"label_origin" => "Origin", | ||
"label_edit" => "Edit Organization", | ||
"button_save" => "Save", | ||
]; |
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,13 @@ | ||
<?php | ||
return[ | ||
"table_description" => "Description", | ||
"table_club" => "Club", | ||
"table_segment" => "Segment", | ||
"table_branches" => "No. Branches", | ||
"table_headcount" => "Head Count", | ||
"table_origin" => "Origin", | ||
"button_list" => "List", | ||
"button_edit" => "Edit", | ||
"button_report" => "Report", | ||
"button_done" => "Done", | ||
]; |
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,6 @@ | ||
<?php | ||
return [ | ||
"menu_panel" => "Panel", | ||
"menu_complete" => "Complete", | ||
"menu_report" => "Report", | ||
]; |
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,10 @@ | ||
<?php | ||
return [ | ||
"label_filter" => "Filter Position", | ||
"label_level" => "Level", | ||
"label_position" => "Position", | ||
"label_description" => "Description of Position", | ||
"button_report" => "Report", | ||
"select_option" => "Select a position", | ||
"select_level" => "Select a level", | ||
]; |
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,10 @@ | ||
<?php | ||
return [ | ||
"menu_panel" => "Panel", | ||
"menu_concepts" => "Thecnical Concepts", | ||
"menu_methodology" => "Methodology", | ||
"menu_sheet" => "Thecnical Sheet", | ||
"menu_indicators" => "Indicators by Position", | ||
"menu_search" => "Search by Position", | ||
"menu_universe" => "Universe", | ||
]; |
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,49 @@ | ||
<?php | ||
return [ | ||
"button_currency_gs" => "Convert to GS.", | ||
"button_currency_us" => "Convert to U\$D", | ||
"p_currency_gs" => "Values shown in thousands of Guaraníes", | ||
"p_currency_us" => "Values shown in American Dollars", | ||
"label_tab_universe" => "All Participants", | ||
"label_tab_national" => "National", | ||
"label_tab_international" => "International", | ||
"table_concepts" => "Concepts", | ||
"table_cases" => "Number of Cases", | ||
"table_occupants" => "Number of Ocuppants", | ||
"table_min" => "Minimum", | ||
"table_perc25" => "25th Percentile", | ||
"table_average" => "Average", | ||
"table_median" => "Median", | ||
"table_perc75" => "75th Percentile", | ||
"table_max" => "Maximum", | ||
"table_company" => "Your Company", | ||
"table_avg_compare" => "Compare to Average", | ||
"table_median_compare" => "Compare to Median", | ||
"table_perc75_compare" => "Compare to 75th Perc.", | ||
"table_max_compare" => "Compare to Maximum", | ||
"title_universe" => "All Participants", | ||
"title_national" => "National", | ||
"title_international" => "International", | ||
"chart_salary" => "Monthly Base Salary", | ||
"chart_annual_cash" => "Annual Guaranted Cash", | ||
"chart_total_comp" => "Annual Total Compensation", | ||
"concept_salary" => "Monthly Base Salary", | ||
"concept_annual_salary" => "Annual Base Salary", | ||
"concept_annual_gratif." => "Annual Fixed Additional", | ||
"concept_13month" => "13th Month", | ||
"concept_annual_cash" => "Annual Guaranteed Cash", | ||
"concept_total_incentives" => "Annual total short-term incentives", | ||
"concept_bonus" => "Bonus", | ||
"concept_13month_impacted" => "13th Month - Impacted by: (annual base salary + additional fixed + annual total short-term incentives)/12", | ||
"concept_total_compensation"=> "Annual Total Compensation", | ||
"concept_variable_pay" => "Annual Variable Pay", | ||
"concept_mooring" => "Annual Additional: mooring", | ||
"concept_fuel_type" => "Annual Additional: fuel type", | ||
"concept_shipping" => "Annual Additional: available shipping", | ||
"concept_load" => "Annual Additional: type of load", | ||
"concept_total_benefits" => "Annual Total Benefits", | ||
"concept_annual_cash_total" => "Annual Total Cash", | ||
"concept_annual_commission" => "Annual Total Commission", | ||
"concept_total_additional" => "Annual Total Incentives", | ||
|
||
]; |
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,7 @@ | ||
<?php | ||
return [ | ||
"breadcrumb_report" => "Reporte", | ||
"breadcrumb_home" => "Inicio", | ||
"breadcrumb_results"=> "Resultados", | ||
"title_practices" => "Prácticas", | ||
]; |
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,7 @@ | ||
<?php | ||
return [ | ||
"breadcrumb_report" => "Reporte", | ||
"breadcrumb_home" => "Inicio", | ||
"title_list" => "Lista de Indicadores", | ||
"button_sample" => "Composición de la Muestra", | ||
]; |
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,11 @@ | ||
<?php | ||
return [ | ||
"button_new_position" => "Cargo", | ||
"button_review" => "Revisar", | ||
"table_description" => "Descripción", | ||
"table_salary" => "Salario", | ||
"table_options" => "Opciones", | ||
"label_list" => "Listado de Cargos", | ||
"label_greeting" => "Saludos", | ||
"first_time_p" => "Esta la primera vez que participa de la Encuesta. Por favor ingrese un cargo nuevo", | ||
]; |
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,11 @@ | ||
<?php | ||
return[ | ||
"label_description" => "Descripción", | ||
"label_club" => "Club", | ||
"label_segment" => "Segmento", | ||
"label_branches" => "Cantidad de Sucursales", | ||
"label_headcount" => "Cantidad de Empleados", | ||
"label_origin" => "Origen", | ||
"label_edit" => "Editar Empresa", | ||
"button_save" => "Save", | ||
]; |
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,13 @@ | ||
<?php | ||
return[ | ||
"table_description" => "Descripción", | ||
"table_club" => "Club", | ||
"table_segment" => "Segmento", | ||
"table_branches" => "Nro. Sucursales", | ||
"table_headcount" => "Nro. Emp.", | ||
"table_origin" => "Origen", | ||
"button_list" => "Listar", | ||
"button_edit" => "Editar", | ||
"button_report" => "Reporte", | ||
"button_done" => "Finalizar", | ||
]; |
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,6 @@ | ||
<?php | ||
return [ | ||
"menu_panel" => "Panel de Empresas", | ||
"menu_complete" => "Completar", | ||
"menu_report" => "Reporte", | ||
]; |
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,10 @@ | ||
<?php | ||
return [ | ||
"label_filter" => "Filtrar Cargo", | ||
"label_level" => "Nivel", | ||
"label_position" => "Cargo", | ||
"label_description" => "Descripcion del Cargo", | ||
"button_report" => "Reporte", | ||
"select_option" => "Elija una Opción", | ||
"select_level" => "Elija una Opción", | ||
]; |
Oops, something went wrong.