From 100fe7af3cf96d6071fdc0970ea7e51d11546b15 Mon Sep 17 00:00:00 2001 From: shubham_meena Date: Sun, 23 Mar 2014 18:48:39 +0530 Subject: [PATCH] added web title in translations --- .../tools/server/ryzom_ams/ams_lib/autoload/helpers.php | 5 +++++ .../ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini | 4 +++- .../ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php index 40a96f6c1..8f99bfc93 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php @@ -62,6 +62,11 @@ class Helpers{ $smarty -> assign( $key, $value ); } + //load ams content variables that are language dependent + foreach ( $variables['ams_content'] as $key => $value){ + $smarty -> assign( $key, $value); + } + //smarty inheritance for loading the matching wrapper layout (with the matching menu bar) if( isset($vars['permission']) && $vars['permission'] == 3 ){ $inherited = "extends:layout_admin.tpl|"; diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini index f70fdfe3b..322c43779 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/en.ini @@ -5,8 +5,10 @@ login_info = "Please enter your MySQL Username and Password to install the database.
This is being loaded because the is_installed file is missing.
This process will take about 30 seconds." login_here = "here" -[dashboard] +[ams_content] ams_title="Ryzom Account Mangement System" + +[dashboard] home_title = "Introduction" home_info = "Welcome to the Ryzom Core - Account Management System" diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini index c48ca031b..57d6e7e66 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/translations/fr.ini @@ -1,8 +1,10 @@ ; This is a sample configuration file ; Comments start with ';', as in php.ini -[dashboard] +[ams_content] ams_title="Ryzom Account Mangement System" + +[dashboard] home_title = "Presentation" home_info = "Bienvenue sur le Ryzom Core - Account Management System"